This description was created by Ellipsis for commit 3267611cf7702f9349a24979de4ed0f210de2347
Summary:
This PR encrypts environment variable values in DeploymentStore using the age library, adding encryption and decryption processes and updating tests accordingly.
Key points:
Added GetTeamKeys function in lib/store/dbstore/team.go to retrieve encryption keys.
Modified DeploymentStore in lib/store/dbstore/deployment.go to encrypt env var values using age library.
Implemented ageEncryptValue and ageDecryptValue functions for encryption and decryption.
Updated CreateAppEnvVars to encrypt values before storing.
Updated GetAppEnvVars and GetAppEnvVarsForAppEnv to decrypt values after retrieval.
Added tests in lib/store/storetest.go to verify encryption and decryption of env vars.
Summary:
This PR encrypts environment variable values in
DeploymentStore
using theage
library, adding encryption and decryption processes and updating tests accordingly.Key points:
GetTeamKeys
function inlib/store/dbstore/team.go
to retrieve encryption keys.DeploymentStore
inlib/store/dbstore/deployment.go
to encrypt env var values usingage
library.ageEncryptValue
andageDecryptValue
functions for encryption and decryption.CreateAppEnvVars
to encrypt values before storing.GetAppEnvVars
andGetAppEnvVarsForAppEnv
to decrypt values after retrieval.lib/store/storetest.go
to verify encryption and decryption of env vars.Generated with :heart: by ellipsis.dev