forge: identity memory under an org residents cannot expose; secrets gate; daily audit #188

Merged
founder merged 1 commit from memory-org-and-gate into main 2026-08-23 06:02:01 +00:00
Owner

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. 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.

  • Ownership: notebooks live in the identity-memory organisation (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-workspaces creates org + repositories as the site admin, re-asserts private and 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>/memory repos are left in place for you to delete once you've glanced at the new ones.
  • Secrets gate: a gitleaks pre-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.
  • Daily audit: 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.
  • Pins dispatch 3856d27; docs in resident-runtimes.md ("Who can read a notebook" / "What may not go in").

Rendered unit scripts pass bash -n on 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. 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. - **Ownership:** notebooks live in the `identity-memory` organisation (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-workspaces` creates org + repositories as the site admin, re-asserts `private` and 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>/memory` repos are left in place for you to delete once you've glanced at the new ones. - **Secrets gate:** a `gitleaks` pre-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. - **Daily audit:** `key-store-memory-audit` (07:00 UTC) sends a signed system steer (dispatch [#9](https://git.key.store/key-store/dispatch/pulls/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. - Pins dispatch `3856d27`; docs in `resident-runtimes.md` ("Who can read a notebook" / "What may not go in"). Rendered unit scripts pass `bash -n` on the forge. Nix-only change → no PR CI; the switch is the build.
forge: identity memory under an org residents cannot expose; secrets gate; daily audit (dispatch 3856d27)
Some checks failed
Build: Apple / Build (macOS) (pull_request) Has been cancelled
Build: Apple / Build (iOS) (pull_request) Has been cancelled
Build: Apple / Build (visionOS) (pull_request) Has been cancelled
Build: KaiOS / Build (KaiOS) (pull_request) Has been cancelled
Build: Linux / Build (Linux x86_64) (pull_request) Has been cancelled
Build: Linux / Build (keystore-forge x86_64) (pull_request) Has been cancelled
Build: Web / Build (Web) (pull_request) Has been cancelled
Build: Apple / Check (SwiftLint) (pull_request) Has been cancelled
19d6c8f189
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).
founder force-pushed memory-org-and-gate from 19d6c8f189
Some checks failed
Build: Apple / Build (macOS) (pull_request) Has been cancelled
Build: Apple / Build (iOS) (pull_request) Has been cancelled
Build: Apple / Build (visionOS) (pull_request) Has been cancelled
Build: KaiOS / Build (KaiOS) (pull_request) Has been cancelled
Build: Linux / Build (Linux x86_64) (pull_request) Has been cancelled
Build: Linux / Build (keystore-forge x86_64) (pull_request) Has been cancelled
Build: Web / Build (Web) (pull_request) Has been cancelled
Build: Apple / Check (SwiftLint) (pull_request) Has been cancelled
to 5099dc6c64
Some checks failed
Namespace: Build Images / Refresh macOS runner lane (push) Successful in 4s
Deploy: API / Deploy (API) (push) Failing after 4s
Build: Apple / Check (SwiftLint) (pull_request) Successful in 23s
Build: KaiOS / Build (KaiOS) (pull_request) Successful in 31s
Namespace: Build Images / Refresh Linux runner image (push) Successful in 42s
Build: Apple / Build (visionOS) (pull_request) Successful in 30s
Namespace: Build Images / Refresh macOS Nix snapshot application (push) Successful in 51s
Release: Signing Preflight / Release (Signing Preflight) (push) Successful in 57s
Build: KaiOS / Build (KaiOS) (push) Successful in 36s
Deploy: Web / Deploy (Web) (push) Successful in 2m41s
Build: Web / Build (Web) (pull_request) Successful in 2m53s
Build: Apple / Build (iOS) (pull_request) Successful in 3m17s
Build: Apple / Build (macOS) (pull_request) Successful in 3m35s
Build: Web / Build (Web) (push) Successful in 3m22s
Build: Apple / Check (SwiftLint) (push) Successful in 4m56s
Build: Apple / Build (visionOS) (push) Successful in 28s
Build: Apple / Build (iOS) (push) Successful in 40s
Build: Linux / Build (Linux x86_64) (push) Successful in 5m33s
Build: Linux / Build (Linux x86_64) (pull_request) Successful in 5m40s
Build: Linux / Build (keystore-forge x86_64) (push) Has been skipped
Build: Linux / Build (keystore-forge x86_64) (pull_request) Has been skipped
Build: Apple / Build (macOS) (push) Successful in 3m36s
Release: If Needed / Check (Release Needed) (push) Successful in 9m11s
2026-08-23 06:01:52 +00:00
Compare
founder deleted branch memory-org-and-gate 2026-08-23 06:02:01 +00:00
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
key-store/key.store!188
No description provided.