fix: encryption key status polish for edge cases

Open
#2,051 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@Wikid82 is already working on this.

Since Nov 25, 2026.

Assessment

This issue has not been assessed yet.

Description

backend frontend ssl

Low-severity observations from QA of #2048:

  1. backend/internal/crypto/rotation_service.go:216-222: a legacy slot holding the same key as the current key is neither dropped nor logged, so the status page lists it as its own "Still needed" row. A next key equal to current is already dropped (:208-213).
  2. While a next key is configured and no rotation has run, every start logs a Warn about rows needing a key other than the rotation target. Info fits better.
  3. A configured next key that nothing uses yet shows "No longer needed" (frontend/src/pages/EncryptionManagement.tsx:50-51). Correct by definition, but reads oddly just before a rotation.
  4. The start-up reconcile summary runs before the legacy certificate migration, so on the start that migrates it reports certificate_keys=0.
Dominant language
Go
Stars
17
Forks
2
Avg merge
1h 42m
Merged PRs (30d)
173

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Wikid82/Charon

All issues in Wikid82/Charon

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.