muster hooks
List, inspect and approve the hook scripts of your services.
Synopsis
Terminal
muster hooks [command] [service] [hook] [flags]Description
Approvals are stored per machine in ~/.muster/trust/, never in the repo. Deploy, rollback and restart refuse to run hooks that changed since you approved them until you approve again (or pass --yes in CI).
Subcommands
| Subcommand | Description |
|---|---|
(none) [service] [hook] | List services and their hooks, a service's hooks, or print one hook. |
verify [service] | Check hooks against the integrity manifest. |
approve [service] [--yes] | Approve hooks on this machine (--yes: no prompt). |
approve --yes [service...] --json | Approve without a prompt, JSON result (for frontends). |
status [--json] | Approval state of every hook, muster.json and .env. |
lock [service] | Opt-in: make hooks read-only (chmod 555). |
unlock [service] | Allow editing again (chmod 755). |
Flags
| Flag | Description |
|---|---|
--json | Output as JSON. |
-h, --help | Show help. |
Examples
Terminal
muster hooks # list all services and their hooks
muster hooks api # hooks for one service
muster hooks api deploy # print the deploy hook
muster hooks verify # check every hook for tampering
muster hooks approve api # approve after editing api's hooks
muster hooks status --jsonExit codes and JSON
status --json and --json need a read token; approve --yes --json needs deploy. Shapes: JSON API.