Skip to content

Certificate rotation without backup #4819

@e-gineer

Description

@e-gineer

Description

In removeExpiringSelfIssuedCertificates(), when certificates are removed for regeneration, the old certificates are deleted without backup. If regeneration fails, users lose their certificates with no way to recover.

Severity

LOW - Data loss potential

Test Reference

Test: TestRemoveExpiringSelfIssuedCertificates in pkg/db/db_local/ssl_test.go:86 (skipped)

Suggested Fix

Create timestamped backups of old certificates before removal, similar to how database backups are retained.

Related Code

  • pkg/db/db_local/ssl.go:33-63

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions