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

Allow Whitespace Characters as Vault Content #372

Closed

Conversation

hamarituc
Copy link

This change allows to use line breaks \n and tabs \t as characters in the content of a vault.

Description

Disallowing line breaks (and possibly tabs) renders Chef Vaults unusable for X.509 and SSH keys. This commit include these character in the set of allowed characters.

Please keep in mind this change only makes SSH and X.509 keys to work again. There are some cases where it is convenient to store binary data in vaults. Think of PKCS#12 files, Kerberos Keytabs, or unarmored OpenPGP keys for example. Given that it would be worth questioning the changes of #347, which introduced this changes behaviour.

Related Issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

  • I have read the CONTRIBUTING document.
  • I have run the pre-merge tests locally and they pass.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • All commits have been signed-off for the Developer Certificate of Origin.

Disallowing line breaks (and possibly tabs) renders Chef Vaults unusable
for X.509 and SSH keys (see chef#370). This commit include these character
in the set of allowed characters.

Signed-off-by: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de>
@hamarituc hamarituc requested review from a team as code owners May 28, 2021 15:06
@schrd
Copy link

schrd commented Jun 14, 2021

@tas50 is there any chance to get this merged? Not being able to store SSL/SSH Keys in vault makes it almost useless.

@josqu4red josqu4red mentioned this pull request Jul 1, 2021
7 tasks
@vkarve-chef
Copy link
Contributor

addressed through #367

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.

None yet

3 participants