How to fix "Secrets should have the specified maximum validity period"

Lanh Khưu 46 Reputation points

what value of maximumValidityInDays ? How much?

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,165 questions
Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
817 questions
{count} votes

Accepted answer
  1. rafalzak 3,216 Reputation points

    Hi @ LanhKhu-3439,

    It depends on your company policy.
    Using a secret with a long validity period is not recommended.
    You can put there for example: 7 - for seven days, 31 for month,180 - for 6 months, 365 - for one year or more based on your requirements.

    Please upvote or accept as answer if it helped.

0 additional answers

Sort by: Most helpful