Draft
Conversation
hierarcy;
403 resp;
v2 created_by added for events and statuses;
TestValidateStatusesPatches relocated to v2_validation_test.go; 06 migration changed; new errores for maintenance validation; Incident model changed; TestValidateEventCreationTimes added; TestValidateEventCreationImpact added;
implemented SetJWTClaims.
…ame HasGroup to HasAuthorizedGroup
…gration RBAC tests
go version updated
7b950bc to
133b697
Compare
… from unauthenticated users
Contributor
Author
|
make version optionally for incidents and info |
sgmv
reviewed
Feb 23, 2026
sgmv
reviewed
Feb 23, 2026
sgmv
requested changes
Feb 23, 2026
sgmv
reviewed
Feb 25, 2026
role operator has been raised to allow to perform all CRUD actions; spec.md revised.
rbac tests redesigned, main tests fixed.
sgmv
requested changes
Mar 2, 2026
Contributor
Author
|
Multi-IdP Authentication & RBAC Security Hardening (refactoring) SummaryImplements a "secure by default" architecture by removing all authentication/RBAC bypass toggles and adding dual-IdP support (Keycloak RSA + Local HMAC). Introduces structured audit logging, Keycloak resilience with retry/fallback, JWT audience validation, and comprehensive test coverage. Breaking Changes
Changes by CategorySecurity
Observability
Middleware Refactoring
Tests (new files)
Documentation
Test Coverage
|
Public key caching removed.
version field assert for incidents (tests) removed
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.
Implements Role-Based Access Control (RBAC) for maintenance event management as specified in
specs/001-maintenance-rbac/spec.md.Changes:
RBAC Implementation:
Admin>Operator>Creatorgroupsclaim via environment variables (SD_RBAC_GROUP_ADMINS,SD_RBAC_GROUP_OPERATORS,SD_RBAC_GROUP_CREATORS)Maintenance Workflow:
pending_reviewstatus, can modify/cancel own events while pendingpending_review→reviewed), cancel any pending event, create withplannedstatusreviewed→plannedField Visibility:
creator,contact_email,versionfields visible only to authenticated userspending_revieworreviewedstatus hidden from unauthenticated usersOptimistic Locking:
409 Conflicton version mismatchDocumentation:
docs/auth/rbac.mdwith roles, permissions, and workflowopenapi.yamlwith security schemes, RBAC description, 401/403/409 responsesreviewedstatus visibilityTesting:
Updates:
Testing: