Repository navigation
feat: sandbox agent infrastructure — CI, Helm, Ansible, scripts - #979
Conversation
|
/retest |
93a23fd to
ff759ed
Compare
00bd749 to
a4a2269
Compare
1456d50 to
738a6bc
Compare
738a6bc to
6e79e26
Compare
f453000 to
dba8338
Compare
|
/run-e2e |
New Commits DetectedThe New HEAD: For maintainers: Please review the new changes and comment Security checklistBefore running E2E tests, verify the PR does NOT contain:
This is an automated security measure to prevent TOCTOU attacks |
E2E HyperShift Tests FailedCommit: To re-run tests after fixing issues, comment |
|
/run-e2e |
E2E HyperShift Tests FailedCommit: To re-run tests after fixing issues, comment |
New Commits DetectedThe New HEAD: For maintainers: Please review the new changes and comment Security checklistBefore running E2E tests, verify the PR does NOT contain:
This is an automated security measure to prevent TOCTOU attacks |
New Commits DetectedThe New HEAD: For maintainers: Please review the new changes and comment Security checklistBefore running E2E tests, verify the PR does NOT contain:
This is an automated security measure to prevent TOCTOU attacks |
|
/run-e2e |
E2E HyperShift Tests FailedCommit: To re-run tests after fixing issues, comment |
pdettori
left a comment
There was a problem hiding this comment.
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:
- Integration CRD needs a feature flag guard (repo policy requires all new features gated, disabled by default)
- Hardcoded external LLM endpoint in weather deployment won't work outside the author's environment
| @@ -0,0 +1,146 @@ | |||
| apiVersion: apiextensions.k8s.io/v1 | |||
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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 '') |
There was a problem hiding this comment.
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..." |
There was a problem hiding this comment.
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}" |
There was a problem hiding this comment.
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.
| 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 |
There was a problem hiding this comment.
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.
|
/run-e2e |
E2E HyperShift Tests FailedCommit: To re-run tests after fixing issues, comment |
… typos Signed-off-by: Ladislav Smola <[email protected]>
New Commits DetectedThe New HEAD: For maintainers: Please review the new changes and comment Security checklistBefore running E2E tests, verify the PR does NOT contain:
This is an automated security measure to prevent TOCTOU attacks |
|
/run-e2e |
E2E HyperShift Tests FailedCommit: To re-run tests after fixing issues, comment |
Signed-off-by: Ladislav Smola <[email protected]>
New Commits DetectedThe New HEAD: For maintainers: Please review the new changes and comment Security checklistBefore running E2E tests, verify the PR does NOT contain:
This is an automated security measure to prevent TOCTOU attacks |
|
/run-e2e |
E2E HyperShift Tests PassedCommit: The If you push new commits, the label will be removed and you'll need to comment |
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]>
Summary
22 files | Part of Sandbox Agent streaming PR series
Test plan