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

Key vault secret SecretProperty doesn't have version value #25882

Closed
diberry opened this issue May 15, 2023 · 1 comment
Closed

Key vault secret SecretProperty doesn't have version value #25882

diberry opened this issue May 15, 2023 · 1 comment
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. KeyVault needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@diberry
Copy link
Contributor

diberry commented May 15, 2023

@azure/keyvault-secrets: 4.7.0

If I loop through all secrets in key vault, the returned properties should include version but it doesn't.

My code does return the version property but it doesn't have a value. Every iteration of a secret has a version, why isn't the version for the current secret filled in?

image

@github-actions github-actions bot added Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. KeyVault needs-team-triage Workflow: This issue needs the team to triage. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels May 15, 2023
@xirzec xirzec removed the needs-team-triage Workflow: This issue needs the team to triage. label May 16, 2023
@github-actions github-actions bot added the needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team label May 16, 2023
@timovv
Copy link
Member

timovv commented Jun 14, 2023

Hi @diberry, the SecretProperties documentation does state that this property may be undefined, so this is as expected. Since listPropertiesOfSecrets only lists the latest version of each secret you can infer that the properties are for the latest version without knowing this information.

I hope that explains the behavior you're seeing; let me know if you have any more questions.

@timovv timovv closed this as completed Jun 14, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Sep 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. KeyVault needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
Archived in project
Development

No branches or pull requests

3 participants