Refactor client auth to init container and add policy hot reloading#7
Refactor client auth to init container and add policy hot reloading#7tekulvw wants to merge 15 commits intoKapernikov:mainfrom
Conversation
|
Hello, Thanks for your changes! I noticed a couple of things however.
Thanks! |
|
hey @tekulvw ! are you still planning to work on this or should i try incorporating the changes myself .. |
|
hello! |
When policy.hotReload.enabled is true, a kiwigrid/k8s-sidecar runs as a native sidecar (restartable init container) that watches for ConfigMap changes labeled headscale-policy=true, syncing policy updates into the pod without requiring a restart. Disabled by default so users with Stakater Reloader or similar can continue using their existing setup. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary
values.yamlwith sensible defaults (SSH blocked by default)Changes
Client Deployment
Policy Management
kiwigrid/k8s-sidecaras a restartable init container to watch for policy ConfigMap updates/etc/headscale/policy/policy.jsonto support sidecar volume mountingpolicysection to values.yaml with configurabletagOwners,autoApprovers, andsshsettingsService Account