-
Notifications
You must be signed in to change notification settings - Fork 162
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
GitHub Apps Credentials - error decoding private key, cannot figure out correct format #3055
Comments
I suspect your private key is not base64 encoded as a literal Secret value (i.e. encoded twice). |
@hiddeco Do you mean the pem file GitHub provides needs to be base64 encoded a second time? PEM encoding is Base64 encoding so I figured the Kargo documentation was saying to take care to provide the pem contents. If Kargo requires double base 64 encoding for some reason, it might be worth an update the docs to clarify. I just tried to double encode it and appear to have gotten a bit further along. |
It's also especially confusing because k8s also base64 encodes the |
Solution: wrap the pem file GitHub provides in a second layer of base64 encoding and provide to the |
I agree, and we could not really tell why we made this a requirement. I raised #3059 to make this easier in the future. |
Reopening this for visibility until #3059 closes it. |
Checklist
kargo version
.Description
Following GitHub App Authentication docs, I can't convince Kargo to accept the credentials.
Screenshots
Steps to Reproduce
Take care to ensure the string values don't have trailing newlines and the base64 pem encoded key is the value:
Version
Logs
The text was updated successfully, but these errors were encountered: