Access Policy Check
Access Policy Check CLI command reference
goodmem access-policy check
Check the current principal's effective authority
Synopsis
Evaluate up to 50 advisory authorization checks for the authenticated principal.
Repeat --check for each OPERATION:RESOURCE_KIND[:RESOURCE_UUID] question. INSTANCE targets omit the UUID; every concrete resource target requires it. GoodMem deliberately reports a missing target and a denied operation identically as allowed=false. A later resource call always reauthorizes against fresh state.
Top-level creates and singleton collection or administrative checks use INSTANCE, including LIST_API_KEY. CREATE_MEMORY and LIST_MEMORY instead use their parent SPACE. Reads, mutations, proxy operations, and access-policy administration use the concrete resource. LIST_RETRIEVE_MEMORY_LOG_POLICY does not have a supported preflight check.
The server validates every operation and target pairing.
goodmem access-policy check [flags]Examples
goodmem access-policy check \
--check CREATE_SPACE:INSTANCE \
--check READ_SPACE:SPACE:70e025f6-76ca-4cbe-b8fc-7dab8e84590aOptions
--check stringArray Authorization question OPERATION:RESOURCE_KIND[:RESOURCE_UUID] (repeatable, maximum 50)
-f, --format string Output format: table, json, compact, quiet (default "table")
-h, --help[=true|false] help for checkOptions inherited from parent commands
--api-key string API key for authentication (can also be set via GOODMEM_API_KEY environment variable)
--server string GoodMem server URL (gRPC API; default ports: https=443, http=80)SEE ALSO
- goodmem access-policy - Manage authorization grants and role assignments