Azure / azure-policy

Repository for Azure Resource Policy built-in definitions and samples
MIT License
1.49k stars 1.08k forks source link

Azure Security Benchmark Kubernetes policy missing parameter #1031

Open wendlandreas opened 1 year ago

wendlandreas commented 1 year ago

The policy "Kubernetes clusters should disable automounting API credentials" with ID "/providers/Microsoft.Authorization/policyDefinitions/423dd1ba-798e-40e4-9c4d-b6902674b423" contains 5 parameters:

However, the same policy in the "Azure Security Benchmark" policy set only contains 3 parameters:

This causes an issue when we want to put this policy in DENY effect for certain labels using the Azure Security Benchmark. We need to apply the labelSelector parameter but it is not present so we are forced to either create our own custom initiative or assign the single policy directly. We would prefer to have it all in one place inside the Azure Security Benchmark.

Is the missing parameters by design or is it a bug?

wendlandreas commented 1 year ago

Anyone?