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

TSIDP not respecting environment variables #14491

Open
PrymalInstynct opened this issue Dec 28, 2024 · 0 comments
Open

TSIDP not respecting environment variables #14491

PrymalInstynct opened this issue Dec 28, 2024 · 0 comments

Comments

@PrymalInstynct
Copy link

What is the issue?

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?

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant