Skip to content

kbs: match regex ACLs against request paths - #1602

Open
noeljackson wants to merge 1 commit into
confidential-containers:mainfrom
noeljackson:fix/admin-regex-acl-request-path
Open

kbs: match regex ACLs against request paths#1602
noeljackson wants to merge 1 commit into
confidential-containers:mainfrom
noeljackson:fix/admin-regex-acl-request-path

Conversation

@noeljackson

Copy link
Copy Markdown

Regex ACL rules describe /kbs/... paths, but the authorizer currently compares them with the whole URI. An absolute-form URI therefore misses an otherwise valid rule.

This matches on request.uri().path() and adds regression coverage for an absolute URI.

Tested with:

  • cargo test -p kbs --no-default-features --test admin_regex_acl

@noeljackson
noeljackson requested a review from a team as a code owner August 29, 2026 12:12
Signed-off-by: Noel <n@noeljackson.com>
@noeljackson
noeljackson force-pushed the fix/admin-regex-acl-request-path branch from fc80a5a to 8bd6afa Compare August 29, 2026 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant