From 6c6f1a7225022ae285bd6603aa0a2a81afc8baf3 Mon Sep 17 00:00:00 2001 From: mo khan Date: Fri, 4 Jul 2025 18:39:27 -0600 Subject: refactor: move hard coded checks with cedar policy --- etc/authzd/policy0.cedar | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'etc') diff --git a/etc/authzd/policy0.cedar b/etc/authzd/policy0.cedar index 034e81b5..56457622 100644 --- a/etc/authzd/policy0.cedar +++ b/etc/authzd/policy0.cedar @@ -18,3 +18,15 @@ when { context.path like "*.html" ) }; + +permit(principal, action, resource) +when { + context has host && context has method && context has path && ( + context.host == "sparkle.staging.runway.gitlab.net" && + context.method == "GET" && ( + context.path == "/" || + context.path == "/app.js" || + context.path == "/callback" + ) + ) +}; -- cgit v1.2.3