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

Ansible vault encrypts files, and it should encrypt values instead. #14721

Closed
gtmtech opened this issue Mar 1, 2016 · 5 comments
Closed

Ansible vault encrypts files, and it should encrypt values instead. #14721

gtmtech opened this issue Mar 1, 2016 · 5 comments
Assignees
Labels
affects_2.2 This issue/PR affects Ansible v2.2 affects_2.3 This issue/PR affects Ansible v2.3 feature This issue/PR relates to a feature request. needs_info This issue requires further information. Please answer any outstanding questions. needs_template This issue/PR has an incomplete description. Please fill in the proposed template correctly. support:core This issue/PR relates to code supported by the Ansible Engineering Team.

Comments

@gtmtech
Copy link

gtmtech commented Mar 1, 2016

Issue Type: - Feature Idea
Ansible Version: All versions
Ansible Configuration: N/A
Environment: N/A
Summary: N/A

Ansible vault encrypts files. It should instead encrypt values in key/value pairs, within an overall yml structure.
By encrypting values in key/value pairs, this makes the secret files readable, understandable, searchable, they maintain their data structure in a readable format which makes them (most importantly) git-diffable, whilst still keeping secrets safe. There are so many advantages to the encrypting by value approach.

In the puppet world, hiera-gpg did the same, and hiera-eyaml then took over with value encryption instead. Now most people use hiera-eyaml because this approach is far more user-friendly.

I believe chef encrypted data bags also used the encrypt-by-value approach.

@ozbillwang
Copy link
Contributor

+1. I am looking for the same feature as well.

@alikins
Copy link
Contributor

alikins commented Aug 22, 2016

@gtmtech @SydOps Take a look at the pr #16274

Thats a proposed implementation of vault encrypted values in yaml files.

@ozbillwang
Copy link
Contributor

ozbillwang commented Aug 26, 2016

@alikins

Nice job, it has been merged.

@ansibot ansibot added the affects_2.2 This issue/PR affects Ansible v2.2 label Sep 8, 2016
@ansibot ansibot added the affects_2.3 This issue/PR affects Ansible v2.3 label Dec 13, 2016
@ansibot
Copy link
Contributor

ansibot commented Apr 11, 2017

@gtmtech Greetings! Thanks for taking the time to open this issue. In order for the community to handle your issue effectively, we need a bit more information.

Here are the items we could not find in your description:

  • component name

Please set the description of this issue with this template:
https://raw.githubusercontent.com/ansible/ansible/devel/.github/ISSUE_TEMPLATE.md

click here for bot help

@ansibot ansibot added needs_info This issue requires further information. Please answer any outstanding questions. needs_template This issue/PR has an incomplete description. Please fill in the proposed template correctly. labels Apr 11, 2017
@ansibot ansibot added the support:core This issue/PR relates to code supported by the Ansible Engineering Team. label Jun 29, 2017
@ansibotdev
Copy link

@gtmtech You have not responded to information requests in this issue so we will assume it no longer affects you. If you are still interested in this, please create a new issue with the requested information.

click here for bot help

@ansibot ansibot added feature This issue/PR relates to a feature request. and removed feature_idea labels Mar 2, 2018
@ansible ansible locked and limited conversation to collaborators Apr 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.2 This issue/PR affects Ansible v2.2 affects_2.3 This issue/PR affects Ansible v2.3 feature This issue/PR relates to a feature request. needs_info This issue requires further information. Please answer any outstanding questions. needs_template This issue/PR has an incomplete description. Please fill in the proposed template correctly. support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
None yet
Development

No branches or pull requests

6 participants