Skip to content

feat: sandbox agent infrastructure — CI, Helm, Ansible, scripts - #979

Merged
pdettori merged 4 commits into
mainfrom
feat/sandbox-k1-infra
Apr 10, 2026
Merged

pdettori merged 4 commits into
mainfrom
feat/sandbox-k1-infra

Conversation

@Ladas

@Ladas Ladas commented Mar 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • CI scripts for sandbox agent deployment, LiteLLM, platform image builds
  • Helm chart updates: Keycloak realm init, random admin password, container registry
  • Ansible installer: post-install tasks, pipeline templates, operator workarounds
  • Integration CRD template, expanded RBAC, HyperShift gVisor support

22 files | Part of Sandbox Agent streaming PR series

Test plan

  • helm template renders cleanly
  • CI scripts run without errors on HyperShift cluster

@Ladas

Ladas commented Mar 16, 2026

Copy link
Copy Markdown
Contributor Author

/retest

@Ladas
Ladas force-pushed the feat/sandbox-k1-infra branch from 93a23fd to ff759ed Compare March 17, 2026 06:56
@Ladas
Ladas force-pushed the feat/sandbox-k1-infra branch 2 times, most recently from 00bd749 to a4a2269 Compare March 19, 2026 15:26
@Ladas
Ladas force-pushed the feat/sandbox-k1-infra branch 4 times, most recently from 1456d50 to 738a6bc Compare March 21, 2026 08:01
@Ladas
Ladas force-pushed the feat/sandbox-k1-infra branch from 738a6bc to 6e79e26 Compare March 24, 2026 07:27
@Ladas
Ladas force-pushed the feat/sandbox-k1-infra branch 2 times, most recently from f453000 to dba8338 Compare April 7, 2026 19:47
@Ladas
Ladas marked this pull request as ready for review April 8, 2026 06:28
@Ladas

Ladas commented Apr 8, 2026

Copy link
Copy Markdown
Contributor Author

/run-e2e

@github-actions github-actions Bot added the safe-to-test Maintainer reviewed - safe to run E2E tests label Apr 8, 2026
@github-actions

github-actions Bot commented Apr 8, 2026

Copy link
Copy Markdown

E2E HyperShift Tests Started

Triggered by: @Ladas
Commit: dba8338586c17b860be70ddbfc215461b8f11df9
Workflow Run: View logs

Tests are running on OpenShift 4.20.11. This typically takes 30-45 minutes.


To re-run tests after new commits, comment /run-e2e again.

@github-actions github-actions Bot removed the safe-to-test Maintainer reviewed - safe to run E2E tests label Apr 8, 2026
@github-actions

github-actions Bot commented Apr 8, 2026

Copy link
Copy Markdown

New Commits Detected

The safe-to-test label has been automatically removed because new commits were pushed.

New HEAD: cfa6ef9

For maintainers: Please review the new changes and comment /run-e2e to trigger E2E tests.

Security checklist

Before running E2E tests, verify the PR does NOT contain:

  • Changes to .github/workflows/ that bypass security
  • Changes to .github/scripts/ that could exfiltrate secrets
  • curl, wget, or nc commands to external URLs in scripts
  • Base64 encoding of environment variables
  • Printing secrets to logs (echo $SECRET)
  • Suspicious package installations

This is an automated security measure to prevent TOCTOU attacks

@github-actions

github-actions Bot commented Apr 8, 2026

Copy link
Copy Markdown

E2E HyperShift Tests Failed

Commit: dba8338586c17b860be70ddbfc215461b8f11df9
Result: Tests failed - please check the logs
Workflow Run: View logs


To re-run tests after fixing issues, comment /run-e2e again.

@Ladas

Ladas commented Apr 8, 2026

Copy link
Copy Markdown
Contributor Author

/run-e2e

@github-actions github-actions Bot added the safe-to-test Maintainer reviewed - safe to run E2E tests label Apr 8, 2026
@github-actions

github-actions Bot commented Apr 8, 2026

