From 9e55e65ac5eb6ff645880ee253a33f6ab138b615 Mon Sep 17 00:00:00 2001 From: mo khan Date: Thu, 14 Aug 2025 11:54:52 -0600 Subject: Fix the broken build by running pg as a separate container. Improve shell scripts and remove /sparkles/restore endpoint - Add error handling and debugging to shell scripts with `set -e` and `DEBUG` flag - Ensure scripts run from project root with `cd "$(dirname "$0")/.."` - Remove `/sparkles/restore` endpoint from public routes and Envoy config - Add Postgres test container support for integration tests - Update CI configuration with newer Runway version and improved test setup - Simplify Makefile by removing redundant commands ------- :robot: Commit message generated by GitLab Duo --- pkg/authz/local_check_service.go | 31 +++++++++++++++---------------- pkg/authz/server_test.go | 1 - 2 files changed, 15 insertions(+), 17 deletions(-) (limited to 'pkg/authz') diff --git a/pkg/authz/local_check_service.go b/pkg/authz/local_check_service.go index e165143..33c669c 100644 --- a/pkg/authz/local_check_service.go +++ b/pkg/authz/local_check_service.go @@ -16,22 +16,21 @@ import ( ) var public map[string]bool = map[string]bool{ - "GET:/": true, - "GET:/application.js": true, - "GET:/callback": true, - "GET:/dashboard/nav": true, - "GET:/favicon.ico": true, - "GET:/favicon.png": true, - "GET:/health": true, - "GET:/htmx.js": true, - "GET:/index.html": true, - "GET:/logo.png": true, - "GET:/pico.min.css": true, - "GET:/signout": true, - "GET:/sparkle": true, - "GET:/sparkles": true, - "GET:/vue.global.js": true, - "POST:/sparkles/restore": true, + "GET:/": true, + "GET:/application.js": true, + "GET:/callback": true, + "GET:/dashboard/nav": true, + "GET:/favicon.ico": true, + "GET:/favicon.png": true, + "GET:/health": true, + "GET:/htmx.js": true, + "GET:/index.html": true, + "GET:/logo.png": true, + "GET:/pico.min.css": true, + "GET:/signout": true, + "GET:/sparkle": true, + "GET:/sparkles": true, + "GET:/vue.global.js": true, } type LocalCheckService struct { diff --git a/pkg/authz/server_test.go b/pkg/authz/server_test.go index 9da2800..7d63c5c 100644 --- a/pkg/authz/server_test.go +++ b/pkg/authz/server_test.go @@ -79,7 +79,6 @@ func TestServer(t *testing.T) { {status: codes.OK, http: &HTTPRequest{Method: "GET", Path: "/sparkles"}}, {status: codes.OK, http: &HTTPRequest{Method: "GET", Path: "/vue.global.js"}}, {status: codes.OK, http: &HTTPRequest{Method: "POST", Path: "/sparkles", Headers: loggedInHeaders}}, - {status: codes.OK, http: &HTTPRequest{Method: "POST", Path: "/sparkles/restore"}}, {status: codes.PermissionDenied, http: &HTTPRequest{Method: "GET", Path: "/dashboard"}}, {status: codes.PermissionDenied, http: &HTTPRequest{Method: "GET", Path: "/dashboard", Headers: invalidHeaders}}, {status: codes.PermissionDenied, http: &HTTPRequest{Method: "POST", Path: "/sparkles"}}, -- cgit v1.2.3