Skip to content

docs: from-scratch setup playbook + token identity explainer - #43

Merged
AusafMo merged 1 commit into
mainfrom
docs/from-scratch-setup-and-identity
Aug 2, 2026
Merged

docs: from-scratch setup playbook + token identity explainer#43
AusafMo merged 1 commit into
mainfrom
docs/from-scratch-setup-and-identity

Conversation

@AusafMo

@AusafMo AusafMo commented Aug 2, 2026

Copy link
Copy Markdown
Owner

Follow-up to the setup-docs audit. Two gaps:

  1. SKILL.md assumed a config already existed. Added a 'Setup from scratch' section that walks an agent through zero-to-working (and secured) setup: write .cfg.toml, pick an identity mode, generate a token hash without leaking the secret (cfg identity-hash --stdintokens[]CFGIT_IDENTITY_TOKEN), set permissions, then init/doctor/import.
  2. Token identity was reference-only, not explained. Added a 'How it works, and what it does (and doesn't) protect' subsection to IDENTITY_AND_ATTRIBUTION.md: the hash lives in the shared config, the raw token stays local, cfgit re-verifies per command (no server/session) — so it's attribution, not a hard boundary; prefer db_principal for a real security boundary.

Every flag/key referenced (cfg doctor --status, cfg identity-hash --stdin, token_env/sources/admin_actions/CFGIT_IDENTITY_TOKEN) verified against the code.

SKILL.md assumed a config already existed; add a 'Setup from scratch' section that
walks an agent through zero-to-working (and secured) setup: write .cfg.toml, pick
an identity mode, generate a token hash without leaking the secret (cfg identity-hash
--stdin -> tokens[] -> CFGIT_IDENTITY_TOKEN), set permissions, init/doctor/import.

Also add an 'How it works, and what it does (and doesn't) protect' subsection to
IDENTITY_AND_ATTRIBUTION.md explaining the common confusion: the hash lives in the
shared config, the raw token stays local, cfgit re-verifies per command (no server/
session), so it is attribution not a hard boundary — prefer db_principal for a real
security boundary. All flags/keys verified against the code.
@AusafMo
AusafMo merged commit 3e088a2 into main Aug 2, 2026
2 checks passed
@AusafMo
AusafMo deleted the docs/from-scratch-setup-and-identity branch August 2, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants