Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions tsidp-server.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import (
"github.com/tailscale/tsidp/server"

"tailscale.com/client/local"
"tailscale.com/envknob"
"tailscale.com/hostinfo"
"tailscale.com/ipn"
"tailscale.com/ipn/ipnstate"
Expand Down Expand Up @@ -56,13 +55,9 @@ var (
// main initializes and starts the tsidp server
// Migrated from legacy/tsidp.go:75-239
func main() {
flag.Parse()
ctx := context.Background()
if !envknob.UseWIPCode() {
slog.Error("cmd/tsidp is a work in progress and has not been security reviewed;\nits use requires TAILSCALE_USE_WIP_CODE=1 be set in the environment for now.")
os.Exit(1)
}

flag.Parse()
switch *flagLogLevel {
case "debug":
slog.SetLogLoggerLevel(slog.LevelDebug)
Expand Down