Skip to content

Automated Sync from main to stable - #239

Merged
rhods-devops-app[bot] merged 84 commits into
stablefrom
main
Dec 4, 2026
Merged

rhods-devops-app[bot] merged 84 commits into
stablefrom
main

Conversation

@rhods-devops-app

@rhods-devops-app rhods-devops-app Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Automated Sync from main to stable

This PR automatically syncs the main branch to the stable branch by opening a pull request from main into stable.

Sync Summary

  • Latest commit: 54a7616d3 Merge remote-tracking branch 'upstream/main'

  • Total commits to sync: 84

  • Source: https://github.com/red-hat-data-services/OpenShell.git @ main

  • Target: https://github.com/red-hat-data-services/OpenShell.git @ stable

  • PR head: main

Commits to be synced

Merging

GitHub automerge is enabled for this pull request once required checks pass.

alangou and others added 30 commits November 26, 2026 12:30
* chore(deps): defer kube-client advisory on Rust 1.94

The fixed 5.2 client needs Rust 1.95. The 4.2 backport loses kubeconfig impersonation headers that the current client forwards. Keep the advisory visible here while OpenShell uses the rustls connector.

Signed-off-by: Adrien Langou <alangou@nvidia.com>

* fix(deps): update kube-client to 5.2.0 on Rust 1.95

Raise the minimum compiler for the product and the packages that build against it to the Rust version already pinned in CI. Update the exact kube family constraints and regenerate the eleven affected lockfiles.

Remove the RUSTSEC-2026-0600 exception now that kube-client enforces the configured cluster CA on the OpenSSL connector.

Signed-off-by: Adrien Langou <alangou@nvidia.com>

---------

Signed-off-by: Adrien Langou <alangou@nvidia.com>
)

* test(cli): cover credential expiry edge cases

Signed-off-by: Simon Scatton <sscatton@nvidia.com>

* refactor(cli): parse credential expiry with jiff

Signed-off-by: Simon Scatton <sscatton@nvidia.com>

* refactor(ocsf): migrate timestamps to jiff

Signed-off-by: Simon Scatton <sscatton@nvidia.com>

* refactor(core): migrate telemetry to jiff

Signed-off-by: Simon Scatton <sscatton@nvidia.com>

* refactor(server): migrate timestamps to jiff

Signed-off-by: Simon Scatton <sscatton@nvidia.com>

* chore(deps): upgrade jiff to 1.0.1

Signed-off-by: Simon Scatton <sscatton@nvidia.com>

* refactor(credentials): use jiff for expiry

Signed-off-by: Simon Scatton <sscatton@nvidia.com>

---------

Signed-off-by: Simon Scatton <sscatton@nvidia.com>
* docs(testing): define nix and tmachine target state

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* docs(testing): clarify current test paths

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* docs(rfc): propose OpenShell testing strategy

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* docs(rfc): clarify testing model and suite organisation

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* docs(rfc): record agreed conformance policies

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* docs(rfc): condense testing strategy proposal

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* docs(rfc): clarify testing strategy and execution policy

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* docs(rfc): clarify polling and test dependencies

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* docs(rfc): align testing strategy with testkit and tmachine

Update RFC 0016 to the current tests/ layout, the testkit and runner
execution model, the openshell-conformance program, and the in-progress
migration tracked in ai-openshell#5281. Document the #[ignore] process as the only
skip mechanism and record open questions.

Signed-off-by: Evan Lezar <elezar@nvidia.com>

---------

Signed-off-by: Evan Lezar <elezar@nvidia.com>
…nshell#4971)

* ci(trivy): report dev image scans and stop prerelease uploads

Prerelease scans tagged each image analysis with a per-SHA category on a
tag ref, so findings never closed and nothing reached the main alert list.

Scan the published :dev images from Release Dev and report them on main.
Fixed image references keep each Code Scanning category stable, so every
scan replaces the previous one and fixed findings close. The configuration
and Helm chart scan rides along under its existing category.

Prereleases still run Trivy, but only as an informational check: findings
never fail qualification and results are no longer uploaded.

Signed-off-by: Simon Scatton <sscatton@nvidia.com>

* ci(trivy): scan the dev Helm charts

Scan the floating 0.0.0-dev gateway and workspace charts alongside the dev images, so packaged chart findings also track the current dev build on main.

Signed-off-by: Simon Scatton <sscatton@nvidia.com>

* ci(trivy): rely on Trivy scan defaults in the security scan

Signed-off-by: Simon Scatton <sscatton@nvidia.com>

---------

Signed-off-by: Simon Scatton <sscatton@nvidia.com>
Signed-off-by: Simon Scatton <sscatton@nvidia.com>
…d Configure (ai-openshell#5914)

* test(gateway): install config preflight fixtures by rename

Write each fixture script to a temporary file, close it, and rename it
into place. A script another test's fork still holds open for writing
fails to execute with ETXTBSY.

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* refactor(vm): move the driver's socket and peer checks into a module

Move socket preparation, peer authorization by uid and gateway PID, and
the shutdown signal out of main.rs. No behaviour change.

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* refactor(server): hold a managed driver's process in an enum

Wrap the managed driver's child process in DriverChild so a later change
can manage a process started another way. No behaviour change.

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* feat(otel): enable driver trace export after tracing is installed

A launched driver logs first and starts OTLP export when the gateway
configures it. The deferred layer forwards downcasts to the installed
OpenTelemetry layer, so a span's parent trace context still reaches the
exporter, which a reloadable slot would drop. Export starts once and a
repeat call is a no-op.

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* feat(drivers): add the driver launch protocol

Add proto/driver_launch.proto and the openshell-driver-launch crate. A
launched driver serves GetLaunchInfo and Configure and answers UNAVAILABLE
on its other services until Configure succeeds once. Configure carries the
gateway context (including its bind address), network trust, image
overrides, telemetry, and the admission policy the gateway owns.

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* feat(drivers): add a shared SDK for launched compute drivers

Add openshell-driver-sdk with the stdin table reader, the start-up exit
codes and stdout report line, the staged network-trust loader, telemetry
and admission conversion from Configure, grpc_endpoint checks, the gateway
context, and a parent-death guard.

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* feat(vm): serve the launch protocol and read its table from stdin

Add settings_from_table as the single parse and validation point for the
vm driver table, a serve command that binds the socket and applies
Configure before serving ComputeDriver, and a preflight command. The table
holds only what the operator owns: the gateway port and CA come from
Configure, the admission policy arrives in Configure, and grpc_endpoint is
an optional override checked for syntax and scheme. A setting the table
leaves unset still falls back to the driver's environment variable. The
argv mode keeps working.

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* feat(server): expose a launched driver's table, process state, and driver_dir

Let a factory read the selected driver's raw merged table, report whether
a managed driver process is running or has exited on its own
(DriverProcessState and poll_exit), manage a driver started with std,
and read driver_dir from [openshell.gateway].

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* feat(gateway): launch the VM driver with serve and Configure

Add a generic subprocess launcher: it resolves and trust-checks the driver
binary, gives each launch its own private socket directory, starts serve
with the table on stdin, reads GetLaunchInfo, sends Configure, and reports
an unexpected exit. The exit status decides the result and the JSON line
only explains it. The VM driver is launched through it, the VM argv
builder and OTLP flags are removed, and config preflight runs the driver's
preflight command. The gateway owns the admission policy and driver_dir:
it strips the admission keys from the forwarded table and reads driver_dir
from [openshell.gateway], warning about the old driver-table location.

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* feat(server): detect drivers with their own table and keep the one that starts

Let a registration detect its driver with the operator's merged table
instead of an environment probe. A probe returns whether the driver is
available, unavailable, has an invalid table, or failed outright. The
first available driver's running process is stashed for the factory's
build step, so detection never starts a driver it then stops; an unused
one is stopped when dropped. An invalid table or unreachable backend falls
through to the next candidate, a crash or timeout stops startup, and the
no-driver error lists each candidate's reason. Legacy keys are normalized
in a copy of the configuration for each candidate.

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* feat(podman): serve the launch protocol and read its table from stdin

Add settings_from_table as the single parse and validation point for the
podman driver table, a serve command that checks the Podman socket
(honouring socket_path and OPENSHELL_PODMAN_SOCKET) before it binds and
applies Configure before serving ComputeDriver, and a preflight command.
The table holds only what the operator owns: the gateway port, the CA and
the admission policy come from Configure, and grpc_endpoint is an optional
override checked for syntax and scheme. The standalone flags still work.

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* feat(gateway): launch the Podman driver as a subprocess

Launch openshell-driver-podman through the shared launcher and stop
linking it into the gateway. Auto-detection starts the driver with the
operator's table, so a configured socket_path is honoured, and keeps the
first driver that binds its socket. An invalid table or unreachable socket
falls through to the next candidate; a crash stops startup. A named
Podman is started again while its socket is unreachable, as the in-process
driver retried. The gateway drops a legacy gateway_port from the table
with a warning, so the driver can stay strict. config preflight runs the
driver's preflight command.

Ship the driver: build it for both Linux targets and macOS, install it in
/usr/libexec/openshell through the deb, RPM and Nix packages and the
Homebrew formula, publish its release assets, and provision it for the
dev gateway task and the managed Podman E2E lanes.

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* feat(docker): serve the launch protocol and read its table from stdin

Add settings_from_table as the single parse and validation point for the
docker driver table, a serve command that checks the Docker socket before
it binds and applies Configure before serving both ComputeDriver and
ComputeDriverConfigurationUpdates, and a preflight command. The table
holds only what the operator owns: the CA and the admission policy come
from Configure, and grpc_endpoint is an optional override checked for
syntax and scheme. The standalone flags still work.

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* feat(gateway): launch the Docker driver as a subprocess

Launch openshell-driver-docker through the shared launcher and stop
linking it into the gateway, replacing the in-process Docker driver. The
driver's ComputeDriverConfigurationUpdates service is served through the
same launched process. Auto-detection starts the driver with the
operator's table and keeps the first one that binds its socket, as for
Podman, and config preflight runs the driver's preflight command. Move the
detect, launch and preflight logic Podman and Docker share into one
module. The gateway keeps checking its own bind port and the admission
policy.

Ship the driver: build it for both Linux targets and macOS, install it in
/usr/libexec/openshell through the deb, RPM and Nix packages, in
libexec/openshell in the snap, and through the Homebrew formula, publish
its release assets, and provision it for the dev gateway task and the
Docker E2E lanes.

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* feat(gateway): ship the Docker and Podman drivers in the gateway image

The gateway launches these drivers as subprocesses, so an image that runs
the Docker or Podman driver needs their binaries. Stage them beside the
gateway, install them under /usr/libexec/openshell, one of the directories
the gateway searches, and build them in the image workflow and the local
image tasks.

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* feat(drivers): release a launched driver before it stops

A service manager signals every process of the gateway's unit when it stops
the unit, so a launched driver received SIGTERM at the same time as the
gateway. The driver could stop serving before the gateway had stopped the
sandboxes through it, leaving Docker, Podman or VM sandboxes running after
the service stopped.

Add a Shutdown call to the launch protocol. A driver now defers a stop
signal that reaches it from elsewhere until the gateway releases it, its
gateway exits, or 30 seconds pass. The gateway stops sandboxes through the
driver first, then releases it with Shutdown, waits for it to exit, and falls
back to SIGTERM and kill as before. A driver whose gateway is gone now stops
through the same path, so it also finishes in-flight calls and flushes
telemetry.

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* feat(gateway): bound a driver's Configure by the image preparation budget

Constructing a launched driver can pull its supervisor and runtime images,
and that happens inside Configure. A fixed two-minute deadline on the call
could end a normal first start on a slow network, where the in-process
drivers had no deadline.

Use the gateway's image_preparation_timeout_seconds as the Configure
deadline, with a floor of two minutes so a very small value cannot make the
call fail at once. The launcher applies the value it is given, and the
gateway's configuration decides it.

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* feat(drivers): report a slow backend as unavailable

A Podman driver pinged its backend for up to a minute, and a Docker driver
for up to 30 seconds, before it bound its socket. The gateway waits 30
seconds for a driver to start and then kills it, so a daemon that answered
slowly ended the start with a crash instead of an unavailable backend. The
gateway retries an explicitly selected Podman driver only when the backend
is unavailable, and tries the next candidate in auto mode only then.

Give the ping 20 seconds and report a backend that has not answered as
unavailable, with its exit status and reason, so the gateway can retry or
move on.

Signed-off-by: Evan Lezar <elezar@nvidia.com>

---------

Signed-off-by: Evan Lezar <elezar@nvidia.com>
* feat(helm): preflight gateway storage on install

Signed-off-by: Shiju <shiju@nvidia.com>

* docs(helm): clarify storage preflight recovery

Signed-off-by: Shiju <shiju@nvidia.com>

---------

Signed-off-by: Shiju <shiju@nvidia.com>
Signed-off-by: Simon Scatton <sscatton@nvidia.com>
* fix(gateway): prevent leaking username in logs

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* fix(cli): remove unused JWT username helper

Signed-off-by: Simon Scatton <sscatton@nvidia.com>

---------

Signed-off-by: Simon Scatton <sscatton@nvidia.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Downstream repositories reused test inputs from a hand-dispatched Branch E2E
run that expired after five days. Publish the tmachine inputs, the
conformance program, supervisor, sandbox, VM init and Linux drivers to
ghcr.io/ai-openshell/openshell/test-inputs:<sha> from Release Dev and from
Branch E2E (any same-repository PR commit or dispatched ref).

Release Dev now builds the conformance program through a new reusable
workflow. Branch E2E keeps its own build-conformance job unchanged.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
* fix(images): default supervisor to non-root

Signed-off-by: Simon Scatton <sscatton@nvidia.com>

* fix(helm): scope managed SSH policy mutation

Signed-off-by: Simon Scatton <sscatton@nvidia.com>

* test(helm): detect unscoped policy mutation

Signed-off-by: Simon Scatton <sscatton@nvidia.com>

---------

Signed-off-by: Simon Scatton <sscatton@nvidia.com>
Signed-off-by: Simon Scatton <sscatton@nvidia.com>
* fix(helm): set control plane resource budgets

Signed-off-by: Simon Scatton <sscatton@nvidia.com>

* test(helm): align supervisor budget assertions

Signed-off-by: Simon Scatton <sscatton@nvidia.com>

* docs(helm): explain resource upgrade risks

Signed-off-by: Simon Scatton <sscatton@nvidia.com>

---------

Signed-off-by: Simon Scatton <sscatton@nvidia.com>
* fix(images): probe supervisor readiness

Signed-off-by: Simon Scatton <sscatton@nvidia.com>
(cherry picked from commit 0a7d719165026e3b43c67c9ccbf50d70ea8defb2)

* docs(images): clarify supervisor health probes

Signed-off-by: Simon Scatton <sscatton@nvidia.com>

---------

Signed-off-by: Simon Scatton <sscatton@nvidia.com>
* ci(trivy): scope false-positive exceptions

Signed-off-by: Simon Scatton <sscatton@nvidia.com>
(cherry picked from commit b0c42cf766ce9d03b61ab156c9a05845aa2408ef)

* ci(trivy): remove obsolete HelmChart manifests

Signed-off-by: Simon Scatton <sscatton@nvidia.com>

---------

Signed-off-by: Simon Scatton <sscatton@nvidia.com>
…rivers (ai-openshell#6023)

* refactor(drivers): remove reverse dependencies on the VM and Podman drivers

Move Podman socket discovery into a new openshell-container-runtime crate
for code used only by the desktop drivers, so the VM driver no longer
depends on openshell-driver-podman. Move the counting test allocator into
openshell-supervisor-network so it no longer depends on openshell-driver-vm.
Nothing outside crates/openshell-driver-* and the container-runtime crate now
depends on the Docker, Podman or VM driver crates.

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* docs(supervisor-network): refresh README for the test-only allocator and exclude the container-runtime crate on Windows

Signed-off-by: Evan Lezar <elezar@nvidia.com>

---------

Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Simon Scatton <sscatton@nvidia.com>
…l#6078)

Update curve25519-dalek from 5.0.0 to 5.1.0 in the root lockfile. The 5.1.0 release fixes the AVX-512 backend, which could return incorrect results for scalar multiplication on an attacker-chosen point. russh 0.65.2 and ed25519-dalek 3.0.0 accept the patched release without a constraint change.

Signed-off-by: Adrien Langou <alangou@nvidia.com>
…her (ai-openshell#6035)

* feat(gateway): replace per-driver launcher features with driver-launcher

The Docker, Podman and VM drivers run as separate binaries, so the
compute-driver-docker, compute-driver-podman and compute-driver-vm
features no longer select any linked code. Remove them and gate the
launchers on driver-launcher alone, which in-tree-compute-drivers now
enables. Update the feature matrix, the Windows selective test loop and
the source-build docs.

Closes ai-openshell#5965
Related to ai-openshell#5200, ai-openshell#5384

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* docs(gateway): note driver selection with driver-launcher

Signed-off-by: Evan Lezar <elezar@nvidia.com>

---------

Signed-off-by: Evan Lezar <elezar@nvidia.com>
…ll#5407)

* feat(review): add managed labeling runtime foundation

Signed-off-by: Jim Meyer <jimeyer@nvidia.com>

* refactor(review): trim labeling runtime docs and single-source defaults

The README links to ai-openshell#5276 for activation prerequisites and to the
modules for completion and invocation behavior instead of restating
them. Budget and timeout defaults live in one constant each and
appear in --help. A shared helper validates item numbers, and one
discover command runs both test files.

Signed-off-by: Jim Meyer <jimeyer@nvidia.com>

* style(review): format, lint-fix, and license labeling runtime scripts

Apply ruff format, fix RUF021, B023, and RUF005, and add SPDX headers
so the scripts pass python:format:check, python:lint, and
license:check.

Signed-off-by: Jim Meyer <jimeyer@nvidia.com>

* fix(review): tune labeling runtime baseline and failure coverage

Signed-off-by: Jim Meyer <jimeyer@nvidia.com>

* test(review): scope labeling runtime test task

Signed-off-by: Jim Meyer <jimeyer@nvidia.com>

* fix(review): interrupt failed classifiers and use supported SDK

Signed-off-by: Jim Meyer <jimeyer@nvidia.com>

* refactor(review): use SDK directly and document agent layout

Signed-off-by: Jim Meyer <jimeyer@nvidia.com>

* refactor(review): move labeling tools into labeler agent

Signed-off-by: Jim Meyer <jimeyer@nvidia.com>

* test(labeler): consolidate directory-based test discovery

Signed-off-by: Jim Meyer <jimeyer@nvidia.com>

* feat(review): connect the one-item labeling runner

Signed-off-by: Jim Meyer <jimeyer@nvidia.com>

* fix(review): type-check imports from the labeler agent

check_review_readiness.py now imports acceptance from .agents/agents/labeler/bin, so add that directory to ty's search path.

Signed-off-by: Jim Meyer <jimeyer@nvidia.com>

---------

Signed-off-by: Jim Meyer <jimeyer@nvidia.com>
…i-openshell#6076)

`start_time_ms` called rustix's `clock_ticks_per_second`, whose auxv
initialisation panics when the kernel lacks `PR_GET_AUXV` (added in
Linux 6.4) and `/proc/self/auxv` cannot be opened as a fallback. Inside
the sandbox network broker that is exactly the situation on RHEL 9
nodes (kernel 5.14), so every mediated connect() panicked the
notification handler and was answered EIO, breaking all sandbox egress
since 0.1.10.

Resolve the tick rate with `sysconf(_SC_CLK_TCK)` instead, degrading to
the Linux ABI constant (`USER_HZ` = 100) rather than risking a panic,
and drop the rustix dependency from the crate. Add a regression test
that reproduces the kernel < 6.4 conditions with a seccomp filter
answering `PR_GET_AUXV` with ENOSYS and a Landlock ruleset that denies
`/proc/self/auxv` while keeping `/proc/stat` readable.

Closes ai-openshell#6069

Signed-off-by: Emilien Macchi <emacchi@redhat.com>
…nshell#5974)

@nvidia/openshell-sdk@0.1.10 is published and re-exports @ai-openshell/sdk,
so core no longer needs the stub, its publish workflow, or the freeze job.

Refs ai-openshell#5480

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
…ll#5949)

* test: reserve refusal endpoints across parallel tests

Signed-off-by: Taylor Mutch <taylormutch@gmail.com>

* test: use deterministic connection failure fixtures

Signed-off-by: Taylor Mutch <taylormutch@gmail.com>

---------

Signed-off-by: Taylor Mutch <taylormutch@gmail.com>
…6086)

Signed-off-by: John Myers <johntmyers@users.noreply.github.com>
Co-authored-by: John Myers <johntmyers@users.noreply.github.com>
…i-openshell#5960)

A driver snapshot for an existing sandbox applied through the watch loop
pinned the record version it had just read and performed a single CAS.
Any concurrent write to the same record between that read and the CAS,
such as the supervisor session state written while the sandbox comes up,
failed the update with a Conflict, and the watch loop dropped the event
with only a warning. Drivers that do not re-emit unchanged sandboxes
then kept a stale record until the sandbox changed state again or the
reconciliation sweep caught up.

Re-enter the full update for a bounded number of attempts on Conflict,
so each pass re-reads the record and re-runs the ambiguous-snapshot
revalidation; a stale snapshot can no longer overwrite a newer
gateway-owned transition such as a concurrent stop. Non-conflict
failures still surface immediately, and after the bound the update
defers to reconciliation with a warning instead of blocking the
sequentially processed watch stream.

Closes ai-openshell#5959

Signed-off-by: Emilien Macchi <emacchi@redhat.com>
…ai-openshell#5309)

* fix(sandbox): stop logging in-progress nonblocking connects as denied

Signed-off-by: Artem Lytvyn <letv1n2007@icloud.com>

* test(sandbox): assert in-progress connects are not logged as denied

Signed-off-by: Artem Lytvyn <letv1n2007@icloud.com>

* fix(sandbox): use SYS_gettid syscall in nonblocking connect test

Signed-off-by: Artem Lytvyn <letv1n2007@icloud.com>

---------

Signed-off-by: Artem Lytvyn <letv1n2007@icloud.com>
)

* docs(helm): document operator mTLS gateway administration

Signed-off-by: Taylor Mutch <taylormutch@gmail.com>

* docs(helm): refresh documentation links

Signed-off-by: Taylor Mutch <taylormutch@gmail.com>

* docs(helm): undo optional link changes

Signed-off-by: Taylor Mutch <taylormutch@gmail.com>

---------

Signed-off-by: Taylor Mutch <taylormutch@gmail.com>
… v9.9-1796086884

Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
matthewgrossman and others added 22 commits December 2, 2026 20:07
…i-openshell#5695)

* test(support): add container state, copy, log, and volume helpers to container-engine

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* test(drivers/podman): port stop-is-terminal and ephemeral container cleanup

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* test(drivers/docker): add a Docker driver suite with stop-is-terminal and ephemeral cleanup

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* test(testkit): expose gateway info on Context

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* test(features): port cgroup resource limits to resource-limits on Docker and Podman

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* test(features): port supervisor OCSF stderr records to ocsf

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* test(features): port driver-config volume and bind mounts to driver-config on Docker and Podman

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* test(features): port HTTP response EOF and stop/start reachability to host-gateway

The EOF check runs its three responses in one sandbox and reads the close through the shared http_raw client. The stop/start check is the restart half of podman_host_gateway, which stays in e2e/rust until its DNS relay check is decided.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* test(features): check OCSF network, HTTP and SSH activity classes in ocsf

Merges the class, attribution and schema checks of ocsf_jsonl_conformance into the stderr test. The sandbox denies a TCP connect and an L7 POST to an in-process host server, and the exec sessions add SSH Activity. ocsf_jsonl_conformance stays in e2e/rust for its /var/log file-sink check until that drop is decided.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* test(support): add a getaddrinfo client and running clients under a chosen Python to sandbox-clients

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* test(features): port native TCP policy DNS and fail-closed checks to transparent-tcp

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* test(e2e): keep only the VM gateway restart check in local_driver_token_restart

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* test(testkit): set the supervisor log level on a sandbox

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* test(features): run the ocsf sandbox's supervisor at info so Podman writes the shorthand

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* test(e2e): run the Docker and Podman suites as harnessless testkit programs

Register each test target this branch adds with harness = false and a
testkit::main entry point. Give the driver lifecycle targets unique names, and
move the OCSF record parser into a library so its unit tests still run.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* chore(deps): align the drivers/docker lockfile with the root lockfile

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* fix(support): report malformed names as failed lookups in the resolve probe

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* test(e2e): delete the legacy tests left only for approved drops

Decision D in ai-openshell#5297 approved dropping the checks these files still held,
and their other tests now live in testkit suites:

- ocsf_jsonl_conformance: the /var/log file-sink check (rest in
  features/ocsf)
- host_gateway_alias: host gateway reachability (rest in conformance and
  features/host-gateway)
- podman_host_gateway: reachability and the 127.0.0.53 nameserver check
  (stop/start in features/host-gateway)
- transparent_tcp: the rootless Podman musl DNS test and the private DNS
  pins test, which never ran in CI (ai-openshell#5916 tracks a crate-level test)

Remove them from the Podman and VM wrapper lanes and the tmachine archive
exclusions, and drop e2e/rust's openshell-ocsf-validate dependency.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

---------

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
* test(testkit): expose the gateway's mTLS directory and a sandbox's stored spec

Suites that check the gateway's TLS boundary need the CA and client
certificate testkit already found for the gateway, and suites that check
what the gateway persists need the stored sandbox spec.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>

* test(conformance): port policy and provider cases from the Python E2E suites

Ports the cases from e2e/python that had no Rust coverage into the
conformance suite, so they run on every compute driver instead of only
the Docker Python lane:

- policy_validation: create refuses root, path traversal, a writable /
  and ambiguous endpoint pinning; MCP endpoints get the default version.
- policy_enforcement: Landlock read/write/deny matrix, the policy user,
  cross-directory renames (Landlock refer), and EPERM/EACCES for
  connections no rule allows.
- provider_credentials: credentials refused outside their profile
  placement, the Google Cloud metadata server's placeholder token,
  unknown providers, and credentials kept out of the stored spec.

Refs ai-openshell#5435

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>

* test(e2e): add a gateway mTLS feature suite

Ports e2e/python/test_security_tls.py: a client certificate from the
gateway's CA authenticates a user, a CA-only client reaches only Health,
and a foreign certificate or plaintext connection is refused.

Refs ai-openshell#5435

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>

* chore(e2e): remove the Python E2E suites

Every case in e2e/python now maps to Rust coverage or an explicit drop
(ai-openshell#5435). The SDK-client suites (exec admission, sandbox
API, exec_python, workspace API) run in ai-openshell/sdk-python against
published core gateways.

- Delete e2e/python and the e2e:python and e2e:oidc-python:docker tasks;
  e2e no longer depends on python:proto or PYTHONPATH=python.
- Move the workload image's Dockerfile to e2e/workload/Dockerfile. The
  image tag and contents are unchanged; testkit, the Rust harness and
  tmachine keep using openshell/e2e-python:dev.
- Docker E2E: replace the python and oidc-python rows with gateway-mtls,
  drop the python:proto setup step, and run oidc_authz in the
  oidc-pkce lanes. Add a gateway-mtls row on the deb tmachine gateway.
- Update TESTING.md and the testkit docs.

Refs ai-openshell#5435; python/ itself is removed by
ai-openshell#5287.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>

* test(e2e): fix provider profiles, MCP image and mTLS refusal checks

Import the built-in provider profiles the conformance tests use instead of assuming a gateway has them, run the MCP default-version sandbox from the Python image so Podman finds the policy's user, and make the mTLS refusal tests assert a transport error after a CA-only control reaches Health.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>

* test(conformance): use the shared testkit helpers and drop the run-as check

Build the ported sandboxes with the SandboxBuilder (image, providers,
create_ready) instead of a local helper, read probe results with
run_python and last_json, probe TCP denials with sandbox_clients_support's
connect, and send the placement requests with its http probe. TEST_HOST
comes from host_server_support.

The Landlock test no longer asserts which user exec runs as. Docker and
Podman take it from the policy, but Kubernetes and the VM driver choose it
through driver configuration, so it isn't a cross-driver contract.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>

* test(e2e): leave the OIDC authorization port to features/oidc-auth

The OIDC and workspace authorization tests move to
tests/suites/features/oidc-auth on the shared Keycloak helpers from
ai-openshell#5731 instead of the e2e/rust tree that is being retired (ai-openshell#5297). Stop
running oidc_authz in the oidc-pkce tasks.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>

* test(gateway-mtls): accept the plaintext service router's 404 as a refusal

On loopback, a TLS gateway also serves plaintext HTTP that routes only
sandbox services. A plaintext gRPC Health call gets a bare 404, which
tonic maps to Unimplemented without a grpc-status header. No RPC ran, so
treat exactly that answer as a refusal alongside transport errors.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>

* test(gateway-mtls): declare the suite's test target with harness = false

The conformance program check requires every testkit test target to opt
out of the libtest harness explicitly, as the other feature suites do.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>

* test(e2e): trim the E2E Python image and name its build task after it

Drop cloudpickle, google-auth, requests, pip and the python3-pip and
python3-venv packages, which only the removed Python SDK tests used. Keep
the uv interpreter, the venv and the system python3, whose paths test
policies allow. Rename e2e:workload:build to e2e:python-image:build so it
no longer differs from the GPU suite's e2e:workloads:build by one letter,
and add a README that tells the two apart.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>

* test(e2e): keep requests in the E2E Python image

The e2e/rust OTLP relay tests post spans with requests and assert on its
ConnectionError, so the trim broke them on the Docker and Podman lanes.
Install only requests into the venv; cloudpickle, google-auth and pip stay
out.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>

* test(e2e): address review feedback on the ported conformance tests

Move the provider placeholder check, PLACEHOLDER_PREFIX and reading an
environment variable from a sandbox into testkit, and add a query_param
setter to testkit::Credential. Use them, and cx.python_sandbox(), in place
of per-file copies in provider_credentials, policy_enforcement,
credential_gating, providers and corporate_proxy.

Build the placement test's profile with testkit::Profile, and give the
spec test its own profile ID instead of importing claude-code under its
built-in ID. Add the x-api-key header placement case and an attach and
detach test, which had E2E coverage only in suites being removed.

Accept only EACCES and EPERM as Landlock refusals. Wait until the MCP
default-version sandbox is ready, since deleting a provisioning sandbox
takes about 50s on rootless Podman.

Drop the gateway-mtls Docker E2E row and its mise task, which relied on
with-docker-gateway.sh; the tmachine row runs the suite. Add README rows
for the new conformance modules.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>

* ci: retrigger workflows after GitHub Actions incident

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>

---------

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
Signed-off-by: John Myers <johntmyers@users.noreply.github.com>
Co-authored-by: John Myers <johntmyers@users.noreply.github.com>
…ushes configuration (ai-openshell#5622)

* test(conformance): run the conformance suite against a gateway that pushes configuration

Add the ubuntu-docker-rootful-config-push tmachine environment. Its setup
playbook, config-push.yaml, adds config_delivery_mode = "push" to the
gateway overrides through the gateway_overrides role, which the deb, rpm
and binaries installers apply to the gateway's configuration.

A push gateway lets a supervisor without push support keep polling, so the
conformance suite passes in either mode.

E2E Suites runs the conformance family in the new environment with the deb
installer. mise run e2e:testkit:push runs the conformance suite against a
local Docker gateway in push mode.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>

* test(e2e): refuse a reused gateway when a lane sets the delivery mode

with-docker-gateway.sh reuses the gateway named by
OPENSHELL_GATEWAY_ENDPOINT instead of starting one, and only a gateway it
starts reads OPENSHELL_CONFIG_DELIVERY_MODE. A push lane pointed at an
existing polling gateway could pass without testing push, since
conformance passes in either mode. Exit when both are set.

e2e:testkit:push now runs through e2e/rust/e2e-docker.sh in
conformance-only mode, so it uses the shared conformance helper and the
Docker entries in tests/suites/unsupported.yaml.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>

* test(e2e): replace the Docker push lane with the conformance push row

The ubuntu-docker-rootful-config-push conformance row runs the same suite
against a push-mode gateway, so the rust-docker-push job ran it twice per
E2E run. Remove that job with e2e:rust:push, e2e:testkit:push, the
e2e-config-push feature and its config_push test, and the wrapper guard
that only protected those tasks. policy_update covers the policy behavior
config_push checked; the push-session log check returns with the
config_push port.

The config-push environment now publishes
OPENSHELL_TEST_CONFIG_DELIVERY_MODE=push so later checks can read the
mode instead of the environment name.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>

---------

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
)

OpenShell has been donated to the CNCF, but the License Headers check
still failed any file without the NVIDIA SPDX-FileCopyrightText line, and
license:update wrote that line into every new file. CNCF guidance does
not require or recommend per-contributor copyright notices, and asks
that existing notices not be changed or removed without the holder's
permission:
https://github.com/cncf/foundation/blob/main/copyright-notices.md

CI now runs the organization's shared spdx-check action, which requires
only SPDX-License-Identifier: Apache-2.0 and, given the PR or merge-group
base, fails when a file loses a copyright notice its header had there.
license:check and license:update require and add only the license line.
The style guide, docs template, and agent instructions say not to add or
remove copyright lines.

Signed-off-by: Kris Hicks <khicks@nvidia.com>
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
Co-authored-by: red-hat-konflux[bot] <126015336+red-hat-konflux[bot]@users.noreply.github.com>
…r digest to 634691a (#201)

Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
Co-authored-by: red-hat-konflux[bot] <126015336+red-hat-konflux[bot]@users.noreply.github.com>
…k degradation from the parent (ai-openshell#5216)

* refactor(sandbox): prebuild seccomp filters before fork

The workload pre_exec hooks ran in the forked child of a multithreaded
process and compiled both seccomp filters there: BTreeMap rule building,
seccompiler BPF compilation, and a debug! callsite whose output landed on
the workload's own pipe or PTY. Post-fork allocation and tracing can
deadlock when another thread holds the allocator or subscriber lock at
fork time.

Split seccomp::apply into a parent-side prepare(policy) that compiles the
main and compatibility filters into BpfPrograms (with the socket-domain
debug log moved into it), and a non-allocating PreparedSeccomp::install
for the child that keeps set_no_new_privs and the filter order verbatim
(compatibility first, then main). PreparedSandbox now carries the prebuilt
programs instead of the SandboxPolicy it kept only so the child could
rebuild them, so child-side compilation cannot be reintroduced.

Bundle the prepared sandbox and the child self-protection program into a
ChildSandboxInstall struct that replaces the cfg-gated positional
parameters of pty::install_pre_exec* and is consumed by an install-only
enforce in the forked child. seccomp::apply is removed with no remaining
caller; the fresh-process paths keep using prepare plus install through
sandbox::linux::enforce.

Add a behavioral fork test that compiles the filters parent-side, installs
them in the forked child in the enforce_capability_free order, and probes
one role-specific outcome per filter (memfd_create EPERM for the main
filter, pidfd_open ENOSYS for the compatibility filter, close_range with
CLOSE_RANGE_UNSHARE EPERM for the child self-protection filter).

Part of ai-openshell#5180

Signed-off-by: Emilien Macchi <emacchi@redhat.com>

* fix(sandbox): report Landlock best-effort failure from the parent

On a best-effort Landlock failure, landlock::enforce emitted an OCSF
DetectionFinding from the forked child between fork and exec, where
format! allocations and the OCSF thread-local plus tracing dispatch can
deadlock after fork of a multithreaded process, and where the emission
was already unreliable because the child has no working tracing
subscriber.

Return the failure from landlock::enforce as a LandlockOutcome instead:
Enforced, or Degraded with a cause extracted without allocation (the
restrict_self errno, or an explicit NoErrno sentinel when the error
chain carries no io::Error; the landlock crate's EINVAL-defaulting
helper is deliberately avoided so the sentinel cannot conflate with a
genuine EINVAL). hard_requirement failures keep returning Err through
the existing spawn-error path.

Spawn surfaces create a LandlockReportPipe (both ends CLOEXEC) before
fork. The pre_exec closure captures only the raw write fd, never an
OwnedFd: the Command moves onto the serialized workload launcher
thread, and an owned write end dropped there would hold EOF hostage to
launcher-thread scheduling. The forked child writes one fixed-size,
async-signal-safe record per degraded ruleset before installing the
child self-protection filter, so the write cannot block on the seccomp
broker; the parent drops its own write end right after spawn returns
(on success or failure) and drains to EOF on the spawning thread,
emitting one finding per record through a builder shared with the
fresh-process enforce path. Best-effort spawns still succeed.

The report fd is a required parameter of ChildSandboxInstall, so a
spawn surface that forgets to plumb it is a compile error.

The finding keeps its uid, title, and High severity; the message and
description are now errno-based because the child cannot format the
landlock error across the pipe.

Part of ai-openshell#5180

Signed-off-by: Emilien Macchi <emacchi@redhat.com>

* docs(sandbox): correct pre_exec SAFETY comments

The SAFETY comments on the workload pre_exec hooks claimed that "all
allocations and policy compilation happened before spawn" and that the
process.rs hook only calls setpgid and setns — none of which matched
the code, which compiled both seccomp filters and emitted OCSF from
the forked child (and never called setns at all).

Rewrite the three comments to describe what the hooks actually do now
that the filters are prebuilt and best-effort Landlock failures cross
to the parent as fixed-size pipe records: raw session/TTY syscalls and
installation of parent-prebuilt sandbox state, with the success and
degradation paths free of allocation, tracing, and OCSF emission. State
the remaining caveat precisely — only a hard error return may allocate,
like std's own pre_exec error reporting — instead of overclaiming.

Closes ai-openshell#5180

Signed-off-by: Emilien Macchi <emacchi@redhat.com>

* fix(sandbox): carry real errnos across the pre_exec error pipe

The pre_exec hooks converted child-side failures with
io::Error::other(err.to_string()), which allocates between fork and
exec and collapses to std's EINVAL fallback: std reports a pre_exec
error across its CLOEXEC pipe by raw errno only, so neither the
formatted message nor the real errno ever reached the parent.

The child-side failure path now returns errno-based io::Errors end to
end. harden_child_process, PreparedSeccomp::install, landlock::enforce,
enforce_capability_free, and ChildSandboxInstall::enforce return
std::io::Result and map each failure to its innermost kernel errno,
which the rustix, prctl, seccompiler, and landlock errors all carry.
The pre_exec SAFETY comments now describe std's actual error transport
instead of claiming it allocates.

Part of ai-openshell#5180

Signed-off-by: Emilien Macchi <emacchi@redhat.com>

---------

Signed-off-by: Emilien Macchi <emacchi@redhat.com>
* test(continuity): upgrade rpm packages on rootless Podman

Add an `rpm-upgrade-source` installer that provisions a Fedora guest from the
latest release's openshell and openshell-gateway packages and release-tagged
images, and stages the candidate packages and images with the `upgrade`
disruption that installs them. The scenarios stay unchanged and run under it
like any other disruption.

The upgrade step selects the candidate's runtime images before it installs,
because the gateway package restarts the user service itself after an upgrade
(%systemd_user_postun_with_restart). It restarts the service only if the
package did not: a second restart right after the package's interrupts the new
gateway while it brings its sandboxes back, which left the pre-upgrade sandbox
in an error phase. It checks both installed packages against the candidates'
versions and supports rootless Podman only.

Teach the prepare-upgrade-source action the rpm package type, which downloads
both RPMs and verifies them against the release's single checksum file, and
add a fedora-podman-rootless row that runs with `upgrade-source`.

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* test(continuity): cover rootful Podman

Render the rpm upgrade step for the user that runs the gateway, which the
packaged-gateway role detects: the login user under rootless Podman and root
under rootful. Every action in the step, including loading the images into
Podman storage, writing gateway.env, and talking to the user manager, runs as
that user. The step no longer refuses rootful Podman, and checks that the
service is loaded for the gateway user through `show` instead of `cat`, which
fails for root.

Add fedora-podman-rootful rows to the continuity matrix: gateway-restart on
the rpm installer, and upgrade on rpm-upgrade-source with the other upgrade
rows.

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* fix(tmachine): read the SSH password from SSH_ASKPASS

sshpass sometimes answered the password prompt with a password sshd rejected, which failed about 3% of logins on a loaded host with 'Permission denied'. tmachine opens a new connection for every command, so a run made hundreds of logins and hit the flake often. Pass the password through SSH_ASKPASS instead. It failed none of 180 logins in the same test.

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* ci(continuity): record the upgrade baseline tag

The baseline is the latest release when the run starts, so the same candidate can pass one day and fail the next. Write the tag to the run summary and a notice annotation, in the select job and in each upgrade row, so a result says which release it upgraded from.

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* docs(continuity): note the rpm restart wait as a TODO

Record that the wait for the package's restart should be measured and, if the restart is already visible when dnf returns, replaced with a single InvocationID read.

Signed-off-by: Evan Lezar <elezar@nvidia.com>

---------

Signed-off-by: Evan Lezar <elezar@nvidia.com>
…i-openshell#6161)

* fix(helm): drop default control plane resource limits

Keep the gateway and shared-supervisor resource requests so scheduling and
HPA utilization targets keep working, but stop setting default CPU and memory
limits. Helm merges value maps, so a requests-only override such as
resources.requests.memory=4Gi kept the 2Gi default limit and Kubernetes
rejected the Pod. Limits can also throttle or OOM-kill the control plane under
load. Operators can still set limits explicitly.

Signed-off-by: Simon Scatton <sscatton@nvidia.com>

* fix(helm): drop default control plane resource requests

Leave gateway and shared-supervisor resources unset by default, as before
ai-openshell#6018, so the chart schedules on small evaluation clusters. Document the
suggested starting requests instead. Enabling the gateway HPA CPU target
still requires resources.requests.cpu, which the chart validates.

Signed-off-by: Simon Scatton <sscatton@nvidia.com>

---------

Signed-off-by: Simon Scatton <sscatton@nvidia.com>
* fix(odh): use PQC base for Konflux sandbox runtime

Signed-off-by: Krzysztof Malczuk <kmalczuk@redhat.com>

* fix(odh): track sandbox PQC runtime updates in Renovate

Signed-off-by: Krzysztof Malczuk <kmalczuk@redhat.com>

---------

Signed-off-by: Krzysztof Malczuk <kmalczuk@redhat.com>
…nshell#6164)

Credential preparation appeared in traces as an unlabeled stage, or not
at all for request bodies and SigV4 credential lookup, so a trace could
not tell a prepared credential from one that was not needed, refused,
failed or stale, or say how it was placed.

Each credential stage now records openshell.credential.preparation and,
for a prepared credential, its mechanism and placement, built from what
the rewriter reports it substituted. Static, body, SigV4 and token-grant
preparation classify their own failures through typed errors, and token
grants also record their bounded failure code and stage. A stage dropped
without a result records cancelled. Credential values are never
recorded, and client responses are unchanged.

Closes ai-openshell#5395

Signed-off-by: Kris Hicks <khicks@nvidia.com>
…e files (ai-openshell#6143)

* chore(tests): include every tests/support directory as a workspace member

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* refactor(tmachine): define each feature environment in its own file

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* docs(tests): document environment variables only in the crate that reads them

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

---------

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Upstream to ODH sync: 62 upstream commits (merge base 9996a59,
upstream head 909575d).

Conflict and carry resolutions:

- e2e/rust/Cargo.toml: keep the downstream-only odh [[test]] block; drop
  the otlp_relay block upstream removed when the test moved to the Rust
  suites (ai-openshell#5978).
- tasks/scripts/stage-prebuilt-binaries.sh: "all" now stages gateway
  driver-docker driver-podman sandbox supervisor cli. Upstream split the
  drivers into separate components; this fork carries cli.
- e2e/python/: retained as a midstream carry. Upstream migrated the
  Python E2E suites to Rust (ai-openshell#5624), but the ODH runner, the python
  tiers in e2e/rust/tests/odh/tiers.toml, and odh/python-gates.toml
  still execute this suite, so it stays until they migrate together.
- .github/workflows/branch-checks.yml: exclude the midstream-only
  directories (.agentic-ci, .tekton, deploy/konflux, deploy/rhoai) from
  the spdx-check action, matching scripts/update_license_headers.py.
- .github/workflows/publish-test-inputs.yml: derive the ghcr namespace
  from the calling repository (lowercased, as the release workflows do)
  so this fork's GITHUB_TOKEN can write packages.

Unblocks the daily auto-merge, which was failing on the two content
conflicts (rhods-devops-infra run 47004408865).

Closes RHAI-138971

Signed-off-by: Emilien Macchi <emacchi@redhat.com>
Signed-off-by: Jim Meyer <jimeyer@nvidia.com>
…iew replay harness (ai-openshell#5779)

* feat(agents): add a Gator review team and review replay harness

Add bin/review-team, which runs the generalist reviewer plus focused
members chosen by review mode and changed code, merges their findings,
and checks that every member finding is accounted for. Networking and
contracts members run by default; correctness and security are opt-in.

Add a replay harness that reruns a reviewer on pinned past PRs with
known later fixes and grades the findings, to measure reviewer changes.

Gator's review step is unchanged until the team is wired in.

Closes ai-openshell#5778

Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com>
Signed-off-by: John Myers <johntmyers@users.noreply.github.com>

* feat(agents): check change blast radius and revalidation ordering in reviews

Add networking checklist rules: control-plane changes such as policy
reloads, approvals, and credential rotations disrupt only the
connections they affect, and a targeted check that replaces a
conservative one reads consistent, fully published state with versions
that change on every transition. The contracts member now compares the
pull request description's claims with the behavior the diff changes.

Add replay cases for ai-openshell#2373, which closed every relay on each policy
reload, and ai-openshell#5361, whose credential revalidation raced publication.

Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com>
Signed-off-by: John Myers <johntmyers@users.noreply.github.com>

* fix(agents): kill replay reviewers that ignore the timeout signal

Send SIGKILL to the reviewer's process group when it is still running
REPLAY_KILL_GRACE_SECONDS (default 10) after the timeout SIGTERM, so a
reviewer that ignores SIGTERM cannot keep a case from finishing. Point
replay tasks and the default remote at ai-openshell/openshell.

Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com>
Signed-off-by: John Myers <johntmyers@users.noreply.github.com>

* feat(agents): add a compatibility member to the Gator review team

Add review-compatibility, which checks pull requests for breaking changes
to existing public contracts (Rust SDK, API behavior, CLIs, configuration,
policy, Helm, persisted state) under the 0.x release train policy. It runs
on initial and follow-up reviews. Its prompt is separate from the CI
compatibility review and uses Gator's finding format; maintainers accept a
break by waiving the finding.

The contracts member no longer verifies CI compatibility review findings
and leaves public-interface breaks to the new member.

Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com>
Signed-off-by: John Myers <johntmyers@users.noreply.github.com>

* feat(agents): check Gator fixes and keep reviewing after the budget runs out

Follow-up and critical-only reviews now return a fix check for every open
Gator finding. The reviewer treats each fix as new code, checks it against
the finding's invariant, and reports a defect the fix introduces as a new
finding. Gator resolves a finding only when its fix check says it is
fixed. review-team requires the generalist to cover every open finding and
carries the fix checks through the merge.

Critical-only reviews now report Warnings the latest delta introduces. The
validator marks supported Warnings in that mode as held rather than
blocking, so Gator still posts only Criticals and asks a maintainer about
held Warnings. The correctness and security members now run by default in
critical-only mode.

Bump payload_version to 17 for the skill, reviewer contract, and validator
changes.

Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com>
Signed-off-by: John Myers <johntmyers@users.noreply.github.com>

* feat(agents): choose Gator's single reviewer or review team at launch

Agent manifests can declare runtime options under runtime.options, each
with allowed values and a default. The launcher accepts
--option NAME=VALUE, rejects undeclared names and values, and passes the
choice to the sandbox as OPENSHELL_AGENT_OPTION_<NAME>. The supervisor
renders it into the prompt as {{OPTION_<NAME>}}, and fails closed when a
template uses an option the launcher did not pass. Options are launch
inputs, so the tooling image is the same for every choice.

Gator declares reviewer=single|team, defaulting to single. With team, the
review step saves the mode-appropriate diff to review.diff and runs
review-team in place of the principal-engineer-reviewer subagent. A team
failure is the same transient reviewer_subagent_failed result. The image
now installs review-team.

Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com>
Signed-off-by: John Myers <johntmyers@users.noreply.github.com>

* feat(agents): launch Gator as the gator-review-bot GitHub App

Gator declares a github=user|app runtime option. user keeps today's
github-gator provider from `gh auth token`. app attaches a github-gator-app
provider whose installation token the gateway mints and rotates for the
gator-review-bot app, scoped to ai-openshell/openshell with the
permissions listed in agent.yaml. The operator supplies the PEM private key
path in GATOR_GITHUB_APP_PRIVATE_KEY_FILE; the gateway keeps the key and
the sandbox sees only a placeholder token.

The shared launcher gains what this needs:
- providers can be selected by a runtime option value;
- a file credential source, and path_env to read a source path from the
  host environment;
- credential_mode runtime for providers whose only credential comes from
  gateway refresh;
- secret refresh material passed to the CLI through its environment with
  --secret-material-env instead of on its command line, which also covers
  the Codex refresh token.

Installation tokens cannot call GET /user, so the gate skill uses a
repository probe for its health check, and approve-gator-workflow skips the
user permission lookup under the app identity, where GitHub enforces the
installation's actions permission.

Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com>
Signed-off-by: John Myers <johntmyers@users.noreply.github.com>

* feat(agents): let Gator approve maintainer-authored PRs as the GitHub App

When a PR reaches gator:approval-needed and Gator runs as the
gator-review-bot app, Gator posts its handoff as an approving review on
the current head if MAINTAINERS.md on the default branch lists the PR
author. Other PRs keep the existing handoff comment, so a bot approval
never invites a merge of a contributor's change on Gator's word.

The gh wrapper enforces this: it refuses an approval under the user
identity, where the approval would be the operator's own maintainer
approval, and refuses one on a stale head, a closed or draft PR, or for
an author MAINTAINERS.md does not link. Gator never treats its own
approval as maintainer approval; the OpenShell / Maintainer Approval
check decides what it counts for.

Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com>
Signed-off-by: John Myers <johntmyers@users.noreply.github.com>

* feat(agents): harden Gator reviews and enable App approvals

Signed-off-by: John Myers <johntmyers@users.noreply.github.com>

* feat(agents): budget Gator specialist consults and record coverage

Signed-off-by: John Myers <johntmyers@users.noreply.github.com>

* fix(gator): verify review thread authorship

Signed-off-by: John Myers <johntmyers@users.noreply.github.com>

* fix(gator): bound replay reviewer shutdown and cleanup

Signed-off-by: John Myers <johntmyers@users.noreply.github.com>

* fix(gator): check review and CI before App approval

Signed-off-by: John Myers <johntmyers@users.noreply.github.com>

* fix(gator): honor maintainer clearance on the reviewed head

Signed-off-by: John Myers <johntmyers@users.noreply.github.com>

* fix(gator): check all blockers in spaced finding lists

Signed-off-by: John Myers <johntmyers@users.noreply.github.com>

* fix(gator): scope review history to the active GitHub identity

Signed-off-by: John Myers <johntmyers@users.noreply.github.com>

* docs(gator): clarify default App approval behavior

Signed-off-by: John Myers <johntmyers@users.noreply.github.com>

---------

Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com>
Signed-off-by: John Myers <johntmyers@users.noreply.github.com>
Co-authored-by: John Myers <johntmyers@users.noreply.github.com>
…tory (ai-openshell#5908)

* test(conformance): port scheduling and signal mediation probes

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* test(e2e): run registered HTTP middleware hooks in testkit

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* refactor(e2e): simplify the HTTP hooks test fixture

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* test(e2e): run the middleware HTTP hooks suite only on tmachine

The tmachine environment covers the suite, so the Docker wrapper no longer starts the content guard, and the e2e:middleware-http-hooks task and its Docker E2E row are removed.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

---------

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
chore(sync): Upstream to ODH sync (2026-12-03)
Signed-off-by: Evie Howard <evhoward@redhat.com>
…tors/eviehoward

CARRY: test(odh): remove stale upstream test filters
@coderabbitai

coderabbitai Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

Ask an organization administrator to verify that this bot has an active assigned CodeRabbit review seat. See the seat-assignment guide. After the seat is confirmed, request a review again.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 033d5cb9-5f4b-44e5-9572-9772447f3c63

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

@rhods-devops-app
rhods-devops-app Bot merged commit 8717521 into stable Dec 4, 2026
121 of 124 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.