Skip to content

fix(runtime): Plumb custom headers through to spawned bundle loaders. - #47

Merged
philipaconrad merged 1 commit into
open-policy-agent:mainfrom
philipaconrad:philip/plumb-bundle-loader-custom-headers
Aug 1, 2026
Merged

fix(runtime): Plumb custom headers through to spawned bundle loaders.#47
philipaconrad merged 1 commit into
open-policy-agent:mainfrom
philipaconrad:philip/plumb-bundle-loader-custom-headers

Conversation

@philipaconrad

Copy link
Copy Markdown
Member

What changed, and why?

The RESTClientBundleLoader accepts custom headers in its initializers, but the Runtime didn't have any way to plumb custom headers through to the bundle loaders.

We've now got the plumbing in place in the Runtime for custom headers on both DiscoveryConfigProvider and the RESTClientBundleLoader.

Injected headers merge over services.<name>.headers, so they win on conflicts. Credential, ETag, and long-polling headers are still applied afterwards and will win over the other header sources.

How to test

  • New tests should be picked up automatically in CI.

Related Resources

The RESTClientBundleLoader accepts custom headers in its initializers, but
the Runtime didn't have any way to plumb custom headers through to the
bundle loaders.

We've now got the plumbing in place in the Runtime for custom headers
on both DiscoveryConfigProvider and the RESTClientBundleLoader.

Injected headers merge over `services.<name>.headers`, so they win on
conflicts. Credential, ETag, and long-polling headers are still applied
afterwards and will win over the other header sources.

Signed-off-by: Philip Conrad <philip_conrad@apple.com>
@philipaconrad philipaconrad self-assigned this Jul 31, 2026
@philipaconrad philipaconrad added the bug Something isn't working label Jul 31, 2026
@philipaconrad
philipaconrad merged commit 98794eb into open-policy-agent:main Aug 1, 2026
8 checks passed
@philipaconrad
philipaconrad deleted the philip/plumb-bundle-loader-custom-headers branch August 4, 2026 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant