Skip to content

[M2.3d4a] Expose scoped administration directories - #107

Merged
samuelmbabhazi merged 1 commit into
mainfrom
feat/m2.3d4a-administration-read-http
Nov 5, 2026
Merged

samuelmbabhazi merged 1 commit into
mainfrom
feat/m2.3d4a-administration-read-http

Conversation

@samuelmbabhazi

Copy link
Copy Markdown
Collaborator

Task

M2.3d4a, stacked on #106. Review in order; no automatic merge. This is the final PR for this work session, at the maintainer's request.

What changed and why

Expose the organization membership directory and project/environment effective-role directories as session-only GET endpoints. Each route requires current member.manage authority at its exact scope. Responses include membership metadata, effective role/source, direct overrides and inherited roles; credentials are never returned. Pagination uses the existing bounded, exclusive UUID contract and authorization filters precede pagination.

Add OpenAPI DTOs, regenerate the API/client contracts and document the endpoints. Split the remaining M2.3d4 work in PLAN; only the directory slice is complete. Membership/binding writes, the complete registered-route matrix, project-owned tokens and administration screens remain pending.

Validation

  • API, web and generated client lint, typechecks, tests and builds pass (155 API tests and 51 web tests).
  • Restricted-PostgreSQL HTTP acceptance covers all three routes against eleven actor profiles, including explicit environment downgrades and outsiders; exclusive pagination; metadata-only responses; effective/inherited roles; disabled members; immediate role removal; bearer denial; malformed input and mismatched ancestry.
  • The administration query integration suite also passes.
  • Generated OpenAPI explicitly declares session-only authentication for all three routes and the expected response schemas.
  • Semgrep: zero findings across all six changed TypeScript files, with complete parsing. Staged whitespace check passes; commit hooks check formatting and secrets.

Security considerations

No new mutation endpoint, dependency or shell invocation. Reads delegate to the existing account-locked application authorization and forced-RLS tenant transactions. Scoped resource administrators cannot read the organization directory or sibling resource grants. API tokens are rejected even when they contain member-management scopes. Disabled members remain visible only to authorized administrators for cleanup.

CI execution blocked

GitHub currently refuses to start jobs because of failed recent account payments or an insufficient spending limit. Resolve Billing & plans and rerun workflows before treating remote validation as complete. CodeQL remains separately disabled by repository configuration.

Checklist

  • M2.3d4a acceptance met and PLAN/SPEC updated
  • Generated contracts committed without manual edits
  • Local checks and real HTTP/PostgreSQL acceptance pass
  • No secret response or unaudited business mutation introduced
  • Human review required; no automatic merge

@samuelmbabhazi
samuelmbabhazi force-pushed the feat/m2.3d3c2-resource-write-http branch from 7e61086 to 11c79f3 Compare November 5, 2026 15:03
@samuelmbabhazi
samuelmbabhazi changed the base branch from feat/m2.3d3c2-resource-write-http to main November 5, 2026 15:04
@samuelmbabhazi
samuelmbabhazi force-pushed the feat/m2.3d4a-administration-read-http branch from bc653a8 to 3e20b97 Compare November 5, 2026 15:05
@samuelmbabhazi
samuelmbabhazi merged commit fc57095 into main Nov 5, 2026
2 of 11 checks passed
@samuelmbabhazi
samuelmbabhazi deleted the feat/m2.3d4a-administration-read-http branch November 5, 2026 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant