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

[RFC-007] Add command to generate GitHub App secret #5097

Open
stefanprodan opened this issue Dec 7, 2024 · 0 comments · May be fixed by #5103
Open

[RFC-007] Add command to generate GitHub App secret #5097

stefanprodan opened this issue Dec 7, 2024 · 0 comments · May be fixed by #5103
Labels
area/git Git related issues and pull requests area/ux In pursuit of a delightful user experience

Comments

@stefanprodan
Copy link
Member

stefanprodan commented Dec 7, 2024

To improve the UX of the GitHub App integration, we should add a command to the Flux CLI so users can easily generate the Kubernetes Secret used by source-controller and image-automation-controller.

flux create secret githubapp my-gh-app \
--app-id=<string value> \
--app-installation-id=<string value> \
--app-private-key=<local path to pem file> \
--app-base-url=<GitHub Enterprise API URL>

The flags should map to the Secret.stringData keys specified by: https://github.com/fluxcd/pkg/blob/3431579a0c60b44e75ac8434030e36d5192070fb/auth/github/client.go#L31-L36

Refs:

@stefanprodan stefanprodan added area/git Git related issues and pull requests area/ux In pursuit of a delightful user experience labels Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/git Git related issues and pull requests area/ux In pursuit of a delightful user experience
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant