@davoodmehraban89 / Aram-2 Mirror · read-only / commits / 0fc0713
Fork 0

Mirrored from https://github.com/davoodmehraban89/Aram.git

Synced Dec 3, 18:15 UTC

docs(auth): append scoped-year authorization proof and role-boundary blockers

davoodmehraban89 committed Oct 30, 2026 at 22:29 UTC 0fc0713bd9e0906954c16d7a6b25aad8bf793383
1 file changed +8
docs/handoff/LATEST_HANDOFF.md
+8
@@ -166,3 +166,11 @@ Publish this requested two-document reconciliation on PR #21 and route the resul
166 - New `GET /api/v1/auth/me` with strict RS256 signed-access-token verification, pinned 2048+ RSA public key, issuer/audience/subject/iat/nbf/exp and 15-minute max lifetime; exactly one signed `mapping_proposer` or `mapping_reviewer` role. No authentication by client X-User/role headers, unsigned or HMAC tokens, wrong signer, or forged payload. Default auth configuration EMPTY/disabled; missing actual enterprise IdP yields HTTP 503. New `PyJWT[crypto]` dependency.
167 - Tests-only [RED CI 41109024753](https://github.com/davoodmehraban89/Aram/actions/runs/41109024753) **34 expected missing-route failures**, 193 passes; [GREEN CI 41109205928](https://github.com/davoodmehraban89/Aram/actions/runs/41109205928) 227 passes; added adversarial verification and [GREEN CI 41109398796](https://github.com/davoodmehraban89/Aram/actions/runs/41109398796) **231 passes, 2 warnings**, Alembic 01→02→03 round-trip and compileall successful. **Confirm final docs SHA CI separately.**
168 - No actual enterprise principal or finance reviewer identity is configured. Existing Unreviewed proposal records have no authenticated author and cannot prove self-approval separation; role claims are not finance authorization. No approve/apply API; no real user accounts, OAuth login, JWKS rotation, revocation, year/company grants, signed financial decision or rule write CAS. Real source financial reconciliation and C1/C2/C3 independent human reviews still missing. Keep Issue #49/#39/#43 OPEN and PR Draft/unmerged; do not claim deployment/completion.
169 +
170 +## 2026-10-30 — Gate 3 signed fiscal company/year/role authorization, Draft PR #56
171 +
172 +- [Draft PR #56](https://github.com/davoodmehraban89/Aram/pull/56) child of unmerged #55 exact parent `8d82f1e7be9653bac467101234a62029bdfa3178`; original accepted `source-data-cleanup@7dc864fd032f0c4ae4d650d89304a01286a6d914` unchanged, upstream Drafts still unmerged.
173 +- Auth JWT now accepts **strict signed `aram_scopes`** only: each scope exact company code, fiscal-year business number and same role as signed token. Missing scopes authenticate but authorize no fiscal year. Bad scopes are invalid 401, valid token with no exact grant gets 403; never trust headers or broad wildcard/admin claims.
174 +- New `mapping_year_authorization.require_year_access` checks current DB Company/FiscalYear Draft and exact grant under `Session.no_autoflush` with `populate_existing`. Read-only `GET /api/v1/auth/year-access/{year_id}` uses signed-principal dependency. No proposal/write/approval route activated; real company/year grant assignment and IdP connection are NOT configured.
175 +- Tests-only [RED 41110810775](https://github.com/davoodmehraban89/Aram/actions/runs/41110810775) 28 intentional missing-behavior failures. Initial [CI 41110973867](https://github.com/davoodmehraban89/Aram/actions/runs/41110973867) 2 test expectation failures/257 passes; invalid signed role should be 401, not 403. Corrected assertions and added direct cross-role denial at SHA `59cb141cad81add6523f4fea7a127c8180d080e5`. **Verify final exact SHA GitHub CI, all migration round-trips and reviewer status.**
176 +- Real authenticated user approval, independently established C1/C2/C3 reviewers, persisted identity on drafts, non-self-approval, locked compare-and-set apply, Excel importer closure, source account hierarchy and financial reconciliation still open (Issues #49/#39/#43). Keep Draft/unmerged; no operational acceptance.