Skip to content

feat(gateway): admin applications API and RLS hardening - #14

Merged
devXyi merged 10 commits into
mainfrom
codex/admin-api-rls-hardening-clean
Oct 16, 2026
Merged

devXyi merged 10 commits into
mainfrom
codex/admin-api-rls-hardening-clean

Conversation

@devXyi

@devXyi devXyi commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner

Summary

Add administrator-only read endpoints for submitted access applications, plus PostgreSQL API-role hardening.

Changes

  • Add GET /admin/applications with bounded pagination and GET /admin/applications/:ref with reference validation.
  • Add applications:read permission for admin only.
  • Handle SQL scan and iteration errors explicitly.
  • Enable row-level security (RLS) on users, assets, and applications; revoke grants for anon and authenticated if present.
  • Add unit and PostgreSQL integration coverage and document the endpoints.
  • Resolve the Go vulnerability gate by moving the backend Go baseline to 1.26.9 and upgrading golang.org/x/net to v0.60.0.

Validation

GitHub Actions on the latest commit passed: Go vet, race-enabled tests and govulncheck; Rust tests and cargo audit; Python engine tests and pip-audit; prexus_core/Raksha tests; offline air-gap tests; full-history secret scan; and all four CodeQL language analyses.

Security caveat

The RLS hardening is best-effort if the runtime DB role does not own the tables; production must apply/verify it through a privileged migration role before exposing the tables through a database API. No merge or deployment was performed.

Copilot AI balanced review requested due to automatic review settings October 16, 2026 07:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI balanced review requested due to automatic review settings October 16, 2026 07:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI balanced review requested due to automatic review settings October 16, 2026 07:25

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@devXyi
devXyi marked this pull request as ready for review October 16, 2026 07:28
@devXyi
devXyi merged commit 3cfe518 into main Oct 16, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants