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

Feature Request: Allow knife vault commands to be executed on .json files #341

Open
kmmceachern opened this issue Jan 29, 2020 · 0 comments
Labels
Triage: Feature Request Indicates an issue requesting new functionality.

Comments

@kmmceachern
Copy link

Describe the Enhancement

Ansible vaults can be shown in git with some modifications to a .gitattributes and .gitconfig file. It would be great if some changes could be made to enable this for Chef vaults.

Describe the Need

Since knife vault show <vault>/<item>.json isn't a valid command, there's no way to enable git to decrypt and diff vaults automatically (at least none I have been able to find).

I'd like to request functionality be added for knife vault show commands to accept a new <vault>/<item>.json path-based syntax, in addition to the existing <vault> <item> syntax.

Current Alternative

The only method I know of right now to diff vault changes is: check out the base branch in git, knife vault show <vault> <item> -Fj > /tmp/diff1.json, then check out the feature branch and knife vault show <vault> <item> -Fj > /tmp/diff2.json, then diff /tmp/diff1.json /tmp/diff2.json.

Can We Help You Implement This?

Please let me know if there's any more information I can provide to help make this happen! I'm not a Ruby dev though, so I lack the skillset to make this change myself.

@kmmceachern kmmceachern added the Status: Untriaged An issue that has yet to be triaged. label Jan 29, 2020
@vkarve-chef vkarve-chef added Triage: Feature Request Indicates an issue requesting new functionality. and removed Status: Untriaged An issue that has yet to be triaged. labels Sep 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Triage: Feature Request Indicates an issue requesting new functionality.
Projects
None yet
Development

No branches or pull requests

2 participants