Can't get Flux GitHub auth working with CDK EKS Blueprints #4741
-
Hey Folks, Trying to get Flux working using CDK and an add-on for the EKS blueprints. I can not get auth to work at all and keep getting:
A lot of the Flux docs are centered around Secret resource for reference: apiVersion: v1
data:
password: <redacted>
username: <redacted>
immutable: false
kind: Secret
metadata:
name: flux-github-credentials
namespace: flux-system
<trimming out runtime annotations etc>
type: Opaque The repository and source controller hasn't given me more than the message above. Any suggestions for debugging further? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
I am just realizing now that when I switched over to basic access auth the errors went from Just for the future I'd love to know if there was a way to get deeper output. Additionally knowing how to force the source controller to resync would have been helpful because it started going into some kind of backoff mode where it was only rechecking my creds even 20 minutes or so. |
Beta Was this translation helpful? Give feedback.
-
The two things I'd like to do when I get time is to update the CDK blueprint docs so they are not recommending bearer tokens for Github access with Flux and update the Flux docs with some clearer messaging around bearer tokens not working. There is already a message in the docs but it made me think that bearer tokens would work in some instance but that doesn't seem to be the case. But don't know when I will get a chance to submit those. |
Beta Was this translation helpful? Give feedback.
I am just realizing now that when I switched over to basic access auth the errors went from
needs authentication
toneeds authorization
so I double checked and low and behold I forget to set my personal access token to my organization versus my personal space.Just for the future I'd love to know if there was a way to get deeper output. Additionally knowing how to force the source controller to resync would have been helpful because it started going into some kind of backoff mode where it was only rechecking my creds even 20 minutes or so.