You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Implement mTLS event stream authentication support (#1402)
## Summary
This PR implements comprehensive mTLS (mutual TLS) authentication
support for Event Streams, enabling secure client certificate-based
authentication with the Gateway service.
https://issues.redhat.com/browse/AAP-46060
### Key Features
- **New mTLS Credential Type**: EventStreamCredentialType.MTLS for
secure client authentication
- **Certificate Synchronization**: Automatic sync with Gateway API
during Event Stream lifecycle
- **Certificate Validation**: PEM format validation with expiration
checking and RFC 2253 subject validation
- **Lifecycle Management**: Automatic certificate create/update/delete
operations
### Core Components
- `SyncCertificates` service for Gateway certificate management
- Enhanced `EdaCredential` model with mTLS-specific validation
- `EventStream` views with automatic certificate synchronization
- New API exceptions for Gateway and credential error handling
### Security Enhancements
- Certificate format validation using cryptography library
- Subject DN validation with proper X.509 attribute checking
- Secure certificate storage and transmission to Gateway
- Comprehensive error handling for authentication failures
## Test plan
- [x] Unit tests for certificate validation logic
- [x] Integration tests for EventStream mTLS workflows
- [x] Service-level tests for Gateway synchronization
- [x] Edge case testing for certificate lifecycle management
- [x] All existing tests continue to pass
- [x] Linting and code quality checks pass
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-authored-by: Claude <[email protected]>
0 commit comments