Safeguard Docs
Compliance ConnectorsSetup by categoryVendor Procurement

Gatekeeper

Connect Gatekeeper to Safeguard: what it provides, how to set it up, and the frameworks it provides evidence for.

Record your Gatekeeper connection as vendor procurement evidence.

CategoryVendor Procurement
Connect withAPI token
What a connection producesConnection record

Connect with an API token

  1. In Gatekeeper:

    1. Create a service account for Safeguard: kubectl create serviceaccount safeguard-reader (add -n <namespace> to choose its namespace).
    2. Create a read-only ClusterRole: kubectl create clusterrole safeguard-reader --verb=get,list --resource=clusterrolebindings,clusterroles,roles,rolebindings,namespaces,nodes,pods,serviceaccounts,networkpolicies
    3. Bind the role to the service account: kubectl create clusterrolebinding safeguard-reader --clusterrole=safeguard-reader --serviceaccount=<namespace>:safeguard-reader
    4. Get a token. For a short-lived token run kubectl create token safeguard-reader. For a long-lived token, create a Secret of type kubernetes.io/service-account-token with the annotation kubernetes.io/service-account.name: safeguard-reader, then read it with kubectl get secret <secret> -o jsonpath='{.data.token}' | base64 --decode.
    5. Paste the token into Service account token.

    Where to find the other values:

    • Cluster CA certificate (PEM) (optional): The service-account token Secret also holds the cluster CA: kubectl get secret <secret> -o jsonpath='{.data.ca\.crt}' | base64 --decode.

    Gatekeeper's public documentation does not cover every step.

    Source: kubernetes.io, kubernetes.io, checked 2026-10-07.

  2. On Compliance › Connectors, open Gatekeeper, click Connect, choose API token and fill in:

    FieldWhat to enter
    API token / Personal access tokenRequired. Stored encrypted and never shown again.
    Base URL (optional)-
    Account / Org / Workspace (optional)-
  3. Click Connect with token.

Frameworks

Gatekeeper publishes no API for what these tests check, so its evidence is an attestation: connect it to record the connection, then attest the result. An accepted attestation counts toward each control below.

FrameworkEvidenceControlsTests
SOC2AttestationCC6.2, CC6.31
ISO/IEC 27001AttestationA.5.181
HIPAA Security RuleAttestation164.308(a)(3)1
PCI DSSAttestation7.2.41
NIST CSF 2.0AttestationPR.AA-051

On this page