Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

What's the format of exported Key? #188

Open
bhardwahnitish19 opened this issue Apr 20, 2020 · 3 comments
Open

What's the format of exported Key? #188

bhardwahnitish19 opened this issue Apr 20, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@bhardwahnitish19
Copy link

bhardwahnitish19 commented Apr 20, 2020

I have couple of questions, couldn't add a label as question to this. Please update the label as a question. It would be great if someone can share their thoughts on the following:

  1. Is the Private key which is being mounted on FlexVolume Base64 encoded or encoded by any other algorithm or it's just in the plain text without any encoding?

  2. Is there a way to fetch public and private key separately?(not in a single file as we get with secret)

Thanks

@bhardwahnitish19 bhardwahnitish19 added the bug Something isn't working label Apr 20, 2020
@ritazh
Copy link
Member

ritazh commented Apr 21, 2020

Hi @bhardwahnitish19 Thanks for reporting this.

We are deprecating this solution in favor of https://github.com/Azure/secrets-store-csi-driver-provider-azure as flexvol is deprecating in K8s upstream.

With the secrets store csi driver Azure provider PR and this PR in the csi driver, this should address your issue. we will ping you as soon as all the changes are ready to be consumed or you could also build from source.

@bhardwahnitish19
Copy link
Author

bhardwahnitish19 commented Apr 22, 2020

Hi @ritazh

Thanks for the update. It would be great if you can share some details about the new solution. Will it provide a way to fetch public and private key separately? I assume that it should work with new solution if we can get certs and keys in plain text. Please correct me if I am wrong.

Thanks

@bhardwahnitish19
Copy link
Author

bhardwahnitish19 commented Apr 22, 2020

FYI - Mount volume always fails if I choose keys in flex volume. It fails specifically for the certificate that I have generated by azure CLI. Steps to generate Cert:

  1. Created a CSR (where keyproperties.exportable is true)
  2. Got this CSR signed by a third party CA
  3. Merged the generated public key/cert in Key Vault.

This is specific to EC certs. Raised another issue to track this: issue

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

No branches or pull requests

2 participants