Skip to content

feat(ai-sandbox): add apply-ai-sandbox user-input command - #106

Merged
itsmeital merged 1 commit into
mainfrom
feat/ai-sandbox-enable-api
Jun 29, 2026
Merged

itsmeital merged 1 commit into
mainfrom
feat/ai-sandbox-enable-api

Conversation

@itsmeital

@itsmeital itsmeital commented Jun 29, 2026 •

Copy link
Copy Markdown
Contributor

What

Adds UserInputCommandApplyAiSandbox = "apply-ai-sandbox" to pulsar/common/userinput.

Why

Base contract for the AI-sandbox enable (add-to-sandbox) write-path. It mirrors the existing apply-seccomp-profile / apply-network-policy commands:

  • cadashboardbe produces it on the user-input topic (payload {resourceHash}).
  • event-ingester-service consumes it, resolves the workload, and applies the kubescape.io/sandbox=true pod-template label via the synchronizer.

Notes

Pure constant addition — no behavior change in this repo. Consumers (cadashboardbe, event-ingester-service) pin to this commit until release.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Added a new user input command option, apply-ai-sandbox, to the available command set.

@itsmeital itsmeital added the ai-assisted Created through Armosec AI tooling (armosec-shared-rules plugin) label Jun 29, 2026
@coderabbitai

coderabbitai Bot commented Jun 29, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@itsmeital, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 41 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d58ef861-c262-4d4e-9931-cb84188350bb

📥 Commits

Reviewing files that changed from the base of the PR and between d00d002 and 80414f7.

📒 Files selected for processing (1)
  • pulsar/common/userinput/commands.go
📝 Walkthrough

Walkthrough

A single new constant UserInputCommandApplyAiSandbox with value "apply-ai-sandbox" is added to the UserInputCommand constants block in pulsar/common/userinput/commands.go.

Changes

New command constant

Layer / File(s) Summary
UserInputCommandApplyAiSandbox constant
pulsar/common/userinput/commands.go
Adds UserInputCommandApplyAiSandbox = UserInputCommand("apply-ai-sandbox") to the existing constants block.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

A bunny hops in, drops one line flat,
"apply-ai-sandbox" — fancy that!
One constant planted, neat and true,
The command garden grows anew.
🐇✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the new apply-ai-sandbox user-input command added in this change.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/ai-sandbox-enable-api

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.

@github-actions

Copy link
Copy Markdown

Summary:

  • License scan: failure
  • Credentials scan: skipped
  • Vulnerabilities scan: skipped
  • Unit test: success
  • Go linting: success

New UserInputCommandApplyAiSandbox constant for the AI-sandbox enable
write-path, mirroring apply-seccomp-profile / apply-network-policy.
cadashboardbe produces it; event-ingester-service consumes it to label
the workload pod-template (kubescape.io/sandbox=true) via the synchronizer.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: itsmeital <meitalr@armosec.io>
@itsmeital
itsmeital force-pushed the feat/ai-sandbox-enable-api branch from d00d002 to 80414f7 Compare June 29, 2026 12:14
@github-actions

Copy link
Copy Markdown

Summary:

  • License scan: failure
  • Credentials scan: skipped
  • Vulnerabilities scan: skipped
  • Unit test: success
  • Go linting: success

@itsmeital
itsmeital merged commit aaccfb2 into main Jun 29, 2026
8 checks passed
@itsmeital
itsmeital deleted the feat/ai-sandbox-enable-api branch June 29, 2026 12:32
@matthyx matthyx moved this to To Archive in KS PRs tracking Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-assisted Created through Armosec AI tooling (armosec-shared-rules plugin)

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants