-
Notifications
You must be signed in to change notification settings - Fork 97
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
[BUG] Certificate injection doesn't work as expected in 1.4.0. #547
Comments
I have the same, or a very similar problem. It already occurs with the update to 1.3.1 (and persists with 1.4.0). After some research about what has changed between 1.3.0 and 1.3.1, I believe the regex here might be responsible: If so, is there any workaround to this? |
I was able to confirm this with regexpal.com Doesn't work:
Works:
In master, the line was moved to: https://github.com/SparebankenVest/azure-key-vault-to-kubernetes/blob/master/cmd/azure-keyvault-env/environment.go#L12 and enhanced to:
This change was made 4 months ago and released with v1.5.0-beta.3 of the env-injector. It will go out with the stable release of v1.5.0. |
/close |
Thanks! Any chance this could be backported to a 1.3.x or 1.4.x release? |
Unfortunately I'm not on the dev team so I don't know that they would accept a patch to backport, but if you're willing to build it from source, I could generate a diff for you to patch in just before the build. |
I can certainly create a branch where I patch the 1.3.1 version with the new regex, but I wouldn't be able to build it myself. |
Closing, 1.5.0 is released with fixes |
See #475 |
Note: Make sure to check out known issues (https://akv2k8s.io/troubleshooting/known-issues/) before submitting
Components and versions
Select which component(s) the bug relates to with [X].
[ ] Controller, version:
x.x.x
(docker image tag)[x] Env-Injector (webhook), version:
1.4.0
(docker image tag)[ ] Other
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
PUBLIC_KEY
and private key forPRIVATE_KEY
1.4.0
kubectl rollout restart deployment akvs-certificate-app
PUBLIC_KEY
andPRIVATE_KEY
now show the reference to the secret.Expected behavior
Expected certificates to be injected in version
1.4.0
.Logs
If applicable, add logs to help explain your problem.
They don't look applicable, but including anyway.
env-injector Logs for 1.3.0:
env-injector Logs for 1.4.0
Additional context
aad-pod-identity
The text was updated successfully, but these errors were encountered: