Are there plans to support GitHub apps instead of PAT? #1030
-
In our organisation, GitHub apps are preferred over Personal Access Tokens. Any plans to support on source and notification controllers? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
Is there any answer on this? We are also interested in using Github Apps to authenticate our repositories instead of using PAT or Deploy keys |
Beta Was this translation helpful? Give feedback.
-
Hi, there had been a lot of request for this before and some attempts to add it in flux components itself, refer fluxcd/notification-controller#437. But after going through the details of it, it became apparent that github app token generation need not be part of flux itself but something else can handle the token creation and refresh, and flux can just use it. More details about it can be found in fluxcd/notification-controller#437 (comment) . |
Beta Was this translation helpful? Give feedback.
-
Hi @dan-slinky-ckpd @cmergenthaler you can use a deploy key as follows.
ssh-keygen -t ecdsa-sha2-nistp256 -f identity -C "<some label>"
kubectl create secret generic -n flux-system flux-system --from-file ./identity --from-literal=known_hosts="<use ssh-keyscan github.com and paste the ecdsa-sha2-nistp256 entry>"
This way you can avoid the use of a PAT |
Beta Was this translation helpful? Give feedback.
-
Given that GitHub App is the recommended way to integrate with GitHub, I think Flux should be implementing this.
I think the list of advantages is even longer when comparing to deploy keys. Looking forward to #4806 ! |
Beta Was this translation helpful? Give feedback.
We'll have GitHub App support in Flux, RFC here #4806