Skip to content

Add ConfigDirector provider starter - #270

Merged
iromu merged 2 commits into
mainfrom
feature/configdirector-starter
Nov 10, 2026
Merged

iromu merged 2 commits into
mainfrom
feature/configdirector-starter

Conversation

@iromu

@iromu iromu commented Nov 10, 2026

Copy link
Copy Markdown
Owner

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 the FeatureProvider bean before ClientAutoConfiguration builds the Client.
  • ConfigDirectorProperties (spring.openfeature.configdirector.*): api-key (required, fail-fast IllegalStateException naming the property path) and optional url (endpoint; the ConfigDirector default applies).
  • ConfigDirectorCustomizer — escape hatch for connection mode, polling interval, timeouts, metadata and telemetry.

Coordinates

  • Provider: com.configdirector:configdirector-openfeature-server-provider:1.4.0 (Maven Central; the vendor's own 1.9.0 line is not published to Central).
  • Pins dev.openfeature:sdk:${sdk.version} (the provider transitively declares an older SDK).
  • Excludes the provider's transitive OkHttp 5 KMP root artifact (its Central jar is empty; JVM classes ship in okhttp-jvm) and declares okhttp-jvm from the repo's okhttp-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).
  • Starter README + root README provider-table row.
  • OpenSpec change add-configdirector-starter archived; spec synced to openspec/specs/configdirector-starter/.
  • Wiki ingested.

@coveralls

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 94.543% (+0.1%) from 94.421% — feature/configdirector-starter into main

@iromu
iromu merged commit dcf3456 into main Nov 10, 2026
5 checks passed
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

Successfully merging this pull request may close these issues.

2 participants