Skip to content

Assistance Required: Changing PAT in Flux System #5133

Answered by stefanprodan
Hadex92 asked this question in Q&A
Discussion options

You must be logged in to vote

Here are the docs for rotating the key https://fluxcd.io/flux/installation/configuration/deploy-key-rotation/

If you've used Git over HTTPS with a PAT instead of SSH, in your case the procedure is:

# delete exiting PAT secret
kubectl -n flux-system delete secret flux-system

# generate new PAT secret
flux create secret git flux-system \
  --url=https://github.com/org/repo \
  --username=flux \
  --password=$GITHUB_PAT

# test the Git access 
flux reconcile source git flux-system

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Hadex92
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants