Split TLS options for gRPC and HTTP #622

Closed
opened 2025-12-29 02:21:17 +01:00 by adam · 3 comments
Owner

Originally created by @K3das on GitHub (Feb 2, 2024).

Why

Currently for a remote CLI you have no choice but to setup TLS. As a result, the public HTTP endpoints also end up encrypted, and in some configurations this sacrifices significant observability (currently my linkerd2 sidecar containers are unable to inspect traffic, monitor endpoint performance, and enforce per-route ACLs). While workarounds are possible (for example running headscale without TLS, and a proxy terminating TLS for gRPC), they would be far from ideal.

Description

One solution is adding split TLS options - to allow a user to enable TLS for gRPC, while not enabling it for other endpoints.

I'm happy to work on this if it's an acceptable change.

Originally created by @K3das on GitHub (Feb 2, 2024). ## Why Currently for a remote CLI you have no choice but to setup TLS. As a result, the public HTTP endpoints also end up encrypted, and in some configurations this sacrifices significant observability (currently my linkerd2 sidecar containers are unable to inspect traffic, monitor endpoint performance, and enforce per-route ACLs). While workarounds are possible (for example running headscale without TLS, and a proxy terminating TLS for gRPC), they would be far from ideal. ## Description One solution is adding split TLS options - to allow a user to enable TLS for gRPC, while not enabling it for other endpoints. I'm happy to work on this if it's an acceptable change.
adam added the enhancementstale labels 2025-12-29 02:21:17 +01:00
adam closed this issue 2025-12-29 02:21:17 +01:00
Author
Owner

@ohdearaugustin commented on GitHub (Mar 15, 2024):

I see no issues if we split the configuration, as long it is a non breaking change.

@ohdearaugustin commented on GitHub (Mar 15, 2024): I see no issues if we split the configuration, as long it is a non breaking change.
Author
Owner

@github-actions[bot] commented on GitHub (Jun 13, 2024):

This issue is stale because it has been open for 90 days with no activity.

@github-actions[bot] commented on GitHub (Jun 13, 2024): This issue is stale because it has been open for 90 days with no activity.
Author
Owner

@github-actions[bot] commented on GitHub (Jun 21, 2024):

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions[bot] commented on GitHub (Jun 21, 2024): This issue was closed because it has been inactive for 14 days since being marked as stale.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#622