You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The TS_HOSTNAME and TS_STATE_DIR environment variables do not appear to be pulled into the running config of tsidp when it is started.
I created a project https://github.com/PrymalInstynct/container-tsidp to run tsidp as a container, and have found that the above environment variables are not being seen when the tsidp application starts inside of the container.
TS_STATE_DIR Issue
In the projects Containerfile I am setting the environment variable to /config/tsidp. I would expect this to be the path where the state files are placed but as you can see in the log below they are being put into /root/.
TS_HOSTNAME Issue
In the projects Containerfile I am setting the environment variable to tsidp. I would expect the tsnet hostname to be tsidp when it connects to the network but as you can see in the log it is being set to idp
Log
tailscale-tsidp | 2024/12/28 20:44:19 tsnet running state path /root/.config/tsnet-tsidp/tailscaled.state
tailscale-tsidp | 2024/12/28 20:44:19 tsnet starting with hostname "idp", varRoot "/root/.config/tsnet-tsidp"
tailscale-tsidp | 2024/12/28 20:44:19 LocalBackend state is NeedsLogin; running StartLoginInteractive...
tailscale-tsidp | 2024/12/28 20:44:23 Running tsidp at https://idp.xxxxx-yyyy.ts.net ...
tailscale-tsidp | 2024/12/28 20:44:24 AuthLoop: state is Running; done
Steps to reproduce
Use the projects compose.yml and a new Authkey with docker-compose or podman-compose to start the tsidp container image.
Verify the hostname assigned to the tsidp container in your Tailscale admin console
Are there any recent changes that introduced the issue?
What is the issue?
The
TS_HOSTNAME
andTS_STATE_DIR
environment variables do not appear to be pulled into the running config of tsidp when it is started.I created a project https://github.com/PrymalInstynct/container-tsidp to run tsidp as a container, and have found that the above environment variables are not being seen when the tsidp application starts inside of the container.
TS_STATE_DIR Issue
In the projects Containerfile I am setting the environment variable to
/config/tsidp
. I would expect this to be the path where the state files are placed but as you can see in the log below they are being put into/root/
.TS_HOSTNAME Issue
In the projects Containerfile I am setting the environment variable to
tsidp
. I would expect the tsnet hostname to betsidp
when it connects to the network but as you can see in the log it is being set toidp
Log
Steps to reproduce
Use the projects compose.yml and a new Authkey with docker-compose or podman-compose to start the tsidp container image.
Verify the hostname assigned to the tsidp container in your Tailscale admin console
Are there any recent changes that introduced the issue?
Not that I am aware of
OS
Linux
OS version
No response
Tailscale version
1.78.1
Other software
Docker version 25.0.2, build 29cf629
Bug report
BUG-f5c37cbfb7564ad010d81aa25ce9e6108360c2efd8b34a8c3269cdf0d8abc7fe-20241228205917Z-04dbfbc6991cabb2
The text was updated successfully, but these errors were encountered: