Skip to content

Conversation

@mortenoh
Copy link
Contributor

Summary

  • Add optional X-Service-Key header authentication to the registration module
  • Enable services to register with orchestrators that require authentication (e.g., chap-core)
  • Add service_key and service_key_env parameters to .with_registration()
  • Include X-Service-Key header in register, keepalive, and deregister requests
  • Backwards compatible: no header sent if key not configured
  • Bump version to 0.7.0

Test plan

  • make lint passes
  • make test passes (all 359 tests pass)
  • New tests verify service key in registration, keepalive, and deregister
  • Test parameter overrides environment variable
  • Test backwards compatibility (no key configured)

Add optional X-Service-Key header authentication to the registration
module, enabling services to register with orchestrators that require
authentication.

- Add service_key and service_key_env parameters to with_registration()
- Include X-Service-Key header in register, keepalive, and deregister requests
- Default env var: SERVICEKIT_REGISTRATION_KEY
- Direct parameter takes precedence over environment variable
- Backwards compatible: no header sent if key not configured
- Bump version to 0.7.0
@mortenoh mortenoh merged commit 4b724cb into main Jan 23, 2026
2 checks passed
@codecov
Copy link

codecov bot commented Jan 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@mortenoh mortenoh deleted the feat/registration-service-key branch January 23, 2026 10:53
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.

1 participant