Skip to content

fix(authz): enforce regular-user administration boundary - #97

Merged
DJAngel973 merged 1 commit into
mainfrom
fix/authorization-001
Nov 4, 2026
Merged

DJAngel973 merged 1 commit into
mainfrom
fix/authorization-001

Conversation

@DJAngel973

Copy link
Copy Markdown
Owner

Summary

Implements AUTHZ-001 user-administration authorization boundaries.

Changes

  • Enforces 403 responses for USER access to user-administration endpoints.
  • Prevents ADMIN accounts from deactivating another ADMIN account.
  • Preserves USER-only public registration; role input cannot be persisted.
  • Adds immutable deactivation audit evidence with actor and target identifiers.
  • Maps Spring Security AccessDeniedException to a consistent 403 ApiResponse.
  • Updates AUTHZ-001 verification evidence in IMPLEMENTATION-PLAN.md.

Security

  • OWASP A01: prevents privilege escalation and unauthorized user administration.
  • OWASP A09: records sensitive account-deactivation actions with actor and target UUIDs.
  • USER accounts cannot invoke ADMIN-only endpoints.

@DJAngel973
DJAngel973 merged commit f273003 into main Nov 4, 2026
4 checks passed
@DJAngel973
DJAngel973 deleted the fix/authorization-001 branch November 4, 2026 00:47
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