Skip to content

feat(crypto): add aes gcm algorithm - #18

Merged
drichard-k merged 2 commits into
2-devfrom
feat/KZLPRD-1167-aes-gcm
Aug 10, 2026
Merged

drichard-k merged 2 commits into
2-devfrom
feat/KZLPRD-1167-aes-gcm

Conversation

@inkedsquid

Copy link
Copy Markdown
Contributor

What does this PR do ?

This PR deprecates the legacy aes-256-cbc cipher and introduces support for the more secure aes-256-gcm encryption algorithm.

To preserve backward compatibility, aes-256-cbc remains the default behavior. The new aes-256-gcm cipher is opt-in via a configuration setting. Migration documentation and a script snippet are also provided directly in the README.

How should this be manually tested?

  • Step 1: Have a .enc.json file generated with the aes-256-cbc cipher
  • Step 2: Initialize a Vault instance
  • Step 3: Use the migration script snippet provided in the README.md to re-encrypt the secrets
  • Step 4: Inspect the newly generated .enc.json file. The encrypted strings should now contain 3 segments separated by dots: <encrypted-data>.<iv>.<auth-tag>.

Other changes

  • Replaced mock-fs with native temporary files (fs.writeFileSync) in test/Vault.test.ts, as mock-fs breaks the test suite on modern versions of Node.

@inkedsquid inkedsquid self-assigned this Jun 25, 2026
@drichard-k
drichard-k merged commit ba7d3d2 into 2-dev Aug 10, 2026
2 checks passed
github-actions Bot pushed a commit that referenced this pull request Aug 10, 2026
## [2.1.0-beta.2](v2.1.0-beta.1...v2.1.0-beta.2) (2026-08-10)

### Features

* **crypto:** add aes gcm algorithm ([#18](#18)) ([ba7d3d2](ba7d3d2))

### Bug Fixes

* **ci:** use oidc to publish packages to npm ([088b648](088b648))
@kuzzlebot

kuzzlebot Bot commented Aug 10, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 2.1.0-beta.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions Bot pushed a commit that referenced this pull request Sep 16, 2026
## [2.2.0](v2.1.0...v2.2.0) (2026-09-16)

### Features

* **crypto:** add aes gcm algorithm ([#18](#18)) ([ba7d3d2](ba7d3d2))

### Bug Fixes

* **ci:** use oidc to publish packages to npm ([088b648](088b648))
@kuzzlebot

kuzzlebot Bot commented Sep 16, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 2.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@kuzzlebot kuzzlebot Bot added the released label Sep 16, 2026
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.

2 participants