preserve: store conformance + db provisioning + self-hosted IdP WIP off station01 (draft, not for merge) - #204
Draft
andrei-hasna wants to merge 1 commit into
Draft
Conversation
… IdP auth
Work-in-progress snapshot taken off station01's shared open-emails checkout before
its tmux 'code' session is retired (todos a3d6e8e9). The checkout was in use by a
live agent, so this commit was built from the working tree with an isolated index
and commit-tree; the checkout's HEAD, branch, index and working tree were not
modified.
This is the largest body of unpreserved work found on the machine:
384 files changed, 82,935 insertions, 7,624 deletions.
Largest pieces:
src/store/conformance.ts +2193 store conformance suite
src/db/provisioning.ts / .test.ts +2872 db provisioning
src/db/aliases.test.ts +1416
src/mode-axis-ratchet.test.ts +1339
src/db/forwarding.test.ts +1140
src/db/owners.ts +1052
src/db/emails.test.ts +1052
src/test-support/v1-store-api.ts +1035 (new)
src/store-http.test.ts +978 (new)
src/db/sandbox.ts / .test.ts +1854
src/store-sqlite/messages.ts +847
src/server/self-hosted/auth/** self-hosted IdP token, JWKS
revocation, multi-grant, store
docs/AUTHENTICATION.md, docs/CLI.md (new)
The checkout sits at 6646cc8, an ancestor of main, so this branch is cut from a
base that has since moved. It is a snapshot of what was on disk, not a rebased
change.
Secrets: the mandated staged scan was run over the full 103,239-line working-tree
diff and over every untracked file, returning 0 hits, with a positive control
returning 2 and a negative control 0. Paths matching env/secret/credential/token/
pem/key/npmrc/auth were enumerated by hand and are all source and docs for auth
FEATURES (IdP token handling, a provider-secrets module, an authentication doc) --
no credential files. Added config lines were read individually: they are authMode
enum values and a package.json script entry.
NOT REVIEWED AND NOT READY TO LAND. No test run was performed.
Agent: Manius
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this is
A preservation snapshot, not a finished change. Draft on purpose.
This is the largest body of unpreserved work found on station01 — 384 files,
82,935 insertions, 7,624 deletions — and it was sitting uncommitted in a shared
checkout that a live agent was using, with the machine's tmux
codesession queued forretirement (todos
a3d6e8e9).Contents
src/store/conformance.tssrc/db/provisioning.ts+.test.tssrc/db/sandbox.ts+.test.tssrc/db/aliases.test.tssrc/mode-axis-ratchet.test.tssrc/db/forwarding.test.tssrc/db/owners.tssrc/db/emails.test.tssrc/test-support/v1-store-api.tssrc/store-http.test.tssrc/store-sqlite/messages.tssrc/server/self-hosted/auth/**docs/AUTHENTICATION.md,docs/CLI.mdHow it was taken without disturbing the agent
Built from the working tree through an isolated index (
GIT_INDEX_FILE+write-tree+commit-tree). Nothing in the checkout was touched:Base drift, stated plainly
The checkout sits at
6646cc8c, an ancestor ofmain. This branch is cut from abase that has since moved; the diff will show that drift alongside the real change.
Secrets — scanned harder than usual, because of the size
untracked file: 0 hits. Positive control 2, negative control 0.
env|secret|credential|token|pem|key|npmrc|authwere enumerated byhand: 15 matches, all of them source and docs for auth features — IdP token
handling, a
provider-secretsmodule,docs/AUTHENTICATION.md. No credential files,no
.env, no.pem, no.npmrc. Positive control on that path grep: 181 matchesfor
test.recognisable prefix. So added lines in
*.json|toml|yaml|yml|env*were readindividually: 6 candidate lines, all benign (
"authMode": "api-key","authMode": "local-only","apiKeyAppAliases": [, and asecrets:stagednpm scriptentry). No values.
What this PR is NOT
Not reviewed, not tested, not ready to merge. No test run was performed and 82k lines
is far past what one review pass can absorb. Its author should split it before anything
lands.
The purpose here is narrow: this change existed on exactly one disk, and it now exists
somewhere else too.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.