Copy link
Copy Markdown

E2E HyperShift Tests Started

Triggered by: @Ladas
Commit: cfa6ef96e8e1e1d635f01cb15955bed1070cbbe3
Workflow Run: View logs

Tests are running on OpenShift 4.20.11. This typically takes 30-45 minutes.


To re-run tests after new commits, comment /run-e2e again.

@github-actions

github-actions Bot commented Apr 8, 2026

Copy link
Copy Markdown

E2E HyperShift Tests Failed

Commit: cfa6ef96e8e1e1d635f01cb15955bed1070cbbe3
Result: Tests failed - please check the logs
Workflow Run: View logs


To re-run tests after fixing issues, comment /run-e2e again.

@github-actions

github-actions Bot commented Apr 8, 2026

Copy link
Copy Markdown

New Commits Detected

The safe-to-test label has been automatically removed because new commits were pushed.

New HEAD: 30d744d

For maintainers: Please review the new changes and comment /run-e2e to trigger E2E tests.

Security checklist

Before running E2E tests, verify the PR does NOT contain:

  • Changes to .github/workflows/ that bypass security
  • Changes to .github/scripts/ that could exfiltrate secrets
  • curl, wget, or nc commands to external URLs in scripts
  • Base64 encoding of environment variables
  • Printing secrets to logs (echo $SECRET)
  • Suspicious package installations

This is an automated security measure to prevent TOCTOU attacks

@github-actions github-actions Bot removed the safe-to-test Maintainer reviewed - safe to run E2E tests label Apr 9, 2026
@github-actions

github-actions Bot commented Apr 9, 2026

Copy link
Copy Markdown

New Commits Detected

The safe-to-test label has been automatically removed because new commits were pushed.

New HEAD: d5e61dc

For maintainers: Please review the new changes and comment /run-e2e to trigger E2E tests.

Security checklist

Before running E2E tests, verify the PR does NOT contain:

  • Changes to .github/workflows/ that bypass security
  • Changes to .github/scripts/ that could exfiltrate secrets
  • curl, wget, or nc commands to external URLs in scripts
  • Base64 encoding of environment variables
  • Printing secrets to logs (echo $SECRET)
  • Suspicious package installations

This is an automated security measure to prevent TOCTOU attacks

@Ladas

Ladas commented Apr 9, 2026

Copy link
Copy Markdown
Contributor Author

/run-e2e

@github-actions github-actions Bot added the safe-to-test Maintainer reviewed - safe to run E2E tests label Apr 9, 2026
@github-actions

github-actions Bot commented Apr 9, 2026

Copy link
Copy Markdown

E2E HyperShift Tests Started

Triggered by: @Ladas
Commit: d5e61dcf0404ed681dec33d1c403947b8a123ae1
Workflow Run: View logs

Tests are running on OpenShift 4.20.11. This typically takes 30-45 minutes.


To re-run tests after new commits, comment /run-e2e again.

@github-actions

github-actions Bot commented Apr 9, 2026

Copy link
Copy Markdown

E2E HyperShift Tests Failed

Commit: d5e61dcf0404ed681dec33d1c403947b8a123ae1
Result: Tests failed - please check the logs
Workflow Run: View logs


To re-run tests after fixing issues, comment /run-e2e again.

@pdettori pdettori left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

PR adds sandbox agent infrastructure: 6 new CI scripts, 2 new Helm templates (Integration CRD, Keycloak realm init), and updates to weather agent deployment and LiteLLM config.

Areas reviewed: Shell scripts, Helm/K8s, YAML, deployment manifests
Commits: 2 commits, all signed-off ✓
CI: Static checks all pass. Deploy & Test and E2E HyperShift failing.

Two must-fix items block merge:

  1. Integration CRD needs a feature flag guard (repo policy requires all new features gated, disabled by default)
  2. Hardcoded external LLM endpoint in weather deployment won't work outside the author's environment

@@ -0,0 +1,146 @@
apiVersion: apiextensions.k8s.io/v1

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

