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

Clarify what count special characters for key #3638

Closed
hongbo-miao opened this issue Jul 12, 2021 · 3 comments · Fixed by #3642
Closed

Clarify what count special characters for key #3638

hongbo-miao opened this issue Jul 12, 2021 · 3 comments · Fixed by #3642

Comments

@hongbo-miao
Copy link
Contributor

hongbo-miao commented Jul 12, 2021

Based on https://www.openpolicyagent.org/docs/latest/configuration/#keys-with-special-characters

If you have a key which contains a special character (., =, etc), like opa.example.com, and want to use the --set or --set-file options you will need to escape the character with a backslash (\).

Currently it uses "etc", it would be great to clarify more what count special characters.
For example I am wondering does _ and - count as they are very common being used.
Or provide a full list of characters that count special, that will be very helpful too.

Thanks! 😀

@hongbo-miao hongbo-miao changed the title Clarify what count special characters Clarify what count special characters for key Jul 12, 2021
@tsandall
Copy link
Member

tsandall commented Jul 12, 2021

The runes happen to be: = [ , .. If you could submit a patch on the docs it would be much appreciated. Here is the source for that page.

@hongbo-miao
Copy link
Contributor Author

Sure, happy to help. Thanks for the info!

@hongbo-miao
Copy link
Contributor Author

Done at #3642

srenatus pushed a commit that referenced this issue Jul 13, 2021
Fixes #3638.

Signed-off-by: Hongbo Miao <Hongbo.Miao@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants