Use this reference when writing access policies. It describes supported actions, principal and resource types, context fields and audit records. Start with the policy guide for examples and policy-management procedures.
Action map
Action names are case-sensitive. An action absent from this list is not a supported policy action.
Action matrix table
The action table lists fields added by each action. The following context fields are shared across actions:
| Context fields | Type | Meaning |
|---|---|---|
mfa_satisfied, step_up_satisfied, totp_satisfied, webauthn_satisfied, webauthn_uv_satisfied |
Bool | Verified factor and user-verification state available to the decision. |
mfa_age_seconds, step_up_age_seconds, totp_age_seconds, webauthn_age_seconds |
Long | Age of the corresponding factor evidence in seconds. |
in_corp_vpn |
Bool | Whether the request was classified as originating from the configured corporate VPN. |
timestamp, hour, weekday |
Long | Time context supplied with the request. |
ticket_open, ticket_id |
Bool, String | Ticket status and identifier available to the decision. |
recheck_confirmed |
Bool | Whether the request carries the required recheck confirmation. |
src_ip |
Optional ipaddr | Client source address when available; guard access with context has src_ip. |
A dash in the action table means that the action adds no field. Optional fields
must be guarded with a Cedar has check. Structured approval and step-up values
are described under context fields.
| Action | Principal -> resource | Required context delta | Optional context delta | Catalog / target prerequisite | Audit evidence | Task guide |
|---|---|---|---|---|---|---|
| connect | User, Agent -> SshHost, Database, KubernetesCluster, TcpService, McpServer, WebApp, WebEgress, RdpHost | presented:String | db_role:String; approved_request; step_up_grant | A served catalog row of the listed kind; a Database child inherits its catalogued host | policy.decision POL-0101; admitted sessions emit session.open and session.close | one connect |
| kubeRequest | User, Agent -> KubernetesCluster | verb:String; resource_kind:String; namespace:String; resource_name:String; subresource:String; read_only:Bool | approved_request; step_up_grant | The cluster must resolve to a served KubernetesCluster catalog row | Denial is policy.decision POL-0201; an allowed request emits kube.request SES-0501 | Kubernetes request authorization |
| dbQuery | User, Agent -> Database | sql_category:String (read, write, ddl, dcl, or other) | db_role; approved_request | The database host must be served; a nested database is resolved through its parent host | POL-0202 is evaluated by category at session open; a refused statement emits db.query SES-0301 | per-statement authorization |
| mcpCallTool | User, Agent -> Tool | - | approved_request; step_up_grant | The parent McpServer must be catalogued; the transient Tool child supplies its name and destructive flag | Denial is policy.decision POL-0203; an allowed call emits mcp.tool_call MCP-0101 | MCP per-tool policy |
| mcpReadResource | User, Agent -> McpResource | - | approved_request; step_up_grant | The parent McpServer must be catalogued; the URI is a transient McpResource child | Denial is policy.decision POL-0204; an allowed read emits mcp.resource_read MCP-0102 | MCP per-tool policy |
| mcpGetPrompt | User, Agent -> McpPrompt | - | approved_request; step_up_grant | The parent McpServer must be catalogued; the prompt name is a transient McpPrompt child | Denial is policy.decision POL-0205; an allowed get emits mcp.prompt_get MCP-0103 | MCP per-tool policy |
| llmCall | User, Agent -> LlmModel | - | approved_request; step_up_grant | The parent LlmService must be catalogued; LlmModel is a transient child resolved under that service | Denial is policy.decision POL-0206; an allowed call emits llm.call SES-0401 | model calls |
| httpRequest | User, Agent -> WebApp, WebEgress | method:String; host:String; port:Long; route:String; path:String; read_only:Bool; inspected:Bool; presented:String; upgrade:String | approved_request; step_up_grant | The web endpoint must resolve to a served WebApp or WebEgress row | Denial is policy.decision POL-0207; allowed traffic emits http.request or http.tunnel SES-0701/SES-0702 | HTTP routes |
| desktopChannel | User, Agent -> RdpHost | channel:String; direction:String; presented:String | windows_user | Decided once per channel and direction while the access certificate is issued, and signed into it; the backend's own configuration is the floor and this is the ceiling | Denial leaves the channel out of the certificate; the session's open row names what it carries (channels), and POL-0208 is the decision code |
A desktop's channels |
| viewTools | User, Agent -> Tool | - | - | The listing is filtered from the catalogued MCP server inventory; the transient tool is not a grant target | No audit row for a listing filter by design; POL-0302 is the schema action identity | listing visibility |
| view | User, Agent -> SshHost, Database, KubernetesCluster, TcpService, McpServer, LlmService, WebApp, WebEgress, RdpHost | - | - | The catalog listing is the source of visible resources; no backend string bypasses it | No audit row for a listing filter by design; POL-0301 is the schema action identity | catalog visibility |
| enrollNode | User -> EnrolledNode | - | - | Imports a leaf into the enrolled-node registry; it does not require a data-plane catalog row | Admission denial is enroll.node_admission IDN-0401; successful import is identity.import IDN-0301 | registration lifecycle |
| revokeNode | User -> EnrolledNode | - | - | The target must be an enrolled identity; workload revocation also removes its registry row | Admission denial is identity.revoke_admission IDN-0402; effects emit identity.revoke IDN-0302 or identity.delete IDN-0303 | per-node revocation |
| manageCatalog | User -> SshHost, Database, KubernetesCluster, TcpService, McpServer, LlmService, RdpHost, Catalog | - | - | This action creates, changes, removes, or reads catalog rows; Catalog::all is the collection handle | catalog.manage CAT-0101 records allow and deny outcomes | resource catalog lifecycle |
| declareAgent | User -> AgentRun | - | - | Writing or removing one agent's declaration; the target carries the environment, node and project | agent.declare AGT-0101 records allow and deny outcomes | agent host |
| switchAgent | User -> AgentRun | - | - | Turning a declared agent on or off; does not include declareAgent |
agent.switch AGT-0102 records allow and deny outcomes | agent host |
| viewAgents | User -> AgentRun | - | - | Reading the declarations; AgentRun::* is the collection handle; the listing is not filtered per row | agent.view AGT-0103 records allow and deny outcomes | agent host |
| disableUser | User -> User | - | - | The user and owner delegations are identity state. They are not catalog resources | Owner cascade emits delegation.revoke_by_owner DLG-0201; forget-user emits user_name.forget AUT-0401; schema code POL-0405 is not a separate policy row |
administrative actions |
| issueJoinToken | User -> EnrolledNode | - | step_up_grant | The target is a positive role allowlist: gdsgate-connector, gdsgate-proxy, gdsgate-workload, or gdsgate-agent-host for the provisioner and people baseline | Denial is enroll.token_admission IDN-0403; creation emits enroll.token.create IDN-0101 | bootstrap tokens |
| viewNodes | User -> EnrolledNode | - | - | Registry-wide handle EnrolledNode::*; no catalog row is needed | A denied listing emits view_nodes.admission IDN-0404; an allowed listing has no row | registration lifecycle |
| viewAudit | User -> AuditLog | - | - | Chain handle AuditLog::chain; it reads the audit store | audit.view AUD-0101 records both allow and deny | audit export |
| rotateCA | User -> CertificateAuthority | - | step_up_grant | The authority is a control-plane CA object; mTLS and emergency paths do not supply a factor automatically | ca.rotate CAS-0101 records the outcome | CA rotation |
| editPolicy | User -> PolicyDoc | - | - | The singleton policy document is the target; the break-glass permit is checked before a push | policy.edit PED-0101 records the proposal outcome | policy lifecycle |
| approvePolicyEdit | User -> PolicyDoc | - | step_up_grant | The target is a pending policy proposal; approval requires the separate approver lane and min_approvers >= 2 | policy.edit_approve PED-0102 records each vote/outcome | policy lifecycle |
| viewRecordings | User -> AuditLog | recording_session_uid:String; recording_actor:String; recording_target:String; recording_kind:String | step_up_grant | Recording metadata is in the audit store; list requests use empty strings, row requests use actual values | recordings.view REC-0101 records allow and deny, including per-row gates | audit export |
| approveRequest | User -> AccessRequest | - | step_up_grant | The access-request row names requester, action, target, and expiry; its target resource must also be catalog-served before use | access_request.approve JIT-0102 records each review | JIT approvers |
| killSession | User -> Session | - | step_up_grant | The target must be a live session registry entry; it is not a catalog row | A real termination emits session.kill SES-0601; list visibility does not consume a grant or emit a row | session termination |
| sshForwardLocal | User, Agent -> SshHost | forward_target:{host:String,port:Long} | - | The SSH host must resolve in the catalog and the active session must allow local forwarding | policy.decision POL-0102 records allow or deny | SSH -L/-R |
| sshForwardRemote | User, Agent -> SshHost | forward_bind:{host:String,port:Long} | - | The SSH host must resolve in the catalog; config and Cedar both constrain the bind address | policy.decision POL-0103 records allow or deny | SSH -L/-R |
| sshForwardAgent | User, Agent -> SshHost | - | - | The SSH host must resolve in the catalog and the backend must set allow_agent_forward = true | policy.decision POL-0105 records allow or deny | SSH -A |
| mintOnwardSshCert | User, Agent -> SshHost | login_user:String | - | The SSH host must resolve in the catalog and the gateway CA mints the downstream certificate | policy.decision POL-0104 records allow or deny | downstream certificate minting |
| sshProgram | User, Agent -> SshHost | program_kind:String; console_control:Bool | git_operation:String; git_service:String; repository:String; subsystem:String | The session's SSH resource must be served | policy.decision POL-0106 records the request decision | SSH program requests |
| sshUseClientKey | User, Agent -> SshHost | - | - | The SSH backend permits onward authentication with the caller's key | policy.decision POL-0107 records the decision | Caller key |
| udpConnect | User, Agent -> WebEgress | method:String; host:String; port:Long; route:String; path:String; read_only:Bool; inspected:Bool; presented:String; upgrade:String | git_operation:String; repository:String; approved_request; step_up_grant | An admitted web-egress resource and enabled UDP destination | policy.decision POL-0209 records the destination decision | External UDP access |
connect is the general resource session action. Protocol-specific request
gates such as kubeRequest, dbQuery, mcpCallTool, mcpReadResource,
mcpGetPrompt, llmCall, and httpRequest carry protocol context and do not
replace the base catalog decision. viewTools and view control catalog
visibility. Administrative actions target control-plane entities and remain
separate from data-plane sessions.
Resource types for connect
The action applies to SshHost, KubernetesCluster, Database, McpServer,
TcpService, WebApp, WebEgress, and RdpHost resources. llmCall targets an
LlmModel child, whose catalogued parent is an LlmService. No connect
session is opened for an LlmService or LlmModel. The catalog kind and
parent relationships are resolved before Cedar evaluation; an arbitrary backend
string is not a resource identity.
kubeRequest and context.read_only
Kubernetes request policy receives the cluster resource and a read_only
boolean. A mutating request must not be treated as read-only because the HTTP
method is only an input to the request gate. Use an explicit policy condition
for the boolean.
connect and context.login_user
On an SSH resource whose backend runs sessions as an account of its host
(login_mode = "host_user"), connect is evaluated once per candidate account
with context.login_user set to the POSIX login that session would run as. The
field is absent on every other path, so a rule reading it must guard with
context has login_user.
The account a caller ends up on is the one the policy allowed. Where the backend offers several and more than one is allowed, the caller is asked to name one and the refusal lists what is open to them.
permit(principal in Group::"platform", action == Action::"connect", resource);
forbid(principal, action == Action::"connect", resource is SshHost)
when { context has login_user && context.login_user == "root" };A backend offering login_users = ["*"] serves any account its host holds, so
policy is the only bound on which. A permit on connect for such a resource
that does not read this field permits every account there is.
Credential type: context.presented
context.presented describes how the credential reached the gateway. Policies
can distinguish a user-presented identity from a machine or delegated path,
but the field does not prove that the principal has access. Pair it with the
principal, resource, and action.
Entity types
The schema uses structural, principal, target-resource, control-plane, and runtime entities. Required fields are typed so Cedar validation can reject an ill-typed policy before activation.
Entity parent table
| Entity | Declared parents |
|---|---|
| Organization | - |
| Project | Organization |
| Group | Group |
| User | Group, Organization |
| Agent | Group, Project |
| SshHost | Project |
| KubernetesCluster | Project |
| Database | Project, Database |
| McpServer | Project |
| Tool | McpServer |
| McpResource | McpServer |
| McpPrompt | McpServer |
| TcpService | Project |
| WebApp | Project |
| WebEgress | Project |
| LlmService | Project |
| LlmModel | LlmService |
| Catalog | - |
| EnrolledNode | - |
| CertificateAuthority | - |
| PolicyDoc | - |
| AccessRequest | - |
| AuditLog | - |
| Session | - |
Reserved baseline groups
| Group | Purpose |
|---|---|
| gdsgate-admin | Control-plane mTLS identity |
| gdsgate-break-glass | Reserved identity used to check recovery access when policies change; unavailable for client sign-in |
| gdsgate-provisioner | External provisioning mTLS identity |
Structural
Organization, Project, and nested Group provide grouping. A Project is
in an Organization; a Group can be nested in another Group.
Principals
User may carry email, org, and mfa_enrolled. Agent may carry
spiffe_id, project, kind, and owner. EnrolledNode is a control-plane
resource. It is never a principal. Optional principal attributes require guarded Cedar
access.
Target resources
SshHost, KubernetesCluster, Database, McpServer, Tool, McpResource,
McpPrompt, TcpService, WebApp, WebEgress, LlmService, and LlmModel
represent data-plane targets. Infrastructure resources carry required
environment; Database may carry engine. MCP child entities belong to an
MCP server.
Control-plane resources
Catalog, EnrolledNode, CertificateAuthority, PolicyDoc, and
AccessRequest represent administrative state. AuditLog is the audit record
resource used by audit visibility rules.
Runtime resources
Session represents a live or recorded session and may carry owner, resource,
kind, source IP, and start time. Runtime attributes describe observed state;
they do not create a catalog declaration.
Context fields per action
The schema declares context fields on each action. Runtime code supplies the
relevant subset; an action whose policy reads a missing required field evaluates
to deny. Optional src_ip and approved_request must be guarded with Cedar
has checks. Typical fields include environment, project, source address,
credential presentation, read-only mode, MCP tool metadata, database query
metadata, and approval state.
Use the fields supported by the action being decided. Validate a policy before activation; a field available to one action may be unavailable to another.
| Field | Type | Meaning |
|---|---|---|
db_role |
String | Database session role. |
approved_request |
Record: expires (Long), for_action (String) |
Approved access request and its expiry. |
step_up_grant |
Record: method (String), for_action (String) |
One-time factor proof bound to the selected action. |
JIT approvals and one-time step-up grants
approved_request and step_up_grant are different controls. An approved_request is an active access request approval with an expiry and an exact principal/resource/action key. It can be used while active; it is not a general-purpose permit, and it is not supplied to listing actions such as viewTools. A listing must remain reachable before an operator can select an individual MCP, recording, request, or session target.
step_up_grant is one-time. The grant is spent only when every allowing rule needed for the decision names the grant marker. A denial does not spend it, and another permit that allows the operation without the marker does not spend it. The schema and authority code narrow the one-time key as follows:
| Lane | One-time grant scope |
|---|---|
| connect | The selected served resource |
| kubeRequest | The cluster; the Cedar rule must further narrow verb, kind, namespace, name, or subresource |
| mcpCallTool | The transient Tool child |
| mcpReadResource | The transient McpResource child |
| mcpGetPrompt | The transient McpPrompt child |
| llmCall | The transient LlmModel child |
| httpRequest | The WebApp or WebEgress resource; the rule must further narrow route or path |
| issueJoinToken | The EnrolledNode role named by the token |
| rotateCA | The CertificateAuthority |
| approvePolicyEdit | The pending proposal version |
| viewRecordings | The recording session UID; a list does not spend a grant |
| approveRequest | The AccessRequest ID |
| killSession | The live Session UID; listing visibility does not spend a grant |
The method is checked by the policy context and the grant is consumed by the authority only for the decisive operation. dbQuery has approved_request but no step_up_grant in the schema; its categories are enforced at database session open and by the connector query path. Workload requests in the Kubernetes lane do not receive an interactive ceremony. Validate these rules before activation and verify both allowed and denied requests with the intended identities.
Hierarchy and subresources
Cedar parent membership is part of the entity contract. Project is below Organization; User is below Group and Organization; Agent is below Group and Project. SshHost, KubernetesCluster, Database, TcpService, McpServer, WebApp, WebEgress, and LlmService are below Project. Database has Database as a nested parent so Database::host.database inherits the served host's catalog membership. Tool, McpResource, and McpPrompt are transient children of an McpServer. LlmModel is a transient child of an LlmService.
The LLM lane decides llmCall on LlmModel. LlmService has no connect
decision. The service must be catalogued before the model child can be
resolved, and the model body is read only after the per-call policy decision.
The same parent-resolution rule applies to MCP children and database
subresources. Catalog::all, EnrolledNode::*, and AuditLog::chain are explicit
collection handles for control-plane operations. They do not match data-plane
catalog rows.
Reserved baseline capabilities
The shipped tenant baseline is deny-by-default and uses separate identities for recovery, provisioning, and people. A tenant policy does not have to copy them:
| Baseline identity | Capabilities and boundary |
|---|---|
| gdsgate-admin | enrollNode, revokeNode, disableUser, rotateCA, manageCatalog, issueJoinToken, viewNodes, and viewAudit; it never opens a data-plane session |
| gdsgate-provisioner | manageCatalog, viewNodes, and issueJoinToken only for gdsgate-connector, gdsgate-proxy, gdsgate-workload, and gdsgate-agent-host; it cannot enroll, revoke, disable, rotate, edit policy, read recordings, kill sessions, or connect |
| admins | The people group can view and manage the working catalog, view nodes, revoke nodes, disable users, issue the four connector/proxy/workload/agent-host tokens, and use the baseline data-plane grants; it cannot rotate the CA, enroll arbitrary identities, mint control-plane tokens, or use the SSH forwarding/onward-cert lanes |
| gdsgate-break-glass | A reserved identity used to check that policy changes retain editPolicy on PolicyDoc::0; unavailable for client sign-in |
The gdsgate- namespace is reserved for cluster-populated machine groups. The baseline refuses an identity-provider token that tries to claim a new gdsgate-* group. Only cluster-populated names are used by the starting policy. gdsgate-admin and gdsgate-provisioner are mTLS identities. An IdP group cannot supply them.
Strict validation, missing fields, and forbids
Cedar validation rejects an unknown attribute or an ill-typed policy before activation. During evaluation, a policy that reads a required field not present in the action context raises a Cedar evaluation error and is skipped. With deny-by-default, skipping the matching permit leaves the request denied. An optional field is safe only behind a context has guard.
Forbid has precedence over permit. The destructive MCP tool baseline proves that a forbid still denies an administrator even when a broader permit would otherwise allow mcpCallTool. The same deny-by-default rule means an unknown principal or unsupported action has no implicit access. The policy engine is not the catalog gate: authority resolves the resource first and refuses a withdrawn or unknown catalog resource before Cedar.
Control-plane lanes
The audit registry distinguishes data-plane authorization from administrative
operations. Session and request checks use policy.decision, including connect, the
SSH forwarding and program actions, kubeRequest, httpRequest, udpConnect,
desktopChannel, the MCP request actions and llmCall. The
control-plane actions enrollNode, revokeNode, issueJoinToken, viewNodes,
manageCatalog, disableUser, rotateCA, editPolicy, approvePolicyEdit,
approveRequest, viewAudit, viewRecordings, and killSession emit their own
administration event and carry cedar_action in that event where that event includes it.
dbQuery is intentionally different: the authority evaluates its five SQL categories at session open, records the categories with the connect decision, and the connector emits db.query for a refused statement. view and viewTools are listing filters. A successful filter is not an audited denial or a security event; a denied control-plane listing is still recorded where the action audit contract says so.
The catalog prerequisite applies before every data-plane row in the action table. A withdrawn catalog entry is refused as resource-not-served before Cedar runs. A stale policy cannot reopen a withdrawn backend.
Audit semantics
See the audit event reference for codes and event names. policy.decision rows include cedar_action, code, deciding, deciding_at, session_uid, presented, and src_ip when a source address exists. Derived credentials therefore have no fabricated source IP. SessionActivity rows carry the operation-specific evidence: kube.request, db.query, MCP events, llm.call, http.request, and http.tunnel.
Control-plane rows use their own evidence codes: catalog.manage CAT-0101, delegation.revoke_by_owner DLG-0201, ca.rotate CAS-0101, policy.edit PED-0101, policy.edit_approve PED-0102, recordings.view REC-0101, access_request.approve JIT-0102, audit.view AUD-0101, and session.kill SES-0601. Node admission and identity effects use the IDN codes shown in the action table. The registry explicitly has no audit row for successful view or viewTools filtering and no separate dbQuery policy row per statement.
Verification workflow
- Run
gdsgate authority policy validateagainst the candidate policy. - Compare action names and entity fields with this reference and the schema.
- Push only through the policy editor and approval workflow.
- Verify the policy version and audit event after activation.
A policy edit cannot grant an unsupported action, and a valid syntax parse does not prove that the intended principal or resource is in scope.