-
Notifications
You must be signed in to change notification settings - Fork 880
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
"#" in value of key is treated like a comment in ini file after decrypting #1597
Comments
Hmm, this seems to be how the INI package that SOPS uses (https://github.com/go-ini/ini/) operates. I've tried a few things (single quotes, double quotes, escape with backslash) and they didn't help... |
Ok, now I found https://ini.unknwon.io/docs/howto/work_with_comments (it was not loading for some reason when I tried earlier), and it says that you can use single backticks ( foo = `bar#baz`
this = """is;secret""" After decrypting it will use backticks: foo = `bar#baz`
this = `is;secret` While this works, I'm not sure whether this helps with other programs processing the output... (It would be better to set |
Hi @felixfontein. Thanks for replying. Sorry for the delay to get back to you.
The above way code works but using it with jq:
This is going to half work i think. Well as of now we'll try not to have #s in out credentials. As for your other advice:
Is it possible to toggle these with cli options like a -c or something? |
No. These are internal options of the INI library that are not used by SOPS at the moment, and there's no way to use them right now. |
I have a key pair:
after encrypting, and then decrypting:
How do I keep hashes and other special characters in the value. This does not happen in json. I have sops 3.7.3.
The text was updated successfully, but these errors were encountered: