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

"Microsoft.KeyVault.Data" not supported for custom policies #1331

Open
lindbeck opened this issue Jun 4, 2024 · 4 comments
Open

"Microsoft.KeyVault.Data" not supported for custom policies #1331

lindbeck opened this issue Jun 4, 2024 · 4 comments

Comments

@lindbeck
Copy link

lindbeck commented Jun 4, 2024

Details of the scenario you tried and the problem that is occurring

When creating a custom policy that includes "Microsoft.KeyVault.Data", an error is returned.

This is a problem for us as Microsoft 365 requires customer keys to never expire, therefor we want to create a custom policy that denies creation of keys with an expiration date to mitigate the risk of human error leading to creation of keys with expiration set.

Verbose logs showing the problem

The provider 'Microsoft.KeyVault.Data' referenced by the 'field' property 'Microsoft.KeyVault.Data/vaults/keys/attributes.expiresOn' of the policy rule doesn't exist. (Code:InvalidProviderNameInPolicyAlias)

Suggested solution to the issue

Bring support for "Microsoft.KeyVault.Data" in custom policies.

If policy is Guest Configuration - details about target node

@pklaudat
Copy link

Any news on this? Need it asap, not only for key vault, but for any other resource provider not available today, such as microsoft.network.data (used by AVNM).

@GabrielPrzybysz
Copy link

I'm experiencing the same issue. Are there any updates on this?

@giladof
Copy link

giladof commented Sep 13, 2024

I agree, this needs to be addressed asap

@JaimePalazuelosB
Copy link

Furthermore, policy 98728c90-32c7-4049-8429-847dc0f4fe37 shows the Key Vault as compliant as long as any secret has an ExpiresOn date, ignoring the non-compliant secrets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants