Skip to content

fix: enforce authentication on sessions and system endpoints (P0 authz gates #1636 #1638 #1639)#1681

Merged
OneStepAt4time merged 1 commit intodevelopfrom
fix/p0-authz-gates
Apr 11, 2026
Merged

fix: enforce authentication on sessions and system endpoints (P0 authz gates #1636 #1638 #1639)#1681
OneStepAt4time merged 1 commit intodevelopfrom
fix/p0-authz-gates

Conversation

@OneStepAt4time
Copy link
Copy Markdown
Owner

P0 Security Fix: Authentication Gates

Issues Fixed

Changes

  1. Added explicit
    equireRole()\ guard to GET /v1/sessions/health endpoint
  2. Verified all 5 session action handlers have requireRole enforcement:
    • POST /v1/sessions/:id/send ✓
    • POST /v1/sessions/:id/escape ✓
    • POST /v1/sessions/:id/interrupt ✓
    • POST /v1/sessions/:id/command ✓
    • POST /v1/sessions/:id/bash ✓
  3. Verified all 4 system endpoints have requireRole enforcement:
    • GET /v1/metrics ✓
    • GET /v1/diagnostics ✓
    • GET /v1/swarm ✓
    • GET /v1/alerts/stats ✓

Testing

  • npx tsc --noEmit ✓
  • npm run build ✓
  • npm test (2797 passed, 29 skipped) ✓

Aegis version

Developed with: v0.3.2-alpha

…l auth gates

Fixes three P0 security issues:
- O0-1 #1636: Add requireRole guard to GET /v1/sessions/health
- O0-2 #1638: Verify all 5 session action endpoints have requireRole
- O0-3 #1639: Verify all 4 system endpoints have requireRole

Changes:
- Add requireRole('admin', 'operator', 'viewer') to /v1/sessions/health
- Verified send, escape, interrupt, command, bash handlers have auth
- Verified metrics, diagnostics, swarm, alerts/stats endpoints have auth
@OneStepAt4time OneStepAt4time merged commit c51cf83 into develop Apr 11, 2026
10 checks passed
@OneStepAt4time OneStepAt4time deleted the fix/p0-authz-gates branch April 11, 2026 22:58
This was referenced Apr 11, 2026
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.

1 participant