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

how to load the azureCertificateFile #1232

Open
hernandoz opened this issue Feb 9, 2024 · 2 comments
Open

how to load the azureCertificateFile #1232

hernandoz opened this issue Feb 9, 2024 · 2 comments

Comments

@hernandoz
Copy link

hernandoz commented Feb 9, 2024

Ask your question here

Hi I am having problems loading the azureCertificateFile pfx file for the azure keyVault component locally , I can get the file to load .

what's the right format to add on the path value ?

storesecret.yaml

apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
  name: coresecretstore

spec:
  type: secretstores.azure.keyvault
  version: v1
  metadata:
  - name: vaultName
    value: srmdev-container-core
  - name: azureTenantId
    value: **************************
  - name: azureClientId
    value : *************************
  - name: azureCertificateFile
    value: \srmdev-container-core-SRMDEVContainerKeyVaultAccess-20240209.pfx

Error
time="2024-02-09T15:11:51.416171264Z" level=error msg="Error getting secret: ChainedTokenCredential: failed to acquire a token.\nAttempted credentials:\n\tmanaged identity\n\tAzureCLICredential: fork/exec /bin/sh: no such file or directory" app_id=project-reporting-service instance=5deedd416f9f scope=dapr.runtime type=log ver=1.12.0

the certificate is located in the same folder where the yaml is.

Project Folder

image

Thanks

@hernandoz
Copy link
Author

can anyone point me in the right direction to get this working ?

Thanks

@WhitWaldo
Copy link
Contributor

The path should be relative to the component, if I recall. Your path should be in a relative form (e.g. start with a period - your path as-is suggests that your file should be pulled from the root directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants