Skip to content

split authkey setup script and invoke during poststart #56

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

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

Conversation

rajsinghtech
Copy link

@rajsinghtech rajsinghtech commented Jul 12, 2025

The devcontainer was failing to authenticate automatically with TS_AUTH_KEY when env var was setup. The root cause was a timing issue:

  • Build Phase: Feature installs and entrypoint runs (secrets NOT available)
  • Runtime Phase: GitHub Codespaces injects secrets (too late for entrypoint)

This meant TS_AUTH_KEY was undefined when the authentication logic ran.
Changes

  • Added postCreateCommand to run auth script
  • Removed auth logic from entrypoint
  • Created new script for authentication

fixes: #53

@rajsinghtech rajsinghtech force-pushed the rajsinghtech/poststart branch from dd9d79d to c1dc556 Compare July 12, 2025 01:26
@rajsinghtech rajsinghtech changed the title add tailscaled-auth-setup script for post-creation authentication split authkey setup script and invoke during poststart Jul 12, 2025
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.

never login with key env
1 participant