-
Notifications
You must be signed in to change notification settings - Fork 410
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
encrypt-file
cannot be used for multiple files
#239
Comments
I don't know where the "version unknown" is coming from. Each file should have its own set of variables (that's why there's a hash in the var name). Do you have an example for this failing? |
+1 |
1 similar comment
+1 |
+1 Here's an example of encrypting multiple files failing: Note that I ran |
+1 |
1 similar comment
+1 |
I don't think we can pull the decrypted key and iv values once they are uploaded. WorkaroundCreate an archive of sensitive files, and encrypt this archive. In your $ tar cvf secrets.tar foo bar
$ travis encrypt-file secrets.tar
$ vi .travis.yml
$ git add secrets.tar.enc .travis.yml
$ git commit -m 'use secret archive'
$ git push before_install:
- openssl aes-256-cbc -K $encrypted_5880cf525281_key -iv $encrypted_5880cf525281_iv -in secrets.tar.enc -out secrets.tar -d
- tar xvf secrets.tar The management might be a little cumbersome still. |
I've added the above workarounds to http://docs.travis-ci.com/user/encrypting-files/#Encrypting-multiple-files. |
For reference, this should be fixed in #678 |
It seems impossible to use
encrypt-file
on multiple files.One can run the command multiple times on different files, but the later invocation overwrites the secure environment variables, invalidating the earlier encryptions.
I suspect
-K
and-iv
flags are meant to overcome this, but it fails as follows:The text was updated successfully, but these errors were encountered: