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

Warn about key expiration #255

Merged
merged 4 commits into from
Oct 15, 2023
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions tailscale/rootfs/etc/s6-overlay/s6-rc.d/post-tailscaled/run
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ declare -a routes=()
declare ipinfo
declare login_server
declare tags
declare keyexpiry

function appendarray() {
local -n array=${1}
Expand Down Expand Up @@ -105,4 +106,11 @@ do
sleep 2
done

# Warn about key expiration
if keyexpiry=$(/opt/tailscale status --self=true --peers=false --json | jq -rce '.Self.KeyExpiry'); then
bashio::log.warning "The connection's key will expire on: ${keyexpiry}"
bashio::log.warning "Consider disabling key expiry to avoid losing connection to your Home Assistant device."
bashio::log.warning "Please check your configuration based on the add-on's Documentation under \"Configuration\""
frenck marked this conversation as resolved.
Show resolved Hide resolved
fi

bashio::log.info "Tailscale is running"