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

Detect improper YAML keys #26420

Closed
dmlloyd opened this issue Jun 28, 2022 · 0 comments · Fixed by #27235
Closed

Detect improper YAML keys #26420

dmlloyd opened this issue Jun 28, 2022 · 0 comments · Fixed by #27235
Assignees
Labels
area/config kind/enhancement New feature or request
Milestone

Comments

@dmlloyd
Copy link
Member

dmlloyd commented Jun 28, 2022

Description

Some Quarkus-like systems, when configuring with YAML, non-conformingly treat foo.bar: the same as foo:\n bar:. If someone erroneously passes in a key of the form quarkus.foo: in a YAML file, we ignore it silently, which might be very confusing to the user.

If we detect any configuration key segment starting with quarkus., we should throw an invalid key error. This would also detect erroneously giving "quarkus.foo"=something in an application.properties file.

Implementation ideas

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/config kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants