Skip to content

Support headers for fallback registries - #151

Open
ting-hong-shieh wants to merge 1 commit into
cloudflare:mainfrom
ting-hong-shieh:feat/fallback-registry-headers
Open

Support headers for fallback registries#151
ting-hong-shieh wants to merge 1 commit into
cloudflare:mainfrom
ting-hong-shieh:feat/fallback-registry-headers

Conversation

@ting-hong-shieh

Copy link
Copy Markdown

Closes #106.

Summary

  • Add headers for non-sensitive fallback registry headers and headers_env for a JSON object stored in a Worker secret.
  • Merge secret headers over static configuration, using case-insensitive header names.
  • Send configured headers to the registry and same-origin authentication endpoints while removing them from cross-origin token and redirect requests.
  • Let generated Basic or Bearer credentials override a configured Authorization header.
  • Document the configuration and Cloudflare Access service-token example.

Testing

  • pnpm test (63 tests)
  • pnpm run typecheck
  • pnpm run lint
  • pnpm run format:check

@ting-hong-shieh
ting-hong-shieh marked this pull request as ready for review August 13, 2026 11:35
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.

Allow providing arbitrary headers for fallback registry

1 participant