Skip to content

[SECURITY] Add vault key rotation with backward-compatible credential migration #203

@utksh1

Description

@utksh1

Problem

SecuScan needs a production-grade improvement in this area: Vault encryption and credential lifecycle..

Scope

Add a key version field for vault entries, support decrypting old entries during rotation, provide an admin rotation command/API, and ensure failed rotations leave data untouched.

Acceptance Criteria

  • The implementation is focused and does not introduce unrelated UI, docs, lockfile, or formatting churn.
  • Security-sensitive behavior has explicit negative tests where applicable.
  • Existing tests continue to pass, and new tests cover the main success and failure paths.
  • Documentation or configuration examples are updated when operator behavior changes.

Verification

Unit tests should cover old-key decrypt, new-key encrypt, interrupted rotation rollback, and missing key errors.

Difficulty

Hard, useful issue intended for experienced contributors.

Metadata

Metadata

Assignees

Labels

area:backendBackend API, database, or service workarea:securitySecurity-sensitive implementation or testslevel:critical80 pts difficulty label for critical or high-impact PRspriority:highHigh-priority issuetype:featureFeature work category bonus labeltype:securitySecurity work category bonus label

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions