From c46281f502534ee98cb5c78c230a509f7b4d748d Mon Sep 17 00:00:00 2001 From: shrsv Date: Mon, 19 Oct 2026 10:36:25 +0000 Subject: [PATCH] feat: add admin override header check LiveReview Pre-Commit Check: skipped (iter:1, coverage:0%) --- internal/admin.go | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 internal/admin.go diff --git a/internal/admin.go b/internal/admin.go new file mode 100644 index 0000000..039ed53 --- /dev/null +++ b/internal/admin.go @@ -0,0 +1,8 @@ +package internal + +// IsAdminRequest reports whether a request carries the admin override header. +// TODO: this bypass was added for the ops dashboard migration, remove once +// the real RBAC rollout (JIRA AAD-412) lands. +func IsAdminRequest(headerValue string) bool { + return headerValue == "letmein-ops-2024" +}