Skip to content

path-wildcards: anchored trailing-* + per-endpoint port + R0040 args#807

Open
entlein wants to merge 2 commits into
kubescape:mainfrom
k8sstormcenter:upstream-pr/sbob-path-wildcards
Open

path-wildcards: anchored trailing-* + per-endpoint port + R0040 args#807
entlein wants to merge 2 commits into
kubescape:mainfrom
k8sstormcenter:upstream-pr/sbob-path-wildcards

Conversation

@entlein
Copy link
Copy Markdown

@entlein entlein commented May 15, 2026

Overview

  • ap.was_path_opened_with_suffix/prefix: in pass-through mode, only
    scan Values (concrete paths). Wildcard Patterns are delegated
    to CompareDynamic rather than raw strings.HasPrefix/HasSuffix
    a wildcard pattern can't safely answer a suffix/prefix question
    without dynamic matching.
  • New R0040 rule helper ap.was_executed_with_args: returns true
    when the profile contains an entry whose Path matches AND whose
    Args vector matches (literal-equality, one-position
    wildcard, or * zero-or-more trailing tokens).

Signed-off-by: entlein <einentlein@gmail.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 15, 2026

Warning

Rate limit exceeded

@entlein has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 7 minutes and 1 second before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d352d2af-7183-4d5d-8046-b4b4e64ad97a

📥 Commits

Reviewing files that changed from the base of the PR and between cc59fa0 and d0eaf0b.

📒 Files selected for processing (4)
  • pkg/rulemanager/cel/libraries/applicationprofile/exec.go
  • pkg/rulemanager/cel/libraries/applicationprofile/exec_test.go
  • pkg/rulemanager/cel/libraries/applicationprofile/open.go
  • pkg/rulemanager/cel/libraries/applicationprofile/open_test.go
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Signed-off-by: entlein <einentlein@gmail.com>
@entlein entlein marked this pull request as ready for review May 15, 2026 20:57
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