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

jx secret edit fails on Azure Key Vault with error: failed to save properties key: #246

Open
adrianharabula opened this issue Feb 1, 2021 · 2 comments

Comments

@adrianharabula
Copy link

$ jx secret version
version: 0.0.221
$ jx version
version: 3.1.170

Full error:

error: failed to save properties key: test-document-db-postgresql properties: postgresql-postgres-password, postgresql-password on ExternalSecret test-document-db-postgresql: error setting azure key vault secret: error retrieving secret from key vault: azure.BearerAuthorizer#WithAuthorization: Failed to refresh the Token for request to https://XX-XXX.vault.azure.net/secrets/test-document-db-postgresql?api-version=7.1: StatusCode=0 -- Original Error: the MSI endpoint is not available. Failed HTTP request to MSI endpoint: Get http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01: context deadline exceeded

@peter-poki
Copy link

+1

I also have this problem, and my az cli is set up with enough privileges (I can edit that secret via az cli, but not via jx secret edit)

@jstrachan
Copy link
Contributor

we noticed the jx secret edit code was using the old secret editor code and not this library https://github.com/jenkins-x-plugins/secretfacade we use for jx secret populate

its been fixed now - I wonder if you could retry with the latest jx CLI and see if its still an issue?

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

No branches or pull requests

3 participants