| new file mode 100644 |
| index 000000000..a7f8f5a5c |
| --- /dev/null |
| +++ b/docs/superpowers/notes/census-claims-group-roll-verb.tsv |
| @@ -0,0 +1,24 @@ |
| +internal/grouproll/config.go:LoadConfig reads the operator's group config file named by --config (operator CLI only; refuses root) |
| +internal/grouproll/depart.go:Engine.Depart lstats a chosen replace or remove transaction's journal name in the operator's own 0700 state directory (an existing one refuses before any call), then creates the journal through State.Create (O_NOFOLLOW, 0600); the same reads as Engine.Roll |
| +internal/grouproll/engine.go:Engine.blocked lstats provider-divergence.json in the operator's own 0700 state directory (no symlink follow); any answer but not-found refuses as a damaged record |
| +internal/grouproll/engine.go:Engine.preflight reads provider-observation.json from the operator's own 0700 state directory |
| +internal/grouproll/journal.go:Journal.read reads a format 2 journal from the operator's own 0700 state directory, capped at 64 MiB |
| +internal/grouproll/plan.go:Engine.Plan reads provider-observation.json from the operator's own 0700 state directory |
| +internal/grouproll/probe.go:Engine.Probe creates the probe transaction's journal through State.Create (O_NOFOLLOW, 0600) in the operator's own 0700 state directory under the group lock, after refusing an open transaction; the same read as Engine.Roll, with a generated probe- id |
| +internal/grouproll/roll.go:Engine.Roll lstats a chosen transaction's journal name in the operator's own 0700 state directory (an existing one refuses before any call), then creates the journal through State.Create (O_NOFOLLOW, 0600) |
| +internal/grouproll/roll.go:Engine.closeLost lstats provider-divergence.json in the operator's own 0700 state directory to say it is kept |
| +internal/grouproll/state.go:State.ActiveID lists and reads active-v2.json and journals in the operator's own state directory |
| +internal/grouproll/state.go:State.Create creates a journal in the operator's own state directory (O_NOFOLLOW, 0600); the begin row records the caller's provider user id |
| +internal/grouproll/state.go:State.Read reads a small state file (65,536-byte cap) from the operator's own state directory |
| +internal/grouproll/state.go:randomHex reads crypto/rand for plan log and transaction names |
| +internal/grouproll/state_unix.go:lstatOwner lstats the state directory and its ancestors to refuse symlinks and unsafe owners |
| +internal/grouproll/state_unix.go:privateFile opens a state file O_NOFOLLOW and checks it is a private regular file owned by the caller |
| +internal/grouproll/state_unix.go:syncDirectory opens the state directory to fsync it |
| +internal/grouprollaws/group.go:Adapter.TemplateRelease reads the launch template's user data from the EC2 answer (in memory, 4 MiB cap) |
| +internal/grouprollaws/pty_linux.go:openPTY opens /dev/ptmx and the pts slave for the Session Manager plugin |
| +internal/grouprollaws/pty_unix.go:pty.run reads the plugin's pty output, capped at 4 MiB |
| +internal/grouprollaws/pty_unix.go:runVersion reads session-manager-plugin --version output, capped at 4 KiB |
| +internal/grouprollaws/session.go:newNonce reads crypto/rand for the frame nonce |
| +internal/grouprollaws/transport.go:boundBody.HandleDeserialize reads an AWS API answer body under the 4 MiB cap |
| +internal/grouprollaws/transport.go:boundedBody.Read reads an AWS API answer body under the 4 MiB cap and the read timeout |
| +system_group.go:runSystemGroup lstats /etc/carlos/host.env to refuse running on a carlos box (euid 0 is refused first); routes the roll, replace, remove, cancel-drain and probe verbs to the engine after refusing missing arguments |