From 093c2a626b41f920e6c9fa8efbc6e497761cba10 Mon Sep 17 00:00:00 2001 From: mo khan Date: Fri, 4 Jul 2025 12:46:24 -0600 Subject: feat: allow access to sparkle homepage --- src/authorization/cedar_authorizer.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/authorization/cedar_authorizer.rs') diff --git a/src/authorization/cedar_authorizer.rs b/src/authorization/cedar_authorizer.rs index fd27565d..163f5b83 100644 --- a/src/authorization/cedar_authorizer.rs +++ b/src/authorization/cedar_authorizer.rs @@ -70,8 +70,10 @@ impl Authorizer for CedarAuthorizer { None => return false, }; - if http_request.path == "/" { - return true; + if http_request.host == "sparkle.staging.runway.gitlab.net" { + if http_request.method == "GET" && http_request.path == "/" { + return true; + } } let headers = match request -- cgit v1.2.3