Skip to content

feat: add purge commands for transit and tokenization keys#99

Merged
allisson merged 1 commit into
mainfrom
purge-commands
Mar 4, 2026
Merged

feat: add purge commands for transit and tokenization keys#99
allisson merged 1 commit into
mainfrom
purge-commands

Conversation

@allisson
Copy link
Copy Markdown
Owner

@allisson allisson commented Mar 4, 2026

  • Implement purge-transit-keys and purge-tokenization-keys CLI commands to perform hard deletion of soft-deleted keys.
  • Add HardDelete method to TransitKeyRepository and TokenizationKeyRepository for both PostgreSQL and MySQL.
  • For tokenization, ensure hard-deleting a key also deletes all associated tokens in the tokenization_tokens table.
  • Implement PurgeDeleted use case logic with metrics decoration for observability.
  • Add comprehensive unit and integration tests for all new repository and use case methods.
  • Update docs/cli-commands.md with usage instructions and examples.
  • Suppress gosec G101 false positives in tokenization repositories.
  • Bump application version to v0.26.0 in cmd/app/main.go and update CHANGELOG.md.

This aligns the transit and tokenization modules with the existing purge-secrets maintenance functionality.

- Implement `purge-transit-keys` and `purge-tokenization-keys` CLI commands to perform hard deletion of soft-deleted keys.
- Add `HardDelete` method to `TransitKeyRepository` and `TokenizationKeyRepository` for both PostgreSQL and MySQL.
- For tokenization, ensure hard-deleting a key also deletes all associated tokens in the `tokenization_tokens` table.
- Implement `PurgeDeleted` use case logic with metrics decoration for observability.
- Add comprehensive unit and integration tests for all new repository and use case methods.
- Update `docs/cli-commands.md` with usage instructions and examples.
- Suppress `gosec` G101 false positives in tokenization repositories.
- Bump application version to `v0.26.0` in `cmd/app/main.go` and update `CHANGELOG.md`.

This aligns the transit and tokenization modules with the existing `purge-secrets` maintenance functionality.
@allisson allisson merged commit 6de0a36 into main Mar 4, 2026
3 checks passed
@allisson allisson deleted the purge-commands branch March 4, 2026 17:27
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