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

Improves gpg-encrypted get requests streamed to stdout #821

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Improves gpg-encrypted get requests streamed to stdout #821

wants to merge 1 commit into from

Conversation

marcv81
Copy link

@marcv81 marcv81 commented Jan 10, 2017

This trivial change improves the behaviour of
gpg-encrypted get requests streamed to stdout.

Previous (broken) behaviour:

  • Streams encrypted file contents to stdout
  • Streams incorrect error message to stderr
  • Creates empty file with pseudo-random name

Current (less broken) behaviour:

  • Streams encrypted file contents to stdout

Correct behaviour:

  • Streams decrypted file contents to stdout

Implementing the correct behaviour would require
significant architectural changes to how s3cmd
decrypts gpg-encrypted contents.

Current workaround to stream a gpg-encrypted
get request to stdout:
s3cmd --no-progress get s3:/// - | gpg -d --quiet --no-use-agent --passphrase

This trivial change improves the behaviour of
gpg-encrypted get requests streamed to stdout.

Previous (broken) behaviour:
- Streams encrypted file contents to stdout
- Streams incorrect error message to stderr
- Creates empty file with pseudo-random name

Current (less broken) behaviour:
- Streams encrypted file contents to stdout

Correct behaviour:
- Streams decrypted file contents to stdout

Implementing the correct behaviour would require
significant architectural changes to how s3cmd
decrypts gpg-encrypted contents.

Current workaround to stream a gpg-encrypted
get request to stdout:
s3cmd --no-progress get s3://<bucket>/<file> - | gpg -d --quiet --no-use-agent --passphrase <passphrase>
@rampageservices
Copy link

This seems important to resolve and this PR seems trivial but has conflicts.

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