Skip to content

GitRepository authentication required but secretRef set #4994

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

You must be logged in to vote

It could be that the base64 username or password contain some \n encoded. You can generate the secret with the Flux CLI like this:

  flux create secret git gitlab-authentication \
    --url=https://gitlab.domain/myapp.git \
    --username=username \
    --password=password \
    --ca-crt-file=path/to/ca.crt

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Nemergal
Comment options

@stefanprodan
Comment options

Answer selected by Nemergal
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