summaryrefslogtreecommitdiff
path: root/pkg/authz
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-08-14 11:54:52 -0600
committermo khan <mo@mokhan.ca>2025-08-14 11:54:52 -0600
commit9e55e65ac5eb6ff645880ee253a33f6ab138b615 (patch)
tree3a55344b8c589f52687200c0beb5cd92688014fa /pkg/authz
parent3f228b16c758d377566f11d2d328d1ccf658a2ad (diff)
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
Diffstat (limited to 'pkg/authz')
-rw-r--r--pkg/authz/local_check_service.go31
-rw-r--r--pkg/authz/server_test.go1
2 files changed, 15 insertions, 17 deletions
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"}},