Skip to content

feat(auth): Implement strict capability validation for policies#111

Merged
allisson merged 2 commits intomainfrom
validate-capabilities
Mar 6, 2026
Merged

feat(auth): Implement strict capability validation for policies#111
allisson merged 2 commits intomainfrom
validate-capabilities

Conversation

@allisson
Copy link
Owner

@allisson allisson commented Mar 6, 2026

Introduces centralized capability validation in the domain layer and enforces it within the CLI's policy parsing logic. This ensures that only predefined domain capabilities are accepted, preventing invalid configurations and aligning the CLI behavior with the documented security model.

Key changes:

  • Added IsValidCapability and ValidCapabilities helpers to internal/auth/domain.
  • Updated ParseCapabilities in internal/ui to perform strict, case-sensitive validation against domain constants.
  • Expanded unit test coverage in internal/auth/domain and internal/ui to verify validation logic and error bubbling.
  • Updated technical documentation in conductor/tech-stack.md to reflect the new strict validation security measure.

Closes: Validate Capabilities in ParseCapabilities track

allisson added 2 commits March 6, 2026 11:00
Introduces centralized capability validation in the domain layer and enforces it
within the CLI's policy parsing logic. This ensures that only predefined domain
capabilities are accepted, preventing invalid configurations and aligning the
CLI behavior with the documented security model.

Key changes:
- Added IsValidCapability and ValidCapabilities helpers to internal/auth/domain.
- Updated ParseCapabilities in internal/ui to perform strict, case-sensitive
  validation against domain constants.
- Expanded unit test coverage in internal/auth/domain and internal/ui to
  verify validation logic and error bubbling.
- Updated technical documentation in conductor/tech-stack.md to reflect the
  new strict validation security measure.

Closes: Validate Capabilities in ParseCapabilities track
@allisson allisson merged commit 50d1e9d into main Mar 6, 2026
2 of 3 checks passed
@allisson allisson deleted the validate-capabilities branch March 6, 2026 14:21
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