-
Notifications
You must be signed in to change notification settings - Fork 129
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
Support authenticating with GitHub App #54
Comments
GitHub App is currently not working on the I also recommend letting the cli's This will separate the credentials the cli is using to clone/commit/push information from/to the repo, and the credentials used by the server to sync the changes to the cluster. |
Thanks Noam. I created the PR that was merged yesterday. How will this fix find its way to release-2.0? Should I be participating in that? |
I am not sure. I don't know how argo-cd decides which PRs to pick into the current 2.X release. But it seems like a big regression, so I hope it will find its way to the next patch. |
@noam-codefresh The fixes were cp'd to release-2.0 and are included in 2.0.2 |
great news, thanks for your fix in argo-cd, and input over here. |
Update: autopilot manifests install argocd 2.0.3, which supports GitHub App authentication |
It could just be toggled support if the ref is 2.0.3 or greater. if ref >= 2.0.3 do else "not supported". Ideally the cli would accept a param to indicate bootstrapping as a github app. For example:
Or
I've done some init dev on this before I was aware of this project. A Github App can manage the webhooks, the oauth, and the repo access as well. The manifest flow for creating an app would be a great option for bootstrapping as it's not intuitive from the current docs When using the manifest flow its quite easy to send the user to a pre-filled app ( via manifest url ) , with permissions, url etc. Then the return data with the 'code' has all the information to generate a repo-creds secret, dex secret and client, the webhook url.
Then we generate yaml or create a simple kustomize base with the patches using the values from the response.
Thoughts? The only issue I foresee is the redirect url. Could be hacky and launch a simple http handler to accept the payload on local host. Alternatively will simplify this whole process with doing the manifest flow, and just use a cli read input to manually enter the information from the githubApp UI i.e. pem |
Hi just wondered if there was ever any traction on this? I'm new to argocd in general but have been trying to use a github application instead of a user account and pat token, so stumbled on this. Cheers Andy |
If we're interested in using Autopilot with a GitHub app, my understanding here is that Autopilot won't get me set up doing that. However, can I start with an Autopilot-created setup using a PAT and then transition over to a GitHub app once it's running? |
GitHub App authentication was recently added to Argo CD, and is arguably "best-practice" and better than a PAT.
https://docs.github.com/en/developers/apps/authenticating-with-github-apps
Assuming that argocd-autopilot is intended to be an easy onramp to a best-practice configuration, it should support GitHub App authentication.
The text was updated successfully, but these errors were encountered: