summaryrefslogtreecommitdiff
path: root/src/authorization/cedar_authorizer.rs
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-07-04 12:46:24 -0600
committermo khan <mo@mokhan.ca>2025-07-04 12:46:24 -0600
commit093c2a626b41f920e6c9fa8efbc6e497761cba10 (patch)
tree5187f7fffb7daa6ab57ccbc7e12e4407cece4a9b /src/authorization/cedar_authorizer.rs
parentf8549af8d64b551449957c3004b74ed0bf69c593 (diff)
feat: allow access to sparkle homepage
Diffstat (limited to 'src/authorization/cedar_authorizer.rs')
-rw-r--r--src/authorization/cedar_authorizer.rs6
1 files changed, 4 insertions, 2 deletions
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