-
Notifications
You must be signed in to change notification settings - Fork 115
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
Ban use of '/' in config keys #420
Comments
I would even go further. The spec should enforce the IEEE 1003.1-2017 - IEEE Standard for IEEE Information Technology - (POSIX) recommendations.
So I believe that all specs requiring |
Config automatically converts non alphabetical numberic character to _ when trying to match environment variables. There is no issue when using /. |
Doesn't that make environment variables weird with potentially several consecutive |
And from eclipse/microprofile-rest-client#171 it seems that |
I'm actually confused because #264 says that |
So basically, the spec should enforce that the mapped names are valid according to the IEEE recommendations. |
As per my previous comment, all non alphabetical numberic will be replaced with _. It cover . / or any others, which is not alphabetical nor numberic. |
Read the config spec, which explains more. I think there is any issue to provide wider replacements beyond . -> _ |
For me it's not the fact that there isn't a solution around the problem, it's that we make it confusing by needing to know what the key can contain in different environments. I would prefer the key is identical wherever it's used, which is why I think it makes sense for MP Config to ban inappropriate key name content |
i think it is not confusing. the intent and the behaviour are clearly specified, under the 'Default ConfigSources' title. |
It would seem to me that if an organisation does not like '/' in properties it is free to do this as local policy and the Config spec will be perfectly happy with that too. |
Also relevant is that https://github.com/eclipse/microprofile/pull/100/files references |
At today's hangout, @kenfinnigan @jmesnil and I discussed this in more details. We should certainly document the character mapping in the javadoc of Config.java to ensure end users are aware of how to override properties in environment variables. |
Signed-off-by: Emily Jiang <emijiang6@googlemail.com>
#420 add environment property name mapping in Javadoc
For "Cloud Native" use we need to ban the use of '/' within configuration keys.
As per eclipse/microprofile-rest-client#171, it's not possible to convert a configuration key with '/' into an appropriate environment variable.
I believe FT also uses '/' heavily in configuration keys.
The text was updated successfully, but these errors were encountered: