CORSConfig is not representable as YAML
See original GitHub issueAs seen during #4525 development, CORSConfig
cannot be represented as YAML because we’d need the quarkus.http.cors
key to be both the key of a key/value pair and the key of a dictionary, which is not possible.
A properties-based CORS filter configuration currently looks like this:
quarkus.http.cors=true
quarkus.http.cors.origins=http://foo.com,http://www.bar.io
quarkus.http.cors.methods=GET,PUT,POST
quarkus.http.cors.headers=X-Custom
quarkus.http.cors.exposed-headers=Content-Disposition
quarkus.http.cors.access-control-max-age=24H
We only need to change the quarkus.http.cors=true
property to quarkus.http.cors.enabled=true
to make it convertible to YAML.
Issue Analytics
- State:
- Created 4 years ago
- Comments:25 (24 by maintainers)
Top Results From Across the Web
SpringBoot @ConfigurationProperties issue with key that ...
I think this is the normal behaviour. There is a section in the documentation explaining how to keep the escaped characters ( /...
Read more >AWS::CloudFront::ResponseHeadersPolicy CorsConfig
A Boolean that determines whether CloudFront overrides HTTP response headers received from the origin with the ones specified in this response headers policy....
Read more >Spring Cloud Hoxton configuration properties
Name Default Description
aws.paramstore.default‑context application
aws.paramstore.enabled true Is AWS Parameter Store support enabled.
aws.paramstore.profile‑separator _
Read more >Configuring CORS with Spring Boot and Spring Security
In short, the CORS configuration depends on multiple factors: Spring Web / Spring Webflux; Local / Global CORS config; Spring Security or not....
Read more >PrizmDoc v12.3 - Updated June 23, 2017 - Accusoft Support
converter will not only automatically recognize the form fields, but will also identify the ... Program signed by an authorized representative of Accusoft....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Here’s the complete list of config keys that are currently not representable as YAML, based on the
ALL CONFIGURATION OPTIONS
doc page (I’m glad it existed to do this check!):^
quarkus.hibernate-orm.database.generation
could be replaced withquarkus.hibernate-orm.database.generation.auto
to match the original Hibernate property. @gsmet WDYT?^
quarkus.hibernate-orm.dialect
could be replaced withquarkus.hibernate-orm.dialect.name
but it differs from the original Hibernate property. @gsmet WDYT?^
quarkus.http.cors
will becomequarkus.http.cors.enabled
^
quarkus.log.console.async
could be replaced withquarkus.log.console.async.enabled
^
quarkus.log.file.async
could be replaced withquarkus.log.file.async.enabled
^
quarkus.log.syslog.async
could be replaced withquarkus.log.syslog.async.enabled
I also noticed several configuration keys being used by
quarkus-agroal
,quarkus-reactive-mysql-client
andquarkus-reactive-pg-client
. I’m not sure that’s an issue though, but I’d like your opinion about it:I’ll see if that kind of issue can be detected at build time, but I’m not sure it’ll be easy. Half of these cases were related to the use of
@ConfigItem(name = ConfigItem.PARENT)
and the other half was the consequence of hardcoded config keys names using@ConfigItem(name = "foo")
.I like the idea. I guess this would have to be done in the
YamlConfigSource
that is currently being donated frommicrprofile-extensions
tosmallrye-config
, as discussed in #4525.I’ll give empty YAML keys a try with #4525 as it is currently using the same YAML parser (snakeyaml) than the future
smallrye-config
version. It might already support empty keys.