Skip to content

feat: delete vault secret when key version transitions to destroyed - #332

Merged
jithinkunjachan merged 1 commit into
mainfrom
feat/add-processor-destroy-secret
Dec 3, 2026
Merged

jithinkunjachan merged 1 commit into
mainfrom
feat/add-processor-destroy-secret

Conversation

@jithinkunjachan

@jithinkunjachan jithinkunjachan commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Add DeleteVaultSecret to Manager, invoked during UpsertKeyVersion when an existing key version is updated to the destroyed lifecycle state. Skip secret generation when creating a key version already in destroyed state.

The deleteVaultSecret guard ensures deletion only fires on a genuine non-destroyed → destroyed transition; repeated upserts with destroyed state short-circuit without touching the vault.

Also rename receiver km → m on Manager methods and rkv/fkv → nkv/okv in UpsertKeyVersion for consistency.

Add DeleteVaultSecret to Manager, invoked during UpsertKeyVersion when
an existing key version is updated to the destroyed lifecycle state.
Skip secret generation when creating a key version already in destroyed
state.

The deleteVaultSecret guard ensures deletion only fires on a genuine
non-destroyed → destroyed transition; repeated upserts with destroyed
state short-circuit without touching the vault.

Also rename receiver km → m on Manager methods and rkv/fkv → nkv/okv
in UpsertKeyVersion for consistency.

Signed-off-by: jK <[email protected]>
@jithinkunjachan jithinkunjachan self-assigned this Dec 2, 2026
@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cfa22ea2-2d18-430c-9b0e-3b6386def44b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@jithinkunjachan
jithinkunjachan marked this pull request as ready for review December 2, 2026 16:02
@jithinkunjachan
jithinkunjachan merged commit 07578a9 into main Dec 3, 2026
9 checks passed
@jithinkunjachan
jithinkunjachan deleted the feat/add-processor-destroy-secret branch December 3, 2026 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants