split authkey setup script and invoke during poststart#56
Open
rajsinghtech wants to merge 1 commit into
Open
Conversation
rajsinghtech
force-pushed
the
rajsinghtech/poststart
branch
from
July 12, 2025 01:26
dd9d79d to
c1dc556
Compare
|
Just going to throw it out there that this worked for me as well. Would be nice to get it into the latest release. |
|
In my Codespace, the Feature wasn’t seeing TS_AUTH_KEY or CODESPACE_NAME during the entrypoint either, even though both were available later in interactive shells. Adding the following to the consuming repository’s devcontainer.json made the existing Feature work without any modifications: After doing this, the Feature successfully auto-authenticated with Tailscale and used CODESPACE_NAME as the hostname. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The devcontainer was failing to authenticate automatically with
TS_AUTH_KEYwhen env var was setup. The root cause was a timing issue:This meant
TS_AUTH_KEYwas undefined when the authentication logic ran.Changes
postCreateCommandto run auth scriptfixes: #53