ManagedClusterSecurityProfileDefenderSecurityGating Class
- java.
lang. Object - com.
azure. resourcemanager. containerservice. models. ManagedClusterSecurityProfileDefenderSecurityGating
- com.
Implements
public final class ManagedClusterSecurityProfileDefenderSecurityGating
implements JsonSerializable<ManagedClusterSecurityProfileDefenderSecurityGating>
Microsoft Defender settings for security gating. This validates container image eligibility for deployment based on Defender for Containers security findings. Using Admission Controller, it either audits or prevents deployment of images that do not meet security standards.
Constructor Summary
| Constructor | Description |
|---|---|
| ManagedClusterSecurityProfileDefenderSecurityGating() |
Creates an instance of Managed |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Boolean |
allowSecretAccess()
Get the allow |
| Boolean |
enabled()
Get the enabled property: Whether to enable Defender security gating. |
|
static
Managed |
fromJson(JsonReader jsonReader)
Reads an instance of Managed |
|
List<Managed |
identities()
Get the identities property: List of identities that the admission controller uses to pull security artifacts from registries. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Managed |
withAllowSecretAccess(Boolean allowSecretAccess)
Set the allow |
|
Managed |
withEnabled(Boolean enabled)
Set the enabled property: Whether to enable Defender security gating. |
|
Managed |
withIdentities(List<ManagedClusterSecurityProfileDefenderSecurityGatingIdentity> identities)
Set the identities property: List of identities that the admission controller uses to pull security artifacts from registries. |
Methods inherited from java.lang.Object
Constructor Details
ManagedClusterSecurityProfileDefenderSecurityGating
public ManagedClusterSecurityProfileDefenderSecurityGating()
Creates an instance of ManagedClusterSecurityProfileDefenderSecurityGating class.
Method Details
allowSecretAccess
public Boolean allowSecretAccess()
Get the allowSecretAccess property: In use only while registry access is granted by secret rather than managed identity. Sets whether to grant the Defender gating agent access to cluster secrets for pulling images from registries. If secret access is denied and the registry requires pull secrets, the add-on will not perform image validation. Default value is false.
Returns:
enabled
public Boolean enabled()
Get the enabled property: Whether to enable Defender security gating. When enabled, the gating feature scans container images and audits or blocks deployment of images that do not meet security standards according to configured security rules. For more information, see https://aka.ms/KubernetesDefenderAuditRule.
Returns:
fromJson
public static ManagedClusterSecurityProfileDefenderSecurityGating fromJson(JsonReader jsonReader)
Reads an instance of ManagedClusterSecurityProfileDefenderSecurityGating from the JsonReader.
Parameters:
Returns:
Throws:
identities
public List<ManagedClusterSecurityProfileDefenderSecurityGatingIdentity> identities()
Get the identities property: List of identities that the admission controller uses to pull security artifacts from registries. These are the same identities used by the cluster to pull container images. For more information on configuring this identity, see https://learn.microsoft.com/en-us/azure/defender-for-cloud/gated-deployment-infrastructure-as-code.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAllowSecretAccess
public ManagedClusterSecurityProfileDefenderSecurityGating withAllowSecretAccess(Boolean allowSecretAccess)
Set the allowSecretAccess property: In use only while registry access is granted by secret rather than managed identity. Sets whether to grant the Defender gating agent access to cluster secrets for pulling images from registries. If secret access is denied and the registry requires pull secrets, the add-on will not perform image validation. Default value is false.
Parameters:
Returns:
withEnabled
public ManagedClusterSecurityProfileDefenderSecurityGating withEnabled(Boolean enabled)
Set the enabled property: Whether to enable Defender security gating. When enabled, the gating feature scans container images and audits or blocks deployment of images that do not meet security standards according to configured security rules. For more information, see https://aka.ms/KubernetesDefenderAuditRule.
Parameters:
Returns:
withIdentities
public ManagedClusterSecurityProfileDefenderSecurityGating withIdentities(List<ManagedClusterSecurityProfileDefenderSecurityGatingIdentity> identities)
Set the identities property: List of identities that the admission controller uses to pull security artifacts from registries. These are the same identities used by the cluster to pull container images. For more information on configuring this identity, see https://learn.microsoft.com/en-us/azure/defender-for-cloud/gated-deployment-infrastructure-as-code.
Parameters:
Returns: