codahale / sneaker

A tool for securely storing secrets on S3 using Amazon KMS.
Other
800 stars 34 forks source link

sneaker download to STDOUT prints information other than the secret #14

Closed fwisehc closed 8 years ago

fwisehc commented 8 years ago

I would think that the following would only output the secret to STDOUT and not the downloading status message.

Expected Behavior

% sneaker download my-secret -
this-is-the-secret                                                                                                                  

Current Behavior Instead it prints a downloading status and then prints the secret.

% sneaker download my-secret -
2016/04/28 15:29:58 downloading -
this-is-the-secret

The documentation says:

Likewise, using - as the output path will make sneaker write the data to STDOUT. 
This allows you to pipe the output directly to a tar process, for example.
darrin-wortlehock commented 8 years ago

The messages are printed to stderr, only the output is sent to stdout. Your console shows you both stdout and stderr.