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

Set expiry is not working while creating secret in akv #8052

Closed
lambodar opened this issue Dec 13, 2018 — with docs.microsoft.com · 4 comments
Closed

Set expiry is not working while creating secret in akv #8052

lambodar opened this issue Dec 13, 2018 — with docs.microsoft.com · 4 comments
Assignees
Labels
KeyVault az keyvault question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone

Comments

Copy link

Hi Team,
As per the document, I tried to set expires while creating the secret but it didn't work. However set-attributes is working fine while updating. Can you please take look.

az keyvault secret set --name <my-key> --value <my-value> --vault-name <my-kv> --expires "2018-12-30T07:28:38Z"

{
"attributes": {
"created": "2018-12-13T07:45:37+00:00",
"enabled": true,
"expires": null,
"notBefore": null,
"recoveryLevel": "Purgeable",
"updated": "2018-12-13T07:45:37+00:00"
},
"contentType": null,
"id": "https://my-kv.vault.azure.net/secrets/&lt;mykey&gt;/&lt;version>",
"kid": null,
"managed": null,
"tags": {
"file-encoding": "utf-8"
},
"value": "<myvalue>"
}


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@lambodar
Copy link
Author

Here is the stackoverflow link for your reference which I asked before raising the request. https://stackoverflow.com/q/53757424/1753177

@tjprescott tjprescott added KeyVault az keyvault question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Dec 13, 2018
@DdenBraver
Copy link

@tjprescott @schaabs Is there any update on this issue yet?
We are running into the exact same issue with azcli version 2.0.70
We require to set an expiration date on creation from our organisation.

@yugangw-msft
Copy link
Contributor

I will fix this

@haroldrandom haroldrandom added KeyVault az keyvault question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Oct 25, 2019
@SharmaRakeshPFE
Copy link

I will fix this

Is this issue fixed, because I can see still the expired secrets are working.

@yonzhan yonzhan added this to the Backlog milestone Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
KeyVault az keyvault question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

9 participants