Add agentless Feature Flagging configuration source#11892
Draft
leoromanovsky wants to merge 4 commits into
Draft
Add agentless Feature Flagging configuration source#11892leoromanovsky wants to merge 4 commits into
leoromanovsky wants to merge 4 commits into
Conversation
Contributor
|
🎯 Code Coverage (details) 🔗 Commit SHA: 82bb199 | Docs | Datadog PR Page | Give us feedback! |
Contributor
🟢 Java Benchmark SLOs — All performance SLOs passed
PR vs. master results
Commit: Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion. |
leoromanovsky
commented
Jul 8, 2026
leoromanovsky
commented
Jul 9, 2026
leoromanovsky
commented
Jul 9, 2026
1858f32 to
82bb199
Compare
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.
NOTE TO REVIEWERS
This PR intentionally keeps the complete ~1K LOC feature in one PR so the final architecture remains visible. The four commits are deliberately layered like a stacked PR, and each commit pairs its production change with the tests for that layer.
How to Review
Commit Guide
LOC is rename-aware per commit against its parent.
07f94a5488ba90dea14ed784c8b5d282bb199145Motivation
Java Feature Flagging needs a tracer-side configuration-source split so SDKs can fetch UFC from an agentless HTTP backend while preserving the existing Agent Remote Configuration path.
Changes
DD_FEATURE_FLAGS_CONFIGURATION_SOURCEwithagentless,remote_config, and reservedoffline; default isagentless.DD_FEATURE_FLAGS_CONFIGURATION_SOURCE_AGENTLESS_BASE_URL.DD_FEATURE_FLAGS_CONFIGURATION_SOURCE_AGENTLESS_POLL_INTERVAL_SECONDSandDD_FEATURE_FLAGS_CONFIGURATION_SOURCE_AGENTLESS_REQUEST_TIMEOUT_SECONDS.AgentlessConfigurationSource, an HTTP UFC poller used for both the default Datadog-managed endpoint and a configured custom HTTP endpoint.remote_configon the existingRemoteConfigServiceImpl/ Agent RC path.DD-API-KEY, ETag/304, timeout/429/5xx retry, malformed UFC rejection, last-known-good preservation, and no overlapping polls.DD_FEATURE_FLAGS_ENABLEDand extra-header env from this PR.Decisions
No new provider kill switch. This keeps the existing provider bootstrap behavior through
DD_EXPERIMENTAL_FLAGGING_PROVIDER_ENABLED; changing enablement is out of scope for this PR.Custom HTTP delivery remains under
agentless. The source mode describes direct HTTP UFC delivery without the Datadog Agent. With no base URL, the SDK derives the first-party Datadog endpoint ashttps://api.<site>/api/v2/feature-flagging/config/server-distribution?dd_env=<env>. SettingDD_FEATURE_FLAGS_CONFIGURATION_SOURCE_AGENTLESS_BASE_URLchooses a system-test, dogfood, or operator-managed HTTP endpoint without introducing a fourth source mode. A bare host uses the standard server-distribution path; a URL with a path is used as the exact UFC endpoint.Remote Configuration remains a distinct mode. It is Agent-mediated and uses the RC protocol's security, signing, targeting, capability, and subscription lifecycle. Those semantics are materially different from direct HTTP polling, so
remote_configremains a peer source mode rather than another agentless endpoint choice.No offline factory yet.
offlineremains a reserved configuration-source value. This PR does not expose a startup-bytes API or offline factory because that API still needs design work.Source selection stays SDK-local.
DD_FEATURE_FLAGS_CONFIGURATION_SOURCEdecides which local source implementation starts. It is not sent to the backend.Initialization Modes
Solid connectors are implemented in this PR. The dashed offline connector previews startup-provided UFC bytes.
flowchart TD Gate{DD_EXPERIMENTAL_FLAGGING_PROVIDER_ENABLED} Disabled[Feature Flagging subsystem not started] System[FeatureFlaggingSystem.start] Select{DD_FEATURE_FLAGS_CONFIGURATION_SOURCE} Exposure[ExposureWriter starts for every enabled mode] subgraph AgentlessMode[agentless mode - current default] AgentlessSource[AgentlessConfigurationSource] OperationalDefaults[SDK-owned operation<br/>30s poll default; 2s request timeout default<br/>ETag; retry; last-known-good; no overlap] EndpointChoice{agentless base URL set?} DatadogManaged[Datadog-managed agentless<br/>first-party; CDN-backed] CustomHttp[Custom HTTP endpoint<br/>system tests; dogfood; operator backend] AgentlessSource --- OperationalDefaults AgentlessSource -- polls --> EndpointChoice EndpointChoice -- no --> DatadogManaged EndpointChoice -- yes --> CustomHttp end RemoteConfig[remote_config<br/>explicit opt-in; Agent-mediated] RemoteConfigSource[RemoteConfigServiceImpl] AgentRc[Datadog Agent Remote Configuration<br/>RC security; signing; targeting; subscriptions] OfflineReserved[offline today<br/>reserved; no configuration service] OfflineSource[Later: OfflineConfigurationSource<br/>customer UFC JSON bytes at startup; no network] Ufc[Shared UFC deserialize and evaluate pipeline] Gateway[FeatureFlaggingGateway] Provider[OpenFeature provider] Gate -- false --> Disabled Gate -- true --> System System --> Select System --> Exposure Select -- unset or agentless --> AgentlessSource DatadogManaged --> Ufc CustomHttp --> Ufc Select -- remote_config --> RemoteConfig RemoteConfig --> RemoteConfigSource RemoteConfigSource -- subscribes --> AgentRc RemoteConfigSource --> Ufc Select -- offline today --> OfflineReserved OfflineReserved -. later .-> OfflineSource OfflineSource -. startup UFC bytes .-> Ufc Ufc --> Gateway Gateway --> ProviderCustomer Usage Example
Default Datadog-managed agentless delivery:
Custom HTTP delivery keeps agentless mode and changes only the endpoint:
Explicit Agent Remote Configuration delivery still uses the existing Agent path:
Verification
Note on CI failure (known)
Will be resolved after merging DataDog/system-tests#7297
System Test Evidence
The Java manifest activation is exercised locally before it is merged. I built
all three Java artifacts from the pre-restack head (
1858f3256e):dd-java-agent,dd-trace-api, anddd-openfeature. The narrative restack head (82bb199145) has the identical Git tree (9b945ade3d0e), so the tested code is byte-for-byte unchanged. I then ran themanifest-enabled agentless scenario from the companion system-tests draft.
This is the same Java manifest row proposed by the companion draft, enabled
locally against the byte-identical pre-restack tree rather than relying on the currently published Java
development artifact.
Next Steps
DataDog/system-tests#7300.
merge the activation only when that gate is green.