From dc1562a7de6b7f9a53e457dd1901f80b1d86918c Mon Sep 17 00:00:00 2001 From: "Jens L." Date: Mon, 30 Sep 2024 18:44:03 +0200 Subject: [PATCH 01/14] internal: restore /ping behaviour for embedded outpost (#11568) Signed-off-by: Jens Langhammer --- internal/outpost/proxyv2/proxyv2.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/internal/outpost/proxyv2/proxyv2.go b/internal/outpost/proxyv2/proxyv2.go index cd01290385b6..9bc893b6c2f2 100644 --- a/internal/outpost/proxyv2/proxyv2.go +++ b/internal/outpost/proxyv2/proxyv2.go @@ -6,6 +6,7 @@ import ( "errors" "net" "net/http" + "strings" "sync" sentryhttp "github.com/getsentry/sentry-go/http" @@ -70,12 +71,20 @@ func NewProxyServer(ac *ak.APIController) *ProxyServer { } func (ps *ProxyServer) HandleHost(rw http.ResponseWriter, r *http.Request) bool { + // Always handle requests for outpost paths that should answer regardless of hostname + if strings.HasPrefix(r.URL.Path, "/outpost.goauthentik.io/ping") || + strings.HasPrefix(r.URL.Path, "/outpost.goauthentik.io/static") { + ps.mux.ServeHTTP(rw, r) + return true + } + // lookup app by hostname a, _ := ps.lookupApp(r) if a == nil { return false } + // check if the app should handle this URL, or is setup in proxy mode if a.ShouldHandleURL(r) || a.Mode() == api.PROXYMODE_PROXY { - a.ServeHTTP(rw, r) + ps.mux.ServeHTTP(rw, r) return true } return false From e7698d2c3398f7fa2a4b57789556337789ce3195 Mon Sep 17 00:00:00 2001 From: itsmesid <693151+arevindh@users.noreply.github.com> Date: Mon, 30 Sep 2024 22:32:42 +0530 Subject: [PATCH 02/14] web: add missing id attribute for button in ak-flow-input-password (#11413) Add missing id attribute to button in ak-flow-input-password Signed-off-by: itsmesid <693151+arevindh@users.noreply.github.com> --- web/src/flow/components/ak-flow-password-input.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/flow/components/ak-flow-password-input.ts b/web/src/flow/components/ak-flow-password-input.ts index 59c31a0699df..19e704fa29f6 100644 --- a/web/src/flow/components/ak-flow-password-input.ts +++ b/web/src/flow/components/ak-flow-password-input.ts @@ -161,6 +161,7 @@ export class InputPassword extends AKElement { ${this.renderInput()} ${this.allowShowPassword ? html`