Repository navigation
fix(authz): honor namespace bypasses and prevent existence leaks - #1154
Merged
oliverbaehler merged 2 commits intoNov 19, 2026
Merged
Conversation
Signed-off-by: Oliver Baehler <oliver@sudo-i.net>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Namespace self-reviews can expose namespace existence across tenant boundaries and incorrectly deny GETs permitted through allowedPaths or publicPaths bypasses.
2 open issues
What changed in this PR
This PR expands namespace access coverage and aligns named namespace self-reviews with the proxy’s existing namespace GET module.
Changes:
- Adds tenant-aware end-to-end tests for global namespace grants, isolation, updates, revocation, and disabled caching.
- Reuses namespace GET authorization for named self-reviews, with unit tests and benchmarks.
- Adds read-only dependency checks and e2e compilation before cluster provisioning.
Validation was limited to code inspection; tests and benchmarks were not run.
| File | Description |
|---|---|
| Taskfile.yml | Checks e2e compilation and enforces read-only module dependencies. |
| internal/webserver/webserver.go | Retains the namespace GET module for self-review evaluation. |
| internal/webserver/namespace_authorization.go | Evaluates named namespace self-reviews through the GET module. |
| internal/webserver/namespace_authorization_test.go | Tests review decisions, response formats, concurrency, and lookup counts. |
| internal/webserver/namespace_authorization_bench_test.go | Benchmarks namespace review transformations and read counts. |
| internal/webserver/global_proxy.go | Reuses the shared resource-name route constant. |
| internal/modules/namespace/namespace_test.go | Adds namespace reader-error and forwarding coverage. |
| internal/authorization/middleware.go | Exports the shared self-review grant helper. |
| go.sum | Removes older checksums and adds YAML dependency checksums. |
| e2e/README.md | Documents namespace scenarios and runner checks. |
| e2e/namespace_global_rules_test.go | Adds namespace grant, isolation, lifecycle, and latency scenarios. |
| e2e/global_access_test.go | Allows extra arguments for isolated proxy instances. |
Review effort: Balanced
Signed-off-by: Oliver Baehler <oliver@sudo-i.net>
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Human review is needed for security-sensitive native RBAC overrides because real-cluster bypass, reflection revocation, uncached behavior, and latency validation results were unavailable.
No open issues 🎉
2 resolved since last review
Review effort: Balanced
Svarrogh1337
approved these changes
Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

No description provided.