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

MP-JWT configuration property name with dot (.) #107

Closed
chunlongliang-ibm opened this issue Aug 28, 2018 · 1 comment
Closed

MP-JWT configuration property name with dot (.) #107

chunlongliang-ibm opened this issue Aug 28, 2018 · 1 comment
Assignees
Milestone

Comments

@chunlongliang-ibm
Copy link

chunlongliang-ibm commented Aug 28, 2018

MP-JWT configuration property name contains dot (.), like mp.jwt.verify.publickey.location. However, you can not define mp.jwt.verify.publickey.location as environment variable in some OS, for example Ubuntu. See https://unix.stackexchange.com/questions/93532/exporting-a-variable-with-dot-in-it

We should consider to change the naming convention in the future, and/or update spec to exclude the use of environment variables.

MP-Config 1.3 realize the existence of disallowed environment variable, and it will search a variable by replacing dot (.) with under score (_). see https://github.com/eclipse/microprofile-config/blob/master/spec/src/main/asciidoc/configsources.asciidoc.

@starksm64 starksm64 self-assigned this Sep 11, 2018
@starksm64 starksm64 added this to the 1.1.1 milestone Sep 11, 2018
@starksm64
Copy link
Contributor

I have added a "Mapping Properties to Environment Variables" section to the spec that provides the rules MP config uses when searching for a property with a '.' in its name among environment variables, and provide a table of the valid mappings.

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

No branches or pull requests

2 participants