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

keep github connector but automate it with dex-operator #1914

Closed
10 tasks done
Tracked by #1432
weatherhog opened this issue Jan 25, 2023 · 3 comments
Closed
10 tasks done
Tracked by #1432

keep github connector but automate it with dex-operator #1914

weatherhog opened this issue Jan 25, 2023 · 3 comments
Assignees

Comments

@weatherhog
Copy link

weatherhog commented Jan 25, 2023

@anvddriesch
Copy link

anvddriesch commented Jan 26, 2023

we tried this out and don't see it being useful to automate github / keep using as idp due to the following limitations

  • github api does not support creating and deleting oauth apps (reference)
  • there is a limit of 100 oauth apps in github and we are almost there (reference)

we have been thinking about managing existing configuration with dex-operator until removing github. However, this also doesn't seem to be a good return on effort.
The reason being:

  • managing one existing oauth app per one MC would only allow logging into the MC itself and not WCs (limit of one callback URL, limit of oauth apps as seen above)
  • although key rotation would be automated, we would also have to manage the key for dex-operator itself so the ratio of automatically rotated keys to manually rotated keys would stay the same.

We think that it would make sense to add another idp first and then once we have two idps configured, we can phase out the existing github configuration.

@anvddriesch anvddriesch added the needs/refinement Needs refinement in order to be actionable label Jan 30, 2023
@anvddriesch
Copy link

I tried out creating a github app instead of an oauth app and with the right permissions and settings it can be used just the same. (In fact, it's a lot more verbose)
This type of app is also possible to create via the github API https://docs.github.com/en/rest/apps/apps?apiVersion=2022-11-28#create-a-github-app-from-a-manifest
For this reason I suggest we migrate to github apps and let them manage by dex operator.

@weatherhog
Copy link
Author

During refinement we commited on automatic github as dex connector for the future

@weatherhog weatherhog removed the needs/refinement Needs refinement in order to be actionable label Feb 1, 2023
@mogottsch mogottsch removed their assignment Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants