From 0f120f693dec32bafbad8ac195d14364076bfead Mon Sep 17 00:00:00 2001 From: Victor Lyuboslavsky <2685025+getvictor@users.noreply.github.com> Date: Sun, 14 Sep 2025 12:32:24 -0500 Subject: [PATCH] Remove unused FLEET_TEST_PAGE_PATH test code (#32962) Fixes #32961 # Checklist for submitter - [x] QA'd all new/changed functionality manually --- cmd/fleet/serve.go | 17 ------ tools/app/authtest.html | 130 ---------------------------------------- 2 files changed, 147 deletions(-) delete mode 100644 tools/app/authtest.html diff --git a/cmd/fleet/serve.go b/cmd/fleet/serve.go index 1816aab9eb..a598206df8 100644 --- a/cmd/fleet/serve.go +++ b/cmd/fleet/serve.go @@ -1443,23 +1443,6 @@ the way that the Fleet server works. } rootMux.Handle("/debug/", debugHandler) - if path, ok := os.LookupEnv("FLEET_TEST_PAGE_PATH"); ok { - // test that we can load this - _, err := os.ReadFile(path) - if err != nil { - initFatal(err, "loading FLEET_TEST_PAGE_PATH") - } - rootMux.HandleFunc("/test", func(rw http.ResponseWriter, req *http.Request) { - testPage, err := os.ReadFile(path) - if err != nil { - rw.WriteHeader(http.StatusNotFound) - return - } - rw.Write(testPage) //nolint:errcheck - rw.WriteHeader(http.StatusOK) - }) - } - if debug { // Add debug endpoints with a random // authorization token diff --git a/tools/app/authtest.html b/tools/app/authtest.html deleted file mode 100644 index 1634f0f6a6..0000000000 --- a/tools/app/authtest.html +++ /dev/null @@ -1,130 +0,0 @@ - - - - - - - - - -

Single sign on test page

-
- This page is used to test single sign on identity providers. The - Relay URL field contains the URL of the Kolide resource - to invoke after authentication with the IDP. It defaults to this page. - Click Request Authorization to trigger the - authorization process. The browser's javascript console may contain useful - debugging information. The - SAML Tracer - add-on for Firefox is also useful in diagnosing problems with a particular - identity provider. -
-
-
Relay URL:
-
- -
-
-
-

Request Authorization

-
- - -