Skip to content

feat!: replace mTLS streams with token-auth HTTP polling - #1

Merged
crisog merged 15 commits into
mainfrom
remove-streams-and-mtls
Feb 20, 2026
Merged

crisog merged 15 commits into
mainfrom
remove-streams-and-mtls

Conversation

@crisog

@crisog crisog commented Feb 20, 2026

Copy link
Copy Markdown
Owner

Summary

This PR migrates worker-control-plane communication from stream + mTLS to HTTP polling + bearer-token auth, reducing operational complexity and making deployments easier to scale.

Key Changes

  • Replaced WorkerStream with polling RPCs: GetJobs, SubmitResult, and RenewLease.
  • Updated enrollment flow to return api_token + api_endpoint; removed CSR/certificate exchange.
  • Removed PKI/mTLS code paths and added token-based worker auth with caching.
  • Added operational improvements in control plane:
    • worker inactivity monitor
    • lease reaper integration for polling model
    • batched done-job cleanup
    • DB pool tuning via env vars
  • Added migrations for worker API tokens and certificate-field removal.
  • Regenerated protobuf/connect code and updated tests/docs to match the new model.

@crisog
crisog merged commit 1248982 into main Feb 20, 2026
3 checks passed
@crisog
crisog deleted the remove-streams-and-mtls branch February 28, 2026 23:00
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