Repository navigation
fix(admin): restore account access and remove duplicate rows - #7818
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — admin auth org-selection fix with no blocking or medium findings.
What I checked:
- Admin auth change keeps the caller's own credential org while treating URL/payload org IDs as targets; conflicting
x-organization-idheaders fail closed (403). No privilege escalation — admin authority is user-based (WG membership) and all admin routes remain independentlyrequireAdmin-guarded. - LATERAL LIMIT 1 joins de-duplicate account rows correctly with all referenced columns selected and deterministic ordering.
- Both FK tables cascade on org delete, so the new integration tests clean up correctly.
- No protocol surface touched (
static/schemas/source/**,docs/reference/**,dist/**), so schema↔docs coherence, changeset, oneOf, and artifact-immutability gates do not apply. This is an admin/app-only change.
High-risk flag: true only because server/src/routes/admin/accounts.ts (modified) matches server/src/routes/**. Per the decision rules, a modified high-risk file with no medium-or-higher findings is presumed safe — not an escalation trigger.
Gates: gated_paths: false; no no-auto-approve team match. review_decision is REVIEW_REQUIRED, but no gate (path-based or prose) applies to force escalation. No critical/high/medium findings, so rows 1–8 do not fire; falls through to row 9.
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.
Summary
Validation
npx vitest run --config server/vitest.config.ts server/tests/unit/authorization-epoch-session.test.ts server/tests/unit/require-admin-cross-tenant.test.ts(193 tests passed)npx tsc --project server/tsconfig.json --noEmit(passed)Expert review
Open workspace in Conductor