Comments (9)
A nice touch would be able to override config files, or even by default be able to import them from one another.
config.yml extended by config_prod.yml and config_staging.yml
from dropwizard.
Hardcoded defaults are pretty awkward for nested config classes e.g. LoggingConfiguration. Where these are immutable it's necessary to subclass them, providing copies of the private attributes with the defaults set. Even when they're mutable and you can default them from your config class's constructor, I suspect the evaluation order would be wrong.
from dropwizard.
This has come up on the mailing list. The combination of default values in the Configuration
fields, configuration file, and command-line overrides is enough complexity.
from dropwizard.
Is this really needed or good hardcoded defaults are enough?
from dropwizard.
A use case where this feature would make sense is when wanting to keep a config file out of version control, i.e. secrets.yml.
from dropwizard.
I want this too. Trying to shove defaults into classes I didn't write sounds just too painful, and hard to read. Anyone had success hacking it in?
from dropwizard.
Layering config files is also important for separating out sensitive values (e.g. mounting a Kubernetes Secret
in addition mounting a Kubernetes ConfigMap
). Or using the Vault sidecar injector.
Almost all modern java microservice frameworks have this feature.
from dropwizard.
@sirianni You can override any setting in the configuration file with a system property or with environment variables.
See also: Using Secrets as environment variables and Dropwizard -> Configuration -> Environment variables.
from dropwizard.
Layering config files is also important for separating out sensitive values (e.g. mounting a Kubernetes
Secret
in addition mounting a KubernetesConfigMap
). Or using the Vault sidecar injector.Almost all modern java microservice frameworks have this feature.
it's three years since I touched this, but we found a way to plug in this behaviour with our own code: https://github.com/vvondra/dropwizard-config-importable
from dropwizard.
Related Issues (20)
- Jetty 11.0.x CVE-2023-36479 and CVE-2023-40167 HOT 2
- Gradle dependency issue in v3.0.2 with Guava and Findbugs HOT 2
- Is Dropwizard affected by CVE-2023-44487? HOT 3
- Vulnerability issues with dependencies in dropwizard 4.0.1 HOT 1
- Vulnerability issues with dependencies in dropwizard 4.0.1 HOT 1
- IlligalAccesException : module com.fasterxml.jackson.module.blackbird does not read module *** HOT 12
- Incorrect javadocs for io.dropwizard.logging.common.AppenderFactory
- Dropwizard 4.0.3 not logging request logs HOT 2
- AWS Serverless Example HOT 1
- Dropwizard 4.0.2 + Hibernate + ContainerResponseFilter with NameBinding HOT 3
- Jersey client 2.21 doesnt support Transfer-encoding: chunked, is there any workaround?
- Breaking change in a version between 4.0.1 and 4.0.4 HOT 3
- DropwizardJettyServerAdapter in DropWizard3 causing exception when there are multiple HttpHeaders HOT 9
- Update Logback to fix CVE-2023-6378? HOT 4
- NPE in tests when a factory is used to inject a value to a resource method parameter HOT 2
- Managed virtual thread pool HOT 2
- Deserialization failures due to Afterburner HOT 1
- Server starts and stops immediately when both enableVirtualThreads and enableAdminVirtualThreads are set to true HOT 5
- delay between tests that use DropwizardExtensionsSupport HOT 2
- Logging request and response body with RequestLogFactory HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dropwizard.