# Ensure that the Expiration Date is set for all Secrets in Non-RBAC Key Vaults

- Source: https://support.icompaas.com/support/solutions/articles/62000229882-ensure-that-the-expiration-date-is-set-for-all-secrets-in-non-rbac-key-vaults
- Section: [Solutions](https://support.icompaas.com/support/solutions) › [General](https://support.icompaas.com/support/solutions/62000037933) › [Azure Compliance / Control / Check](https://support.icompaas.com/support/solutions/folders/62000168797)
- Last updated: 2026-05-29
- Publisher: iCompaas, Inc. (https://www.icompaas.com)

Description:

This control ensures that every secret stored in Azure Key Vaults using Access Policy (Non-RBAC) authorization has a defined expiration date. Setting expiration dates enforces secret rotation, limits prolonged exposure of credentials, and reduces the risk of compromised secrets being exploited indefinitely.

  

Rationale:

Secrets without expiration remain valid indefinitely, increasing the impact of credential leaks and operational risk. Enforcing expiration ensures periodic rotation, improves auditability, and supports identity lifecycle policies. This aligns with security best practices and regulatory guidance for credential management.

  

Impact:

Applications that depend on expired secrets will fail authentication if rotation is not completed in advance. This control requires a rotation mechanism and monitoring of expiry schedules. Teams must plan for renewal workflows and proper alerting.

  

Default Value:

By default, secrets do not have expiration dates in Azure Key Vault unless explicitly configured.

  

Pre-requisites:

-   Azure Key Vault must already exist.
    
-   Key Vault must use the Access Policy model (Non-RBAC).
    
-   Key Vault SKU must be Standard or Premium.
    
-   Secrets must be created in the vault.
    

  

Test Plan:

1.  Sign in to the Azure portal.
    
2.  Navigate to Key Vaults and select a vault that uses Access Policies (not RBAC).
    
3.  Open Secrets and review each secret.
    
4.  Verify that an expiration date is defined for every secret.
    
5.  If there is no expiration date, follow the implementation steps.
    

  

Implementation Steps:

1.  Sign in to the Azure portal
    
2.  Navigate to Key Vaults and select the target Key Vault.
    

![](https://support.icompaas.com/assets/kb/9bdfaba10a4240a7.png)

3.  Under the Objects section, select Secrets.
    

                                     ![](https://support.icompaas.com/assets/kb/1963b1a506b4fe36.png)

4.  Choose the secret you want to update.
    
5.  Click New version.
    
6.  Ensure Enabled is set to Yes and configure an appropriate Expiration date.
    

![](https://support.icompaas.com/assets/kb/7f9317c0503c8cf0.png)

7.  Click Create to save the changes.
    

Backout Plan:

1.  Go to the Azure portal and navigate to Key Vaults.
    
2.  Select the targeted Key Vault.
    
3.  Under Objects, select Secrets.
    
4.  Choose the secret you want to roll back.
    
5.  Temporarily extend the expiration by creating a New Version or removing the expiration date, if required.
    

  

References:

-   [https://learn.microsoft.com/en-us/azure/key-vault/general/about-keys-secrets-certificates](https://learn.microsoft.com/en-us/azure/key-vault/general/about-keys-secrets-certificates)
    
-   [https://learn.microsoft.com/en-us/azure/key-vault/secrets/quick-create-port](https://learn.microsoft.com/en-us/azure/key-vault/secrets/quick-create-portal)
    
-   [https://learn.microsoft.com/en-us/azure/key-vault/secrets/about-secrets](https://learn.microsoft.com/en-us/azure/key-vault/secrets/about-secrets)
    
-   [https://learn.microsoft.com/en-us/azure/key-vault/general/assign-access-policy](https://learn.microsoft.com/en-us/azure/key-vault/general/assign-access-policy)

## Related compliance guidance

- [SOC 2 compliance: a practical implementation guide for cloud-native SaaS teams](https://support.icompaas.com/compliance/soc-2-trust-services-criteria): Configuration checks like this one are the technical half of a SOC 2 / ISO 27001 programme — the guide shows where they fit, what else an auditor expects, and how to evidence them.
- [ISO/IEC 27001:2022 compliance: a practical implementation guide](https://support.icompaas.com/compliance/iso-27001-2022): ISO 27001 Annex A.8 (technological controls) is where cloud hardening evidence lands; the guide shows how to run the ISMS around it.
