Skip to content
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] Inject Certificate not working in 1.3.1 #415

Closed
srmars opened this issue Sep 28, 2022 · 1 comment · Fixed by #456
Closed

[BUG] Inject Certificate not working in 1.3.1 #415

srmars opened this issue Sep 28, 2022 · 1 comment · Fixed by #456
Labels
bug Something isn't working

Comments

@srmars
Copy link

srmars commented Sep 28, 2022

Team,

We recently upgraded the akv2k8s from 1.3.0 to 1.3.1. After the upgrade Inject Certificate into application container not working

Reference:- https://akv2k8s.io/tutorials/env-injection/2-certificate/

    spec:
      containers:
      - name: akv2k8s-env-test
        image: spvest/akv2k8s-env-test:2.0.1
        args: ["PUBLIC_KEY", "PRIVATE_KEY"]
        env:
        - name: PUBLIC_KEY
          value: certificate-inject@azurekeyvault?tls.crt
        - name: PRIVATE_KEY
          value: certificate-inject@azurekeyvault?tls.key

Further checking in 1.3.1 release note there is bug fix happened for match valid injectable secret names 320. I am suspecting this is causing this issue. From the below screen shot the updated regex is not picking the certificate-inject@azurekeyvault?tls.key

image

With below regex its matching dot also

^([a-z-\d]*)@azurekeyvault([\?]?[a-z-\d\.]*)$

I am not regex expert :) . kindly check and fix the regex if needed. Thank you!

@daniel-anova
Copy link
Contributor

Replied in #320 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants