Skip to content

fix: secure LiteLLM config and fix Istio waypoint for sandbox pods - #1395

Merged
Ladas merged 14 commits into
rossoctl:mainfrom
Ladas:fix/litellm-security-and-waypoint
May 6, 2026
Merged

Ladas merged 14 commits into
rossoctl:mainfrom
Ladas:fix/litellm-security-and-waypoint

Conversation

@Ladas

@Ladas Ladas commented Apr 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Comprehensive E2E test suite for OpenShell agents with secure LiteLLM configuration and CI infrastructure fixes.

  • 174 tests organized by capability tiers (T0-T4) with parametrized skill tests across 6 agents
  • Secure LiteLLM config: hosted_vllm/ provider, secretKeyRef for credentials, Anthropic message translation
  • Per-model parametrization: llama-scout-17b + deepseek-r1 via LiteMaaS
  • Security fixes: path traversal guard in workspace.py, secretKeyRef for DB URL
  • CI infrastructure: OPENAI_API_KEY fallback, stale namespace cleanup, non-blocking LiteLLM rollout, gateway image pre-pull, commit status for HyperShift checks

Test plan

  • CI Kind: 143/0/44 (zero failures confirmed)
  • CI HyperShift: gateway image pre-pull + 600s per-job wait
  • Local Kind: full redeploy with --skip-images
  • Custom HCP: full redeploy with Helm ownership cleanup
  • Per-model tests: both llama-scout-17b and deepseek-r1 pass

Assisted-By: Claude (Anthropic AI) [email protected]

@Ladas

Ladas commented Apr 30, 2026

Copy link
Copy Markdown
Contributor Author

/run-e2e-openshell

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

Copy link
Copy Markdown

E2E HyperShift Tests Started

Triggered by: @Ladas
Commit: 352c321630491f2bab6732ba2e989d9811ea69cb
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: 352c321630491f2bab6732ba2e989d9811ea69cb
Result: Tests failed - please check the logs
Workflow Run: View logs


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

@github-actions

Copy link
Copy Markdown

❌ [Experimental] OpenShell E2E Tests Failed

Commit: 352c321630491f2bab6732ba2e989d9811ea69cb
Workflow: View logs


Non-voting. Re-run: /run-e2e-openshell

@Ladas

Ladas commented Apr 30, 2026

Copy link
Copy Markdown
Contributor Author

/run-e2e-openshell

@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: ade0017

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 added safe-to-test Maintainer reviewed - safe to run E2E tests and removed safe-to-test Maintainer reviewed - safe to run E2E tests labels Apr 30, 2026
@github-actions

Copy link
Copy Markdown

E2E HyperShift Tests Started

Triggered by: @Ladas
Commit: ade00172765b0fc6394d183b842a0a5dc1de3f09
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 30, 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: e3a3967

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 30, 2026

Copy link
Copy Markdown
Contributor Author

/run-e2e-openshell

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

Copy link
Copy Markdown

E2E HyperShift Tests Started

Triggered by: @Ladas
Commit: 0bd2b427a9734f9e4dad24f7e2312f599a7c3ac6
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 30, 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: aa8d472

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

Copy link
Copy Markdown

❌ [Experimental] OpenShell E2E Tests Failed

Commit: 0bd2b427a9734f9e4dad24f7e2312f599a7c3ac6
Workflow: View logs


Non-voting. Re-run: /run-e2e-openshell

@github-actions

Copy link
Copy Markdown

E2E HyperShift Tests Failed

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


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

@github-actions

Copy link
Copy Markdown

❌ [Experimental] OpenShell E2E Tests Failed

Commit: ade00172765b0fc6394d183b842a0a5dc1de3f09
Workflow: View logs


Non-voting. Re-run: /run-e2e-openshell

@github-actions

Copy link
Copy Markdown

E2E HyperShift Tests Failed

Commit: 0bd2b427a9734f9e4dad24f7e2312f599a7c3ac6
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 30, 2026

Copy link
Copy Markdown
Contributor Author

/run-e2e-openshell

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

Copy link
Copy Markdown

E2E HyperShift Tests Started

Triggered by: @Ladas
Commit: 4ea710cf3952e01a66f11cee1c0cf8adec314d6b
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: 4ea710cf3952e01a66f11cee1c0cf8adec314d6b
Result: Tests failed - please check the logs
Workflow Run: View logs


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

@github-actions

Copy link
Copy Markdown

❌ [Experimental] OpenShell E2E Tests Failed

Commit: 4ea710cf3952e01a66f11cee1c0cf8adec314d6b
Workflow: View logs


Non-voting. Re-run: /run-e2e-openshell

@github-actions github-actions Bot removed the safe-to-test Maintainer reviewed - safe to run E2E tests label Apr 30, 2026
Replaced 548-line doc with stale Phase 1 data with concise 112-line
version showing the actual capability matrix, agent list, skip reasons,
test file organization, and run commands.

Key changes:
- Removed stale per-agent matrices (A2A, credential, supervisor, etc.)
- Added concise 4-tier capability matrix matching the test files
- Listed all 6 skill test agents (parametrized)
- Added skip reason summary with resolution paths
- Added test file → tier mapping table

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Ladislav Smola <[email protected]>
@github-actions

github-actions Bot commented May 6, 2026

Copy link
Copy Markdown

❌ [Experimental] OpenShell E2E Tests Failed

Commit: a46af3d8a76d836d128242a099b255409ae26571
Workflow: View logs


Non-voting. Re-run: /run-e2e-openshell

@github-actions

github-actions Bot commented May 6, 2026

Copy link
Copy Markdown

E2E HyperShift Tests Failed

Commit: a46af3d8a76d836d128242a099b255409ae26571
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 May 6, 2026

Copy link
Copy Markdown
Contributor Author

/run-e2e-openshell

@github-actions

github-actions Bot commented May 6, 2026

Copy link
Copy Markdown

E2E HyperShift Tests Started

Triggered by: @Ladas
Commit: 883d07979f0063fe11ec17d21b9f973c1b06328c
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 May 6, 2026

Copy link
Copy Markdown

❌ [Experimental] OpenShell E2E Tests Failed

Commit: 883d07979f0063fe11ec17d21b9f973c1b06328c
Workflow: View logs


Non-voting. Re-run: /run-e2e-openshell

@github-actions

github-actions Bot commented May 6, 2026

Copy link
Copy Markdown

E2E HyperShift Tests Passed

Commit: 883d07979f0063fe11ec17d21b9f973c1b06328c
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.

- Moved LLM_AVAILABLE and skip_no_llm from 5 test files into conftest.py
- Fixed pre-pull Job name exceeding K8s 63-char label limit (was 67 chars
  for sandbox base image, causing Phase 4 failure on CI HyperShift)
- Updated e2e-test-matrix.md with CI HyperShift trigger docs

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Ladislav Smola <[email protected]>
@Ladas

Ladas commented May 6, 2026

Copy link
Copy Markdown
Contributor Author

/run-e2e-openshell

@github-actions

github-actions Bot commented May 6, 2026

Copy link
Copy Markdown

New Commits Detected

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

New HEAD: 54b1b30

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 May 6, 2026

Copy link
Copy Markdown

E2E HyperShift Tests Started

Triggered by: @Ladas
Commit: 54b1b30705407dbae2a3565a36d2e0dd90081055
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 May 6, 2026

Copy link
Copy Markdown

E2E HyperShift Tests Passed

Commit: 54b1b30705407dbae2a3565a36d2e0dd90081055
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.

@github-actions

github-actions Bot commented May 6, 2026

Copy link
Copy Markdown

❌ [Experimental] OpenShell E2E Tests Failed

Commit: 54b1b30705407dbae2a3565a36d2e0dd90081055
Workflow: View logs


Non-voting. Re-run: /run-e2e-openshell

@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.

Well-structured PR that significantly improves security posture (API keys moved from plaintext ConfigMap to K8s Secrets with secretKeyRef), reorganizes 174 E2E tests into a tier-based matrix with per-model parametrization, and fixes LiteLLM provider routing to avoid the Responses API bridge.

Areas reviewed: Python, Shell, YAML/K8s, CI, Docs, Security
Commits: 11 commits, all signed-off
CI status: All 26 checks passing


Suggestion (conftest.py): _ensure_claude_sandbox() and run_claude_in_sandbox() return None on multiple failure paths without logging context. A logger.warning(...) before each early return would make sandbox test failures much easier to debug — silent None propagation masks whether the issue was pod creation timeout, missing LiteLLM service, or exec failure.

Nit (PR body): Footer says "Generated with Claude Code" — per repo convention this should be "Assisted-By: Claude Code".

@Ladas

Ladas commented May 6, 2026

Copy link
Copy Markdown
Contributor Author

/run-e2e-openshell

@github-actions

github-actions Bot commented May 6, 2026

Copy link
Copy Markdown

New Commits Detected

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

New HEAD: 3c73ec2

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 May 6, 2026

Copy link
Copy Markdown

E2E HyperShift Tests Started

Triggered by: @Ladas
Commit: 3c73ec2dd3a770bd21246bde160124764c9ac454
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.

- istiod rollout: 60s hard fail → 120s with fallback warning (prevents
  deploy-shared.sh from failing when Kind node has CPU pressure)
- Pre-pull Jobs: 300s blanket wait → 600s per-job wait (compute-driver
  and credentials-driver were timing out on HyperShift cold cache)
- Fixed 'local' keyword used outside function in pre-pull loop

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Ladislav Smola <[email protected]>
@github-actions

github-actions Bot commented May 6, 2026

Copy link
Copy Markdown

New Commits Detected

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

New HEAD: f2210cc

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 May 6, 2026

Copy link
Copy Markdown
Contributor Author

/run-e2e-openshell

@github-actions

github-actions Bot commented May 6, 2026

Copy link
Copy Markdown

E2E HyperShift Tests Started

Triggered by: @Ladas
Commit: f2210cc6c49ebc65f0ea464f6e78c909ab68ba43
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.

Per review feedback: _ensure_claude_sandbox() and run_claude_in_sandbox()
now log warnings before returning None, making sandbox test failures
easier to debug (was silent None propagation).

Warns on: LiteLLM service not found, sandbox CR creation failure,
sandbox pod not Running after timeout, claude exec failure.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Ladislav Smola <[email protected]>
@github-actions

github-actions Bot commented May 6, 2026

Copy link
Copy Markdown

New Commits Detected

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

New HEAD: b0fdc06

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 May 6, 2026

Copy link
Copy Markdown

E2E HyperShift Tests Failed

Commit: f2210cc6c49ebc65f0ea464f6e78c909ab68ba43
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 May 6, 2026

Copy link
Copy Markdown

❌ [Experimental] OpenShell E2E Tests Failed

Commit: f2210cc6c49ebc65f0ea464f6e78c909ab68ba43
Workflow: View logs


Non-voting. Re-run: /run-e2e-openshell

@github-actions

github-actions Bot commented May 6, 2026

Copy link
Copy Markdown

E2E HyperShift Tests Failed

Commit: 3c73ec2dd3a770bd21246bde160124764c9ac454
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 May 6, 2026

Copy link
Copy Markdown

❌ [Experimental] OpenShell E2E Tests Failed

Commit: 3c73ec2dd3a770bd21246bde160124764c9ac454
Workflow: View logs


Non-voting. Re-run: /run-e2e-openshell

…rShift

The e2e-hypershift-pr.yaml workflow used startsWith('/run-e2e') which
matched both /run-e2e and /run-e2e-openshell. Added exclusion for
/run-e2e- prefixed commands so openshell triggers only its own workflows.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Ladislav Smola <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants