Azure / Azure/AzureKeyVault

Key secret get/show post expiry

Aperta
#19 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
R
Stelle
18
Fork
13
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hi Team,

Got a use case for Key vault secret with expiry date set and are able to retrieve the value after the expiry date has lapsed.

Expected cli/Rest Key vault secret show/get output:

> _(Forbidden) Operation get is not allowed on a expired secret.
> Code: Forbidden
> Message: Operation get is not allowed on a expired secret.
> Inner error: {
> "code": "SecretExpired"
> }_

Actual result:

> Request URL: 'https://XXXX.vault.azure.net/secrets//?api-version=REDACTED'
> Request method: 'GET'
> Request headers:
> 'Accept': 'application/json'
> 'x-ms-client-request-id': '57358e22-c96d-11ee-800d-00155de4a17c'
> 'User-Agent': 'azsdk-python-keyvault-secrets/4.7.0 Python/3.10.10 (Linux-5.15.133.1-microsoft-standard-WSL2-x86_64-with-glibc2.35)'
> 'Authorization': 'REDACTED'
> No body was attached to the request
> **Response status: 200**

As per the doc: https://learn.microsoft.com/en-us/azure/key-vault/secrets/about-secrets#secret-attributes, we should not be able to retrieve the object value.

Seems the Expiry date attributes has no effect on the secret get operations. Can you please confirm if the understanding is correct and if so, what will be solution for this.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Non è indicato alcun file del repository né alcun test. Inizia esaminando la documentazione collegata sugli attributi dei secret di Azure Key Vault e riproducendo la richiesta GET mostrata per un secret scaduto; confronta la risposta REST con il comportamento dell’SDK Python. L’attività è completata quando il comportamento previsto del servizio è confermato e l’issue ha una risoluzione documentata o un instradamento chiaro.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
azure, python
Ambito
api, cloud, security
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Attiva
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.