must-fix: This CRD has no Helm conditional guard — it's always installed on every helm install. Per repo policy, new features must be gated behind a feature flag disabled by default.

Wrap in {{- if .Values.integrations.enabled }} (or similar), defaulting to false in values.yaml.

value: "http://weather-tool-mcp.team1.svc.cluster.local:8000/mcp"
- name: LLM_API_BASE
value: "http://dockerhost:11434/v1"
value: "https://litellm-prod.apps.maas.redhatworkshops.io/v1"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

must-fix: LLM_API_BASE is hardcoded to https://litellm-prod.apps.maas.redhatworkshops.io/v1 — an external endpoint specific to one environment. This won't work for other deployments (Kind, other OCP clusters).

Consider using a valueFrom (ConfigMap or env var), or at minimum mark this as a dev-only value with a TODO to parameterize.

{
"username": "dev-user",
"enabled": true,
"emailVerified": true,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: The Kind path uses hardcoded plain-text passwords ("admin", "dev-user", "ns-admin") in the ConfigMap JSON, while the OCP path correctly generates random passwords with randAlphaNum. Consider aligning Kind to also use random passwords, or add a comment explaining this is intentional for local-dev-only convenience.

ADMIN_ROLE_ID=\$($KCADM get roles --config /tmp/kc/kcadm.config -r master \
-q name=admin --fields id --format csv --noquotes 2>/dev/null || echo '')
USER_ID=\$($KCADM get users --config /tmp/kc/kcadm.config -r master \
-q username=$DESIRED_USER --fields id --format csv --noquotes 2>/dev/null || echo '')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: $DESIRED_USER and $DESIRED_PASS expand unquoted inside this kubectl exec -- bash -c string. If the generated password contains shell metacharacters (the openssl rand on line 43 uses tr -dc 'a-zA-Z0-9' so it's safe today, but fragile if someone changes that). Consider quoting these expansions.

log_success "Permanent admin user ensured: $DESIRED_USER/$DESIRED_PASS"

# ── Step 5: Create demo realm ────────────────────────────────────────────────
log_info "Ensuring demo realm exists..."

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Typo — --uusername (double u) should be --username.

log_info "Using Kind/Kubernetes Shipwright Build"
fi

AGENT_EXAMPLES_BRANCH="${AGENT_EXAMPLES_BRANCH:-fix/weather-tool-resilience}"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Default branch is fix/weather-tool-resilience — this should revert to main once agent-examples#222 merges, otherwise all CI will silently pin to a feature branch. Add a TODO or link to the tracking issue.

Comment thread deployments/litellm/deployment.yaml Outdated
containers:
- name: litellm
# TODO(#1126): Build custom LiteLLM image to remove anyuid SCC requirement
# TODO: Build a custom LiteLLM image that relocates Prisma cache from

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: The rewritten TODO comment lost the issue reference — was TODO(#1126), now just TODO:. Keep the issue number so it stays discoverable via search.

@Ladas

Ladas commented Apr 9, 2026

Copy link
Copy Markdown
Contributor Author

/run-e2e

@github-actions

github-actions Bot commented Apr 9, 2026

Copy link
Copy Markdown

E2E HyperShift Tests Started

Triggered by: @Ladas
Commit: d5e61dcf0404ed681dec33d1c403947b8a123ae1
Workflow Run: View logs

Tests are running on OpenShift 4.20.11. This typically takes 30-45 minutes.


To re-run tests after new commits, comment /run-e2e again.

@github-actions

github-actions Bot commented Apr 9, 2026

Copy link
Copy Markdown

E2E HyperShift Tests Failed

Commit: d5e61dcf0404ed681dec33d1c403947b8a123ae1
Result: Tests failed - please check the logs
Workflow Run: View logs


To re-run tests after fixing issues, comment /run-e2e again.

@github-actions github-actions Bot removed the safe-to-test Maintainer reviewed - safe to run E2E tests label Apr 10, 2026
@github-actions

Copy link
Copy Markdown

New Commits Detected

The safe-to-test label has been automatically removed because new commits were pushed.

New HEAD: 095f85a

For maintainers: Please review the new changes and comment /run-e2e to trigger E2E tests.

Security checklist

Before running E2E tests, verify the PR does NOT contain:

  • Changes to .github/workflows/ that bypass security
  • Changes to .github/scripts/ that could exfiltrate secrets
  • curl, wget, or nc commands to external URLs in scripts
  • Base64 encoding of environment variables
  • Printing secrets to logs (echo $SECRET)
  • Suspicious package installations

This is an automated security measure to prevent TOCTOU attacks

@Ladas

Ladas commented Apr 10, 2026

Copy link
Copy Markdown
Contributor Author

/run-e2e

@github-actions github-actions Bot added the safe-to-test Maintainer reviewed - safe to run E2E tests label Apr 10, 2026
@github-actions

Copy link
Copy Markdown

E2E HyperShift Tests Started

Triggered by: @Ladas
Commit: 095f85a82da3fa6f480e0725996df6ebfdd90903
Workflow Run: View logs

Tests are running on OpenShift 4.20.11. This typically takes 30-45 minutes.


To re-run tests after new commits, comment /run-e2e again.

@github-actions

Copy link
Copy Markdown

E2E HyperShift Tests Failed

Commit: 095f85a82da3fa6f480e0725996df6ebfdd90903
Result: Tests failed - please check the logs
Workflow Run: View logs


To re-run tests after fixing issues, comment /run-e2e again.

@github-actions github-actions Bot removed the safe-to-test Maintainer reviewed - safe to run E2E tests label Apr 10, 2026
@github-actions

Copy link
Copy Markdown

New Commits Detected

The safe-to-test label has been automatically removed because new commits were pushed.

New HEAD: a83306c

For maintainers: Please review the new changes and comment /run-e2e to trigger E2E tests.

Security checklist

Before running E2E tests, verify the PR does NOT contain:

  • Changes to .github/workflows/ that bypass security
  • Changes to .github/scripts/ that could exfiltrate secrets
  • curl, wget, or nc commands to external URLs in scripts
  • Base64 encoding of environment variables
  • Printing secrets to logs (echo $SECRET)
  • Suspicious package installations

This is an automated security measure to prevent TOCTOU attacks

@Ladas

Ladas commented Apr 10, 2026

Copy link
Copy Markdown
Contributor Author

/run-e2e

@github-actions github-actions Bot added the safe-to-test Maintainer reviewed - safe to run E2E tests label Apr 10, 2026
@github-actions

Copy link
Copy Markdown

E2E HyperShift Tests Started

Triggered by: @Ladas
Commit: a83306cdb3b6c777062d165b1e35cf66686392dd
Workflow Run: View logs

Tests are running on OpenShift 4.20.11. This typically takes 30-45 minutes.


To re-run tests after new commits, comment /run-e2e again.

@github-actions

Copy link
Copy Markdown

E2E HyperShift Tests Passed

Commit: a83306cdb3b6c777062d165b1e35cf66686392dd
Result: All tests passed
Workflow Run: View logs

The safe-to-test label indicates this commit has been approved for E2E testing.


If you push new commits, the label will be removed and you'll need to comment /run-e2e again.

@pdettori pdettori left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@pdettori
pdettori merged commit a08554a into main Apr 10, 2026
22 checks passed
@pdettori
pdettori deleted the feat/sandbox-k1-infra branch April 14, 2026 19:47
mrsabath added a commit that referenced this pull request Sep 16, 2026
The laptop quickstart, read-the-numbers and troubleshooting pages already
point users at the Laptop feedback form (cortex#977/#979). The RossoCortex
page did not. Add a one-line prompt under "Install it", where a reader who
just installed is most likely to have an opinion, pointing at the same form
as the other pages.

Assisted-By: Claude Code
Signed-off-by: Mariusz Sabath <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe-to-test Maintainer reviewed - safe to run E2E tests

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants