Skip to content

feat: add postStart hook for vault keys configuration#253

Open
dmatviichuk wants to merge 1 commit intojuspay:mainfrom
advinow:feature/vault-keys-poststart-hook
Open

feat: add postStart hook for vault keys configuration#253
dmatviichuk wants to merge 1 commit intojuspay:mainfrom
advinow:feature/vault-keys-poststart-hook

Conversation

@dmatviichuk
Copy link
Copy Markdown
Contributor

@dmatviichuk dmatviichuk commented Dec 10, 2025

  • Move vault keys to top-level vaultKeys section
  • Extract postStart config to vaultKeysPostStart
  • Add validation to prevent Job and postStart from being enabled simultaneously
image
  • Update deployment to support postStart lifecycle hook

Reason for this change:
Some users run on AWS Spot Instances, where the card vault pod can restart frequently. Each restart requires manually unlocking the vault, which is disruptive. The existing Job-based approach only runs on Helm hooks (post-install, post-upgrade), so it doesn't handle pod restarts. This leaves the vault locked after restarts.
This change adds a postStart lifecycle hook that runs automatically when the container starts, ensuring the vault keys are configured after each restart without manual intervention. This is especially useful for Spot Instances and other scenarios where pods restart frequently.

- Move vault keys to top-level vaultKeys section
- Extract postStart config to vaultKeysPostStart
- Add validation to prevent Job and postStart from being enabled simultaneously
- Update deployment to support postStart lifecycle hook
@dmatviichuk dmatviichuk force-pushed the feature/vault-keys-poststart-hook branch from e2dafc8 to e309446 Compare December 11, 2025 10:42
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