Skip to content

Conversation

@JacobNWolf
Copy link
Owner

@JacobNWolf JacobNWolf commented Mar 21, 2025

Description

Adds several new functions to handle the encrypting, decrypting, and loading of secrets into the both Node's process.env and Vite's import.meta.env, including:

  • encrypt — which takes and encrypts stringified secrets into a secure format
  • decrypt — which takes the encrypted version of those secrets and returns them back
  • mergeSecrets — which simply merges the secrets from the existing process.env or import.meta.env with the payload
  • loadSecrets — performs all of the above and loads them all

Also adds test runner CI using Vitest and updates JavaScript CI to correctly run Biome.

@JacobNWolf JacobNWolf merged commit 90e79ec into main Mar 22, 2025
3 checks passed
@JacobNWolf JacobNWolf deleted the jacobwolf/secrets-file branch March 22, 2025 03:45
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.

2 participants