Skip to content

Policy

Policies serve the purpose of describing the parameters for individual workload identities. They offer a comprehensive approach by allowing the simultaneous specification of connection properties, SPIFFE ID, and policy enforcement settings.

selectors:
- linux:uid: [501, 1001]
linux:binary:name: curl
certificate:
workloadID: curl
dns:
- example.camblet.io
ttl: 8h
connection:
mtls: STRICT
passthrough: false
allowedSPIFFEIDs:
- spiffe://trust.domain/workload-id
egress:
- selectors:
- label: traefik
certificate:
workloadID: specific-workload-id

Policy

FieldTypeRequiredDescription
selectors[]selectorYesSelectors comprise one or more sets of labels and their corresponding values. Their purpose is to precisely describe a specific workload.
certificatecertificateYesX509 certificate properties.
policypolicyNoPolicy configuration.
egress[]policyNoEgress comprises a set of policies that define the parameters for outgoing connections originating from a specific identity.

Certificate

FieldTypeRequiredDescription
workloadIDstringYesThe SPIFFE ID’s Workload ID component.
dns[]stringNoDomain names to include in the issued X.509 certificate.
ttlstringNoThe Time-to-Live (TTL) specifies the duration for which the certificate remains valid.

Connection

FieldTypeRequiredDescription
mtlsmTLSModeNoWhether mutual TLS (mTLS) enforcement is applied (relevant exclusively to incoming connections).
passthroughbooleanNoDetermining whether to activate passthrough mode for the connection. If enabled, data passes through unchanged.
allowedSPIFFEIDs[]stringNoList of permitted SPIFFE IDs eligible for connection. If the list is empty, all connections are permitted.

mTLSMode

NameDescription
STRICTConnection requires client/peer certificates for authentication.
DISABLEConnection does not use client/peer certificates.