Expand description
Filter packs.
GET /v1/policy/bundle (If-None-Match) → PolicyBundleV1 or 304.
Filter packs carry their statement as base64 bytes, signed by a Cloud
key under FILTER_PACK_SIGNATURE_DOMAIN.
Structs§
- Filter
Pack RefV1 - One filter pack the org enabled.
- Filter
Pack V1 - The signed statement of a filter pack (the bytes behind
statement_b64). Unknown top-level fields are tolerated; patterns are strict. - Filter
Pattern V1 - One pattern of a filter pack. Unknown fields or values refuse the pack.
- Policy
Bundle V1 - Response of
GET /v1/policy/bundle. - Required
Filter Pack V1 - A filter pack a TOML org policy statement required: field order is the signed byte order. Cloud-Protocol 2.1 sends no org policy; the engine’s policy runtime still reads it from a policy it kept from before.
- Signed
Statement V1 - A statement and its signature.
Enums§
- Filter
Action V1 - What a matching pattern does.
Constants§
- FILTER_
PACK_ SCHEMA - MAX_
FILTER_ LABEL_ BYTES - Longest pattern id and label (
cloud:<id>must fit a 64-byte rule label). - MAX_
FILTER_ PACKS - MAX_
FILTER_ PACK_ STATEMENT_ B64 - Largest encoded filter-pack statement.
- MAX_
FILTER_ PATTERNS - MAX_
FILTER_ PATTERN_ CHARS - MAX_
FILTER_ PATTERN_ COMPILED_ BYTES - Compiled-size limit of one pattern (
regexsize_limit and dfa_size_limit). - MAX_
POLICY_ BUNDLE_ BYTES - Largest policy-bundle response (a full 1 MiB pack plus envelopes).
- POLICY_
BUNDLE_ SCHEMA
Functions§
- filter_
pack_ signing_ input domain || statement: what a filter-pack signature covers.- validate_
required_ filter_ packs - At most
MAX_FILTER_PACKS, ids strictly ascending (one encoding per set), versions from 1, digests lowercase hex. The signed org policy v2 contract (ee/contracts/team-company) validates its required packs with it.