Skip to content

Open Policy Agent Config Schema

Note

This is auto-generated documentation from a JSON schema that is under construction, this will improve over time.

Return to the root config schema

https://raw.githubusercontent.com/elastisys/compliantkubernetes-apps/v0.40.1/config/schemas/config.yaml#/properties/opa

Configure Open Policy Agent, constraints and mutations enforced by Gatekeeper.

Compliant Kubernetes contains multiple safeguards to make it easy to follow security best practices.

This includes an implementation of constraints and mutations with similar behaviour as Pod Security Policies, and application developer centric safeguards.

Abstract Extensible Status Identifiable Custom Properties Additional Properties Access Restrictions Defined In
Can be instantiated No Unknown status No Forbidden Forbidden none config/schemas/config.yaml*

TYPE:

object (Open Policy Agent Config)

PROPERTIES:

Property Type Required Nullable Defined by
auditChunkSize number Optional cannot be null Compliant Kubernetes Apps Config
auditFromCache boolean Optional cannot be null Compliant Kubernetes Apps Config
auditIntervalSeconds number Optional cannot be null Compliant Kubernetes Apps Config
constraintViolationsLimit number Optional cannot be null Compliant Kubernetes Apps Config
disallowedTags object Optional cannot be null Compliant Kubernetes Apps Config
imageRegistry object Optional cannot be null Compliant Kubernetes Apps Config
minimumDeploymentReplicas object Optional cannot be null Compliant Kubernetes Apps Config
networkPolicies object Optional cannot be null Compliant Kubernetes Apps Config
rejectLoadBalancerService object Optional cannot be null Compliant Kubernetes Apps Config
resourceRequests object Optional cannot be null Compliant Kubernetes Apps Config
mutations object Optional cannot be null Compliant Kubernetes Apps Config
audit object Optional cannot be null Compliant Kubernetes Apps Config
controllerManager object Optional cannot be null Compliant Kubernetes Apps Config
mutatingWebhookTimeoutSeconds number Optional cannot be null Compliant Kubernetes Apps Config
validatingWebhookTimeoutSeconds number Optional cannot be null Compliant Kubernetes Apps Config

auditChunkSize

auditChunkSize

TYPE:

number (Gatekeeper Audit Chunk Size)

DEFAULTS:

The default value is:

500

auditFromCache

auditFromCache

TYPE:

boolean (Gatekeeper Audit From Cache)

auditIntervalSeconds

auditIntervalSeconds

TYPE:

number (Gatekeeper Audit Interval)

DEFAULTS:

The default value is:

600

constraintViolationsLimit

constraintViolationsLimit

TYPE:

number (Gatekeeper Audit Constraints Violation Limits)

DEFAULTS:

The default value is:

20

disallowedTags

Configure constraint to disallow configured tags on container images.

Note

See the dev docs for context.

disallowedTags

TYPE:

object (Safeguard Disallowed Tags)

imageRegistry

Configure constraint to only allow configured registries for container images.

Note

See the dev docs for context.

imageRegistry

TYPE:

object (Safeguard Trusted Registries)

minimumDeploymentReplicas

Configure constraint to only allow Deployments and StatefulSets with more than one replica.

Note

See the dev docs for context.

minimumDeploymentReplicas

TYPE:

object (Safeguard Minimum Replicas)

networkPolicies

Configure constraint to only allow Pods targeted by NetworkPolicies.

Note

See the dev docs for context.

networkPolicies

TYPE:

object (Safeguard Network Policies)

rejectLoadBalancerService

Configure constraint to reject creation of Services with the type LoadBalancer.

Advantageous if the cluster cannot automatically provision LoadBalancers, e.g. because the infrastructure provider do not offer such Kubernetes integration.

Note

See the dev docs for context.

rejectLoadBalancerService

TYPE:

object (Safeguard Reject Load Balancer Service)

resourceRequests

Configure constraint to only allow Pods configured with resource requests.

Note

See the dev docs for context.

resourceRequests

TYPE:

object (Safeguard Resource Requests)

mutations

Configure mutations to set defaults in deployed resources.

mutations

TYPE:

object (Mutations)

audit

Configure the Audit deployment of OPA Gatekeeper.

audit

TYPE:

object (OPA Gatekeeper Audit)

controllerManager

This is meant to describe the base class if you will, for ck8s resources.

controllerManager

TYPE:

object (Common Resource)

mutatingWebhookTimeoutSeconds

mutatingWebhookTimeoutSeconds

TYPE:

number

DEFAULTS:

The default value is:

5

validatingWebhookTimeoutSeconds

validatingWebhookTimeoutSeconds

TYPE:

number

DEFAULTS:

The default value is:

5

Return to the root config schema


Generated Thu Nov 14 16:18:57 UTC 2024 from elastisys/compliantkubernetes-apps@v0.40.1