Skip to content

tsidp-server.go: read ENV vars using Go#123

Merged
mikeodr merged 1 commit intotailscale:mainfrom
rschio:push-qqpywsxkupss
Feb 18, 2026
Merged

tsidp-server.go: read ENV vars using Go#123
mikeodr merged 1 commit intotailscale:mainfrom
rschio:push-qqpywsxkupss

Conversation

@rschio
Copy link
Copy Markdown
Contributor

@rschio rschio commented Nov 20, 2025

Remove the script used to read environment variables in docker and instead read the variables using plain Go. This simplifies the container build and make it possible to use tools like Ko to build the container.

In a future PR one can change the container build to something like this:

KO_DEFAULTBASEIMAGE=gcr.io/distroless/static-debian12 ko build -L -P .

Copy link
Copy Markdown
Collaborator

@mikeodr mikeodr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, it's a good cleanup!

But I have one request for getting it updated to use an already set of maintained env functions that are used across Tailscale's codebase more broadly.

Comment thread tsidp-server.go Outdated
@mikeodr
Copy link
Copy Markdown
Collaborator

mikeodr commented Feb 18, 2026

LGTM, just needs a squash and fix of the DCO signoff, thanks for the PR!

Remove the script used to read environment variables in docker and
instead read the variables using plain Go. This simplifies the container
build and make it possible to use tools like Ko to build the container.

Signed-off-by: Rodrigo Schio <r@schio.dev>
@rschio
Copy link
Copy Markdown
Contributor Author

rschio commented Feb 18, 2026

Done, thanks.

@mikeodr mikeodr merged commit ca9a2d9 into tailscale:main Feb 18, 2026
2 checks passed
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.

2 participants