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

Support mounting certificate and private key in separate files #933

Closed
vaibhav-gupt opened this issue Jul 12, 2022 · 0 comments · Fixed by #1006
Closed

Support mounting certificate and private key in separate files #933

vaibhav-gupt opened this issue Jul 12, 2022 · 0 comments · Fixed by #1006
Assignees
Labels
enhancement New feature or request

Comments

@vaibhav-gupt
Copy link

vaibhav-gupt commented Jul 12, 2022

For a certificate, mount the private key and public key in separate files. Currently, CSI driver downloads the complete certificate and mounts it in a single file. This single file does not work with the non-Microsoft components. As they expect, key and cert to be provided as separate files. AKV CSI driver supports parsing AKV cert for k8s tls secret but not for the volume mounts.

EG. CSI driver can mount the three files : /certName, /certName.key, certName.cert for the below resource

apiVersion: secrets-store.csi.x-k8s.io/v1
kind: SecretProviderClass
metadata:
name: contour
namespace: projectcontour
spec:
provider: azure
parameters:
  usePodIdentity: "true"
  keyvaultName: "${KEYVAULT_NAME}"
  objects:  |
    array:
      - |
        objectName: certName
        objectType: secret
        objectVersion: ""
  tenantId: "${KEYVAULT_TENANT_ID}" 

We need to mount the cert & key in pem format in contour and envoy pods. Also pass the file paths in configuration.

Environment:

  • Secrets Store CSI Driver version: (use the image tag): v1.0.0
  • Azure Key Vault provider version: (use the image tag): v1.0.0
  • Kubernetes version: (use kubectl version): 1.22
  • Cluster type: (e.g. AKS, aks-engine, etc): AKS
@vaibhav-gupt vaibhav-gupt added the enhancement New feature or request label Jul 12, 2022
@vaibhav-gupt vaibhav-gupt changed the title Support mounting certificate and private key separately along with the complete file Mount certificate and private key in separate files Jul 12, 2022
@vaibhav-gupt vaibhav-gupt changed the title Mount certificate and private key in separate files Support mounting certificate and private key in separate files Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants