Repository navigation
Add ConfigDirector provider starter - #270
Merged
Merged
Conversation
Collaborator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
spring-boot-starter-openfeature-configdirector, wiring the ConfigDirector OpenFeature provider into Spring Boot auto-configuration.What it does
ConfigDirectorAutoConfiguration—@ConditionalOnClass+@ConditionalOnProperty(prefix = "spring.openfeature.configdirector", name = "enabled", matchIfMissing = true); produces theFeatureProviderbean beforeClientAutoConfigurationbuilds theClient.ConfigDirectorProperties(spring.openfeature.configdirector.*):api-key(required, fail-fastIllegalStateExceptionnaming the property path) and optionalurl(endpoint; the ConfigDirector default applies).ConfigDirectorCustomizer— escape hatch for connection mode, polling interval, timeouts, metadata and telemetry.Coordinates
com.configdirector:configdirector-openfeature-server-provider:1.4.0(Maven Central; the vendor's own 1.9.0 line is not published to Central).dev.openfeature:sdk:${sdk.version}(the provider transitively declares an older SDK).okhttp-jvm) and declaresokhttp-jvmfrom the repo'sokhttp-bom.Tests
6 contract tests (ApplicationContextRunner-style): default beans, disabled, consumer back-off, missing-key fail-fast, customizer, property binding. The provider constructor is lazy (no I/O until
initialize()), so the credential-free guarantee holds — the one registered test points at a refused localhost port and shuts the provider down. Module instruction coverage 100%.Deliverables
examples/configdirector-simple— runnable example (fake in-memory provider gated on--example.fake-provider=true).add-configdirector-starterarchived; spec synced toopenspec/specs/configdirector-starter/.