strazactl drafts
Check, store and review drafts of changes to MCP servers, roles, access rows and policy sets
On this page
Synopsis
A draft holds App, Role, PolicySet and Removal documents that publish together or not at all. Straza checks every draft against live state, and nothing in a draft changes live state until a person publishes it in the console under Drafts. strazactl runs on an admin API token, which is not a person, so it never publishes.
Exit status: 0 when the command did its job and, for check, create, update, revert and rebase, the documents can be published as they stand. 1 when the server looked and said no: the verdict refuses, or the server refused an update, a revert or a rebase. 2 when the command could not do its job, for usage, a file, the credential, a refusal of the caller, the network or the server. list, show and discard never exit 1.
strazactl drafts [flags]
Options inherited from parent commands
--server string strazad base URL (overrides $STRAZA_SERVER)
See also
- strazactl: Straza admin CLI
- strazactl drafts check: Check documents against live state and print the verdict, storing nothing
- strazactl drafts create: Store the documents as a new draft and print its verdict
- strazactl drafts discard: Discard an open draft, which changes nothing live
- strazactl drafts list: List drafts, newest first, the open ones unless --state names others
- strazactl drafts rebase: Check a draft again on live state, keeping the fields it changes and taking every other field from live
- strazactl drafts revert: Make a new draft that undoes a published one, checked like any other
- strazactl drafts show: Show a draft: who proposed it, each object against live state, its verdict and who gains what
- strazactl drafts update: Replace an open draft’s documents with a new revision and print its verdict