Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unlock only possible via file #116

Open
basz opened this issue Apr 24, 2017 · 3 comments
Open

unlock only possible via file #116

basz opened this issue Apr 24, 2017 · 3 comments

Comments

@basz
Copy link

basz commented Apr 24, 2017

would it be an idea to be able to encrypt via environment variables?

git-crypt unlock $GITCRYPT_SYMETRIC_KEY

Now that gitlab-ci is able properly secure these, "Secret Variables; These variables will be set to environment by the runner. So you can use them for passwords, secret keys or whatever you want."

Now, I store them as base64 encoded in the var

echo $GITCRYPT_SYMETRICKEY_PATH > .git-crypt-base64.key && \ 
openssl base64 -d -in .git-crypt-base64.key -out .git-crypt.key && \
git-crypt unlock .git-crypt.key \
&& rm .git-crypt*.key
@aaronjensen
Copy link

Would this work:

git-crypt unlock <(echo $GITCRYPT_SYMETRIC_KEY | base64 --decode)

@IvanSorokin
Copy link

IvanSorokin commented Oct 9, 2019

@aaronjensen could you help me to achieve this using windows powershell?

@aaronjensen
Copy link

@IvanSorokin No, I'm sorry. You'll need to talk to someone who is proficient with powershell, which I am not.

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

No branches or pull requests

3 participants