docs(auth): append real RS256 CI evidence and undecided identity provider gates
davoodmehraban89 committed
Oct 30, 2026 at 22:16 UTC
bc2a52e4db7a6c2b668535f3232034de25f13927
1 file changed
+9
docs/PROJECT_LOG.md
+9
@@ -349,3 +349,12 @@ Each new entry must record: UTC timestamp, actor, task/phase, base branch and SH
349
- Three added adversarial tests: parent draft DELETE blocked by FK, distinct staged drafts get distinct events, and migration must **refuse nonempty pre-audit draft table**. [RED CI 41089408299](https://github.com/davoodmehraban89/Aram/actions/runs/41089408299) **1 expected missing-guard failure, 192 passed, one warning**. Fix refuses upgrade before DDL if any old `20261030_02` rows exist, rather than fabricating historical events. [GREEN CI 41089569653](https://github.com/davoodmehraban89/Aram/actions/runs/41089569653) **193 passed, 1 warning**, migrations up/down and compile successful. **Final docs-head CI still required.**
350
- No canonical financial XLSX/PDF, `data/`, user/production DB, existing migration, dependencies, GitHub workflow, binary, credentials, tag or release changed. Actual C1/C2/C3 independent approvals absent. This is **NOT** authenticated financial approval, externally anchored immutable journal, atomic MappingRule apply/CAS, real source-ledger reconciliation, or multi-provider concurrency guarantee. Issues #49/#39/#43 stay OPEN and Gate 3 formally unaccepted.
351
- Before any proposed live upgrade, accounting owner must approve retention/backups for old drafts and possible destructive downgrade; real DB access has never been granted. Rollback before merge: close Draft without data change.
352
+
353
+### 2026-10-30 — Gate 3 pinned RS256 principal verification, Draft PR #55
354
+
355
+- User explicitly authorized continued ARAM implementation. [Draft PR #55](https://github.com/davoodmehraban89/Aram/pull/55) stacked on unmerged Draft #54 exact SHA `c5e3fb7f8917433a1075ece8ad1ee95a1695dad5`; upstream Draft #53/#52/#51/#50/#26 and migration #25 remain unmerged. Accepted `source-data-cleanup@7dc864fd032f0c4ae4d650d89304a01286a6d914` untouched.
356
+- Prior backend exposed no authenticated user principal. Added new `GET /api/v1/auth/me` read-only endpoint, requiring actual RS256 RSA-signed short-lived **access** token via server-pinned, operator-configured *public* verification key. Strict issuer, audience, subject, iat/nbf/exp, lifetime <=900 seconds, exactly one signed `mapping_proposer` or `mapping_reviewer` role. Rejects absent/invalid Bearer, forged `X-User` and role headers, wrong RSA signer, wrong issuer/audience, expired/future, unsigned/HMAC and tampered JWT, duplicate/dual/unknown roles, private/malformed/weak RSA keys.
357
+- Added `PyJWT[crypto]>=2.10,<3` to backend dependencies and `ARAM_AUTH_ISSUER`, `ARAM_AUTH_AUDIENCE`, `ARAM_AUTH_PUBLIC_KEY_PEM` to settings. Defaults disabled; missing IdP deployment config returns HTTP 503 rather than fake authentication. Synthetic CI uses ephemeral local RSA keys, **not** real enterprise accounts/IdP or credentials.
358
+- Test-first initial test SHA `afe380fc0a2236f9eb2cdfce21168a1dbc507bfd`: [RED CI 41109024753](https://github.com/davoodmehraban89/Aram/actions/runs/41109024753) **34 expected 404 route failures, 193 passing tests, 2 warnings**. Auth module/route implementation SHA `c0b6f5df64ae9235683926e1fed661dadb46be67`: [GREEN CI 41109205928](https://github.com/davoodmehraban89/Aram/actions/runs/41109205928) **227 passes, 2 warnings**, migration/compile success. Further synthetic forged-payload/weak-RSA/reviewer-does-not-approve cases at `ad66b06bab27ad61040f7a5b4f8cb81923eaf2da`: [GREEN CI 41109398796](https://github.com/davoodmehraban89/Aram/actions/runs/41109398796) **231 passes, 2 warnings**, migrations and compile successful. **Final documentation-head CI must be checked separately.**
359
+- This is **not** identity-provider deployment, token refresh/revocation, JWKS rotation, company/year authorization, author/reviewer separation tied to persisted draft, human approval, immutable signed audit or transactional Mapping apply. Legacy `save_mapping_rule` and Excel import still bypass the future governed path. No source XLSX/PDF, customer DB, `data/`, migrations, workflows, binaries or releases modified. Real C1/C2/C3 reviewers/financial acceptance absent (Issues #49/#39/#43). PR stays Draft/unmerged; Gate 3 0% formal acceptance.
360
+- Scope: new auth module/tests, config/main, pyproject dependency, focused spec/plan and append-only log/handoff; no private signing key stored in repository.