Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(container): add support for verify-clients #71

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ChandonPierre
Copy link
Collaborator

Adds support for derper --verify-clients by adding tailscaled and tailscale.

The daemon is backgrounded before calling the main derper process.

Health Check periodically validates if the client is online from the Tailscale control plane, which should catch the daemon exiting.

Closes #70

@ChandonPierre ChandonPierre requested a review from a team as a code owner November 14, 2024 06:05
# Start tailscaled and call tailscale up if we need to verify clients
if [[ $DERP_VERIFY_CLIENTS == "true" ]]; then
# Start and background tailscaled
setsid $TSD_CMD > /dev/stdout 2> /dev/stderr &
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The canonically correct way to do this is probably to run tailscaled in a separate container and share the socket with the derper container 🤔

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.

Client verification
1 participant