Repository navigation
v1.1.3
This release tightens the gates. Plans and commands that passed before can now stop or ask; each
change is listed under Security. The findings came from an independent review.
Security
idstack plan-summary --predicateneeds--scopeor--scope-fileand exits 2 without one. A
change with a missing or malformedchangeoractionsfails as an unrecognized action, and any
action list containingdeleteorforgetis destructive.- The predicate's IAM and network detection reads nested attributes. On create it counts
falseon
block_public_*,restrict_public_*, andignore_public_*, and unknown IAM or exposure
attributes when the plan'sconfigurationsets them or cannot show them. A Kubernetes workload
that sets a containerportnow needs--allow-network, and one that sets
service_account_nameneeds--allow-iam. - Public IPs, EIPs, function URLs, CloudFront, and
kubernetes_servicecount as network resources.
Scope globs treat[0]and["key"]as literal text; only*and?are wildcards. gates.md: without the CLI a predicate grant cannot pass. Thejqlines are a reading aid.- The guard holds commands it cannot read: unparsable text that names a covered tool, deep nesting,
a shell-cwith no command, and a shell orsshfed by a pipe, heredoc, or here-string. It
recognizes commands behind launchers, substitutions, and unknown flags. - The guard holds a command that runs something its own words do not show (
xargs,parallel,
find -exec,env -S, non-trivialsedandawk, andtar,rsync, and similar with an
option that runs a command) whenever the command line names a covered tool. Some read-only
pipelines that pass a covered tool's output toxargsorawknow ask. - New guard rules: IAM grants, policy writes, firewall opens, deploys, remote commands, and
public-access flags foraws,gcloud, andaz;pulumi,helmfile,eksctl,gsutil,
vaultdelete and revoke, anddocker compose down -v;ghandglabmerges and pipeline
runs;terraform refresh,test, andinit -migrate-state; destructive host commands over
sshandrsync --deleteto a remote; and shell writes to the guard's own settings and
approval files. Plaingit pushis not held. guard allow-onceapprovals are bound to the directory as well as the command text; pass--cwd
and quote the command as one argument.IDSTACK_GUARD_MODEcan raise the mode but no longer
lower it. Guard state is created private (0700 directory, 0600 log).- The plugin hooks start through
hooks/guard_hook.py, which holds commands in ask mode when the
CLI cannot load. - Codex: the plugin loads its own guard hook (
hooks/codex.jsonthrough
.codex-plugin/plugin.json), shown as "idstack guard" in/hooksand answeringdeny. Before,
Codex ran the Claude Code hook, whoseaskanswer Codex treats as a failed hook and then runs
the command. Trust the hook again in/hooksafter updating. idstack judgeand the guard's judge call treat any answer that is not a number in [0, 1] as
unsettled, and a non-object response as a failed call.IDSTACK_JEV_URLmust be https and
redirects are not followed. Environment assignments, secret-named values, URL credentials, and
auth headers are masked before a command is sent.- Playbooks stop at a gate before every state-mutating step: the leak revoke, new-value creation,
and consumer rollout insecret-rotation, reference removal indecommission, the DNS TTL
change inedge-change, and CI retriggers that hold an apply, deploy, sync, or publish job in
babysit. A restore, even into a scratch namespace, is state-mutating. host-config-changeruns check mode for the fleet batch before the fleet gate. It and
drift-auditlook forcheck_mode: falsebefore any--checkrun. The Ansible predicate fails
oncommand,shell,raw, andscripttasks that would run.
Fixed
install.sh: more than one of--check,--dry-run,--uninstallis a usage error instead of
the last flag winning.--refis fetched and checked out on every run, so a tag pin survives a
second run. Bash older than 4.4 and Python older than 3.11 exit 3 with one line.install.sh --sourceis local only when written as a path (/abs,./rel,../rel,.); a
bare folder name is a usage error.- An interrupted pstack copy is detected and redone: skills are staged beside the target and
renamed into place, and the manifest gets its commit last. Failed git and harness commands land
inerrorswith exit 1 instead of a bare abort. install.sh --uninstallno longer stops half way when a guard hook cannot be removed, keeps the
CLI link and the shared model file while another harness still uses them, and still removes
links when a harness CLI is not on PATH.idstack guard install --harness codexno longer adds a second entry when the plugin ships the
hook, and removes one left by an earlier run;idstack doctorwarns about two.judge --evalexits 1 when no cases are selected and 3 on a failed call.doctor --live
reports a failed probe as failed.build --checkflags generated files whose source is gone.
With--json, human text goes to stderr, and an unexpected error still prints one JSON object.scripts/check.pyreports a short mirror pin or a brokenconfig/pstack-lock.jsonas a finding
and still runs every other check. It requires a changelog section for the manifest version and
compares all four version manifests.- The
pstack-watchworkflow can open or update its issue on drift; before, the step stopped
first.
Changed
- CI runs the repo check, unit tests, and build check on Python 3.11 and the newest stable release.
Release tags must be onmain. Markdown lint runs with default rules on. docs/plan.md, the playbook catalog, and the check lists in CONTRIBUTING.md and AGENTS.md match
what ships.