-
Notifications
You must be signed in to change notification settings - Fork 593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(github): Use new github teams api as old one is deprecated #907
Conversation
fiat-github/src/main/java/com/netflix/spinnaker/fiat/roles/github/client/GitHubClient.java
Show resolved
Hide resolved
https://github.com/spinnaker/fiat/blob/872873672b5910cb86f24b797eab90066a0ee531/fiat-github/src/main/java/com/netflix/spinnaker/fiat/roles/github/model/TeamMembership.java |
...thub/src/main/java/com/netflix/spinnaker/fiat/roles/github/GithubTeamsUserRolesProvider.java
Outdated
Show resolved
Hide resolved
...thub/src/main/java/com/netflix/spinnaker/fiat/roles/github/GithubTeamsUserRolesProvider.java
Outdated
Show resolved
Hide resolved
fiat-github/src/main/java/com/netflix/spinnaker/fiat/roles/github/client/GitHubClient.java
Outdated
Show resolved
Hide resolved
Suggested changes based on the output of |
:) Was JUST about to suggest a spotlessApply :P |
I'm writing this here as a temporary emergency workaround to keep Spinnaker ticking if you have been bitten by this: auth:
groupMembership:
service: FILE
file:
roleProviderType: FILE
path: /opt/spinnaker/config/fiat-permissions.yml (right now you should have users:
- username: user
roles:
- teamA
- teamB
- username: user2
roles:
- teamA
- teamC
- username: jenkins
roles:
- jenkins where the usernames maps to your GH users and the role to the GH teams (no need to put the Org scope) |
Yup, the builds are failing without these. |
Co-authored-by: David Constenla <1520001+daconstenla@users.noreply.github.com>
@Mergifyio backport release-1.25.x release-1.26.x release-1.27.x |
* fix(github): Use new github teams api https://github.blog/changelog/2022-02-22-sunset-notice-deprecated-teams-api-endpoints/ * refactor(github): Remove unused function * chore(gradle): spotless apply Co-authored-by: David Constenla <1520001+daconstenla@users.noreply.github.com> * refactor(github): clean up unused functions * refactor(github): delete unused model Co-authored-by: David Constenla <1520001+daconstenla@users.noreply.github.com> (cherry picked from commit 665b5fe)
* fix(github): Use new github teams api https://github.blog/changelog/2022-02-22-sunset-notice-deprecated-teams-api-endpoints/ * refactor(github): Remove unused function * chore(gradle): spotless apply Co-authored-by: David Constenla <1520001+daconstenla@users.noreply.github.com> * refactor(github): clean up unused functions * refactor(github): delete unused model Co-authored-by: David Constenla <1520001+daconstenla@users.noreply.github.com> (cherry picked from commit 665b5fe)
* fix(github): Use new github teams api https://github.blog/changelog/2022-02-22-sunset-notice-deprecated-teams-api-endpoints/ * refactor(github): Remove unused function * chore(gradle): spotless apply Co-authored-by: David Constenla <1520001+daconstenla@users.noreply.github.com> * refactor(github): clean up unused functions * refactor(github): delete unused model Co-authored-by: David Constenla <1520001+daconstenla@users.noreply.github.com> (cherry picked from commit 665b5fe)
✅ Backports have been created
|
…#909) * fix(github): Use new github teams api https://github.blog/changelog/2022-02-22-sunset-notice-deprecated-teams-api-endpoints/ * refactor(github): Remove unused function * chore(gradle): spotless apply Co-authored-by: David Constenla <1520001+daconstenla@users.noreply.github.com> * refactor(github): clean up unused functions * refactor(github): delete unused model Co-authored-by: David Constenla <1520001+daconstenla@users.noreply.github.com> (cherry picked from commit 665b5fe) Co-authored-by: Thomas Schaaf <schaaf@komola.de>
…#910) * fix(github): Use new github teams api https://github.blog/changelog/2022-02-22-sunset-notice-deprecated-teams-api-endpoints/ * refactor(github): Remove unused function * chore(gradle): spotless apply Co-authored-by: David Constenla <1520001+daconstenla@users.noreply.github.com> * refactor(github): clean up unused functions * refactor(github): delete unused model Co-authored-by: David Constenla <1520001+daconstenla@users.noreply.github.com> (cherry picked from commit 665b5fe) Co-authored-by: Thomas Schaaf <schaaf@komola.de>
…ort #907) (#908) * fix(github): Use new github teams api as old one is deprecated (#907) * fix(github): Use new github teams api https://github.blog/changelog/2022-02-22-sunset-notice-deprecated-teams-api-endpoints/ * refactor(github): Remove unused function * chore(gradle): spotless apply Co-authored-by: David Constenla <1520001+daconstenla@users.noreply.github.com> * refactor(github): clean up unused functions * refactor(github): delete unused model Co-authored-by: David Constenla <1520001+daconstenla@users.noreply.github.com> (cherry picked from commit 665b5fe) * chore(deps): use new maven Co-authored-by: Thomas Schaaf <schaaf@komola.de> Co-authored-by: Cameron Motevasselani <cameron@armory.io>
Thank you for merging the fix. When can we expect the releases to be rolled out? Edit: Sorry, I see that they announced they paused the second brownout. |
@Badbond it looks like they paused not just the 2nd brownout but the whole sunsetting schedule, I guess Spinnaker wasn't the only project hit by this change. |
…aker#907) (spinnaker#909) * fix(github): Use new github teams api https://github.blog/changelog/2022-02-22-sunset-notice-deprecated-teams-api-endpoints/ * refactor(github): Remove unused function * chore(gradle): spotless apply Co-authored-by: David Constenla <1520001+daconstenla@users.noreply.github.com> * refactor(github): clean up unused functions * refactor(github): delete unused model Co-authored-by: David Constenla <1520001+daconstenla@users.noreply.github.com> (cherry picked from commit 665b5fe) Co-authored-by: Thomas Schaaf <schaaf@komola.de>
…aker#907) (spinnaker#909) * fix(github): Use new github teams api https://github.blog/changelog/2022-02-22-sunset-notice-deprecated-teams-api-endpoints/ * refactor(github): Remove unused function * chore(gradle): spotless apply Co-authored-by: David Constenla <1520001+daconstenla@users.noreply.github.com> * refactor(github): clean up unused functions * refactor(github): delete unused model Co-authored-by: David Constenla <1520001+daconstenla@users.noreply.github.com> (cherry picked from commit 665b5fe) Co-authored-by: Thomas Schaaf <schaaf@komola.de>
…aker#907) (spinnaker#909) * fix(github): Use new github teams api https://github.blog/changelog/2022-02-22-sunset-notice-deprecated-teams-api-endpoints/ * refactor(github): Remove unused function * chore(gradle): spotless apply Co-authored-by: David Constenla <1520001+daconstenla@users.noreply.github.com> * refactor(github): clean up unused functions * refactor(github): delete unused model Co-authored-by: David Constenla <1520001+daconstenla@users.noreply.github.com> (cherry picked from commit 665b5fe) Co-authored-by: Thomas Schaaf <schaaf@komola.de>
https://github.blog/changelog/2022-02-22-sunset-notice-deprecated-teams-api-endpoints/