fix: restore tree dropped by 6d224861; land stem95su gdrive-sync (10m) [ci skip]
6d224861 came from a --no-checkout worktree whose empty index made the
commit drop every file except two. This restores 05b50d2b's full tree and
correctly adds stacks/stem95su/gdrive-sync.tf + the service-catalog stem95su
entry. Forward-only (parent=6d224861, no force-push); [ci skip] since the
live infra was never applied from the broken commit.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
6d224861c4
commit
fd0f4a0365
1166 changed files with 358546 additions and 0 deletions
13
scripts/t3-mint
Normal file
13
scripts/t3-mint
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
# Mint a one-time t3 pairing token for a mapped OS user.
|
||||
# Runs as root via the scoped sudoers entry for the t3-dispatch service user.
|
||||
# Validates the requested user is an actual t3 OS user (a value on the RHS of
|
||||
# /etc/ttyd-user-map) before minting as that user. Prints the t3 CLI JSON.
|
||||
set -euo pipefail
|
||||
os_user="${1:-}"
|
||||
[[ "$os_user" =~ ^[a-z_][a-z0-9_-]{0,31}$ ]] || { echo "invalid user" >&2; exit 2; }
|
||||
# Must be a mapped t3 OS user (RHS of a non-comment "authentik=os" line).
|
||||
awk -F= '!/^[[:space:]]*#/ && NF==2 { gsub(/[[:space:]]/, "", $2); print $2 }' /etc/ttyd-user-map \
|
||||
| grep -qxF "$os_user" || { echo "user not mapped" >&2; exit 3; }
|
||||
exec runuser -u "$os_user" -- /usr/bin/t3 auth pairing create \
|
||||
--base-dir "/home/${os_user}/.t3" --ttl 5m --json
|
||||
Loading…
Add table
Add a link
Reference in a new issue