Skip to content

feat(transit): add individual key retrieval API #115

Merged
allisson merged 18 commits intomainfrom
key-retrieval
Mar 7, 2026
Merged

feat(transit): add individual key retrieval API #115
allisson merged 18 commits intomainfrom
key-retrieval

Conversation

@allisson
Copy link
Owner

@allisson allisson commented Mar 7, 2026

Implements a new endpoint to retrieve metadata for specific transit keys,
supporting both latest and version-specific retrieval. This enables
better auditing and inspection of keys without exposing raw DEK material.

Changes:

  • Added GetTransitKey to TransitKeyRepository (PostgreSQL and MySQL).
  • Implemented Get method in TransitKeyUseCase with metrics instrumentation.
  • Created GET /v1/transit/keys/:name endpoint in TransitKeyHandler.
  • Added TransitKeyMetadataResponse DTO for structured API responses.
  • Updated docs/engines/transit.md and docs/openapi.yaml with new endpoint.
  • Added comprehensive unit and integration tests for all layers.

allisson added 18 commits March 7, 2026 12:22
Implements a new endpoint to retrieve metadata for specific transit keys,
supporting both latest and version-specific retrieval. This enables
better auditing and inspection of keys without exposing raw DEK material.

Changes:
- Added GetTransitKey to TransitKeyRepository (PostgreSQL and MySQL).
- Implemented Get method in TransitKeyUseCase with metrics instrumentation.
- Created GET /v1/transit/keys/:name endpoint in TransitKeyHandler.
- Added TransitKeyMetadataResponse DTO for structured API responses.
- Updated docs/engines/transit.md and docs/openapi.yaml with new endpoint.
- Added comprehensive unit and integration tests for all layers.
@allisson allisson merged commit b5665a6 into main Mar 7, 2026
3 checks passed
@allisson allisson deleted the key-retrieval branch March 7, 2026 17:10
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