-
Notifications
You must be signed in to change notification settings - Fork 3
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
Support spaces in secret paths #199
Comments
I think we should support all allowed characters in Unix paths. Or the least common characters between Unix and Windows (windows have some restrictions). Not just spaces. A fast check test is needed.
|
I'm re-opening this. We want to explore using a Constraint parser for parsing the vaults secret path. This should also allow for escaping certain characters we'd otherwise disallow such as '=' That said, for the usage of Right now I'm pegging this expansion to the logic as a low priority. It's a lot of extra work just to allow On top of this, I think the error for failing to parse the vault secret path could be clearer and conditional. For example, if it failed to parse due to an invalid character, the exact reason needs to be defined. |
I think you should open up a new issue. The code of supporting spaces is done. |
Closing this out. New issue at #223. |
Specification
Attempting
$ ~/Projects/Polykey-CLI/dist/polykey.js secrets create ./A\ B.md 'rippling:/A B.md'
results in the following errorerror: command-argument value 'rippling:/A B.md' is invalid for argument 'secretPath'. rippling:/A B.md is not of the format <vaultName>:<directoryPath>
.We should be able to handle file paths with spaces within them.
Tasks
The text was updated successfully, but these errors were encountered: