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

Provide wrapper commands for decrypting and encrypting #46

Open
blueyed opened this issue Oct 8, 2015 · 2 comments
Open

Provide wrapper commands for decrypting and encrypting #46

blueyed opened this issue Oct 8, 2015 · 2 comments

Comments

@blueyed
Copy link
Contributor

blueyed commented Oct 8, 2015

When editing pillar files for Salt, these might contain encrypted information, e.g.

foo:
  api_key: |
    -----BEGIN PGP MESSAGE-----
    Version: GnuPG v1

    …
    -----END PGP MESSAGE-----

It is possible to decrypt them by visually selecting the block, removing the indentation and then running :!gpg --decrypt 2>/dev/null, but that could be simplified by providing a wrapper command for this.

What do you think?

In the same vain, gpg --encrypt --armor might be provided as a command, although that usually requires you to specify a recipient key, but which will be asked for interactively.

@jamessan
Copy link
Owner

jamessan commented Oct 8, 2015

Interesting idea. I'll give it some thought for a future release.

@jamessan
Copy link
Owner

#88 is somewhat related. If the commands proposed in that issue properly handle ranges, then that may solve your use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants