Skip to content
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

Merged
merged 5 commits into from
Mar 1, 2022

Conversation

thomaschaaf
Copy link
Contributor

@jasonmcintosh
Copy link
Member

@daconstenla
Copy link
Contributor

Suggested changes based on the output of ./gradlew :fiat-github:spotlessApply

@jasonmcintosh
Copy link
Member

:) Was JUST about to suggest a spotlessApply :P

@vide
Copy link

vide commented Mar 1, 2022

I'm writing this here as a temporary emergency workaround to keep Spinnaker ticking if you have been bitten by this:
Edit your fiat config to include something like:

auth:
  groupMembership:
    service: FILE
    file:
      roleProviderType: FILE
      path: /opt/spinnaker/config/fiat-permissions.yml

(right now you should have service: GITHUB declared instead) and create a new file /opt/spinnaker/config/fiat-permissions.yml which might look like:

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)

@dbyron-sf
Copy link
Contributor

Suggested changes based on the output of ./gradlew :fiat-github:spotlessApply

Yup, the builds are failing without these.

thomaschaaf and others added 3 commits March 1, 2022 19:21
@dbyron-sf dbyron-sf added the ready to merge Approved and ready for merge label Mar 1, 2022
@mergify mergify bot added the auto merged label Mar 1, 2022
@mergify mergify bot merged commit 665b5fe into spinnaker:master Mar 1, 2022
@link108
Copy link
Member

link108 commented Mar 1, 2022

@Mergifyio backport release-1.25.x release-1.26.x release-1.27.x

mergify bot pushed a commit that referenced this pull request Mar 1, 2022
* 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)
mergify bot pushed a commit that referenced this pull request Mar 1, 2022
* 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)
mergify bot pushed a commit that referenced this pull request Mar 1, 2022
* 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)
@mergify
Copy link
Contributor

mergify bot commented Mar 1, 2022

backport release-1.25.x release-1.26.x release-1.27.x

✅ Backports have been created

mergify bot added a commit that referenced this pull request Mar 1, 2022
…#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>
mergify bot added a commit that referenced this pull request Mar 1, 2022
…#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>
mergify bot added a commit that referenced this pull request Mar 3, 2022
…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>
@Badbond
Copy link

Badbond commented Mar 7, 2022

Thank you for merging the fix. When can we expect the releases to be rolled out? In approx. 25 hours there will be another 24 hour brownout for the deprecated GitHub API. We wish to upgrade our current deployment using Halyard before then if possible.

Edit: Sorry, I see that they announced they paused the second brownout.

@vide
Copy link

vide commented Mar 8, 2022

@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.

opsmxuser pushed a commit to OpsMx/fiat that referenced this pull request Mar 23, 2023
…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>
opsmxuser pushed a commit to OpsMx/fiat that referenced this pull request Sep 6, 2023
…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>
opsmxuser pushed a commit to OpsMx/fiat that referenced this pull request Sep 6, 2023
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
9 participants