Google Cloud Binary Authorization Policy

Schema for a Binary Authorization policy, which defines the rules for deploying container images to Google Cloud environments.

AttestationContainer SecurityDevSecOpsKubernetesPolicy EnforcementSupply Chain Security

Properties

Name Type Description
name string The resource name of the policy
globalPolicyEvaluationMode string Whether to enable the global policy evaluation mode
admissionWhitelistPatterns array Image name patterns that are always allowed to be deployed
defaultAdmissionRule object The default admission rule for the policy
clusterAdmissionRules object Per-cluster admission rules keyed by cluster resource ID
kubernetesNamespaceAdmissionRules object Per-namespace admission rules
kubernetesServiceAccountAdmissionRules object Per-service-account admission rules
updateTime string The time when the policy was last updated
View JSON Schema on GitHub

JSON Schema

google-cloud-binary-authorization-policy-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cloud.google.com/schemas/binaryauthorization/policy.json",
  "title": "Google Cloud Binary Authorization Policy",
  "description": "Schema for a Binary Authorization policy, which defines the rules for deploying container images to Google Cloud environments.",
  "type": "object",
  "required": ["defaultAdmissionRule"],
  "properties": {
    "name": {
      "type": "string",
      "description": "The resource name of the policy"
    },
    "globalPolicyEvaluationMode": {
      "type": "string",
      "description": "Whether to enable the global policy evaluation mode",
      "enum": ["ENABLE", "DISABLE"]
    },
    "admissionWhitelistPatterns": {
      "type": "array",
      "description": "Image name patterns that are always allowed to be deployed",
      "items": {
        "$ref": "#/$defs/AdmissionWhitelistPattern"
      }
    },
    "defaultAdmissionRule": {
      "$ref": "#/$defs/AdmissionRule",
      "description": "The default admission rule for the policy"
    },
    "clusterAdmissionRules": {
      "type": "object",
      "description": "Per-cluster admission rules keyed by cluster resource ID",
      "additionalProperties": {
        "$ref": "#/$defs/AdmissionRule"
      }
    },
    "kubernetesNamespaceAdmissionRules": {
      "type": "object",
      "description": "Per-namespace admission rules",
      "additionalProperties": {
        "$ref": "#/$defs/AdmissionRule"
      }
    },
    "kubernetesServiceAccountAdmissionRules": {
      "type": "object",
      "description": "Per-service-account admission rules",
      "additionalProperties": {
        "$ref": "#/$defs/AdmissionRule"
      }
    },
    "updateTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time when the policy was last updated"
    }
  },
  "$defs": {
    "AdmissionRule": {
      "type": "object",
      "description": "An admission rule specifies what action to take when a container image matches the rule",
      "required": ["evaluationMode", "enforcementMode"],
      "properties": {
        "evaluationMode": {
          "type": "string",
          "description": "How this admission rule will be evaluated",
          "enum": ["ALWAYS_ALLOW", "ALWAYS_DENY", "REQUIRE_ATTESTATION"]
        },
        "requireAttestationsBy": {
          "type": "array",
          "description": "Resource names of attestors required by this rule",
          "items": {
            "type": "string"
          }
        },
        "enforcementMode": {
          "type": "string",
          "description": "The action when a pod creation is denied by the admission rule",
          "enum": ["ENFORCED_BLOCK_AND_AUDIT_LOG", "DRYRUN_AUDIT_LOG_ONLY"]
        }
      }
    },
    "AdmissionWhitelistPattern": {
      "type": "object",
      "description": "An image name pattern to allow",
      "properties": {
        "namePattern": {
          "type": "string",
          "description": "An image name pattern to allowlist, in the form registry/path/to/image"
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/google-cloud-binary-authorization-policy"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.