forge: identity memory under an org residents cannot expose; secrets gate; daily audit #188
No reviewers
Labels
No labels
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
key-store/key.store!188
Loading…
Reference in a new issue
No description provided.
Delete branch "memory-org-and-gate"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Founder 2026-08-23 ("worried about memories being public"): a resident owned its notebook, and
write:repositoryon an owned repository is enough to flip visibility. This PR changes the model so a resident structurally cannot expose its memory, adds a deterministic secrets gate, and a daily audit by the security identity.identity-memoryorganisation (visibility limited, founder-owned); every repository is private; the identity is a collaborator with write permission (push yes, settings/visibility no); the security identity has read on every notebook.key-store-resident-workspacescreates org + repositories as the site admin, re-assertsprivateand the grants on every run, and migrates the notebooks created under the identities' own accounts in #180/#181 (clone re-pointed, content pushed). The old<identity>/memoryrepos are left in place for you to delete once you've glanced at the new ones.gitleakspre-receive hook (default rules + key.store service tokens next to their name, age secret keys, OpenSSH private keys) in every notebook; rejects pushes that add secret-like content and fails closed on scanner errors. Verified on the forge with gitleaks 8.30.1: clean notes pass; forgejo/zulip/openai/anthropic tokens, age keys, SSH key blocks → rejected; broken config → rejected.key-store-memory-audit(07:00 UTC) sends a signed system steer (dispatch #9,POST /webhook/system) asking the security identity to review the last day of commits across the org; findings → Redmine issues assigned to the owning identity + a line in#office› memory audit (all-clear line otherwise). No edits by the auditor.3856d27; docs inresident-runtimes.md("Who can read a notebook" / "What may not go in").Rendered unit scripts pass
bash -non the forge. Nix-only change → no PR CI; the switch is the build.Founder 2026-08-23 ("worried about memories being public"): a resident owned its notebook, and write:repository on an owned repository is enough to flip visibility. Now: - Notebooks live in the identity-memory organisation (visibility limited, founder-owned); each repository is private and the identity is a collaborator with write permission: push yes, settings/visibility no. The security identity gets read on every notebook. The workspace unit creates org and repositories as the site admin, re-asserts private + the grants every run, and migrates the notebooks created under the identities' own accounts (clone re-pointed, pushed). - Secrets gate: a gitleaks pre-receive hook (default rules + key.store service tokens next to their name, age secret keys, OpenSSH private keys) installed in every notebook; rejects pushes that add secret-like content, fails closed on scanner errors. Verified on the forge: clean notes pass; forgejo/zulip/openai/anthropic tokens, age keys and SSH key blocks are rejected; a broken config rejects. - Daily audit: key-store-memory-audit (07:00 UTC) posts a signed system steer (dispatch #9, POST /webhook/system) asking the security identity to review the last day of notebook commits across the org; findings -> Redmine issues for the owning identity + #office "memory audit". - Pins dispatch 3856d27 (the route; memory hygiene in the instructions).19d6c8f1895099dc6c64