Repository navigation
Tags
Tags
chore(deps): refresh blocked advisory exceptions (#5637) * chore(deps): defer chrono advisory pending time API migration Record RUSTSEC-2026-0543 for chrono 0.4.45. No patched release exists; replacing direct time APIs and transitive Kubernetes, OAuth2, and OCI consumers requires a coordinated migration. Keep all other cargo-deny policies unchanged. Signed-off-by: Adrien Langou <alangou@nvidia.com> * chore(deps): record crypto policy blocker for RSA advisory russh 0.65.2 now accepts patched rsa 0.10.0, but rsa adds a mandatory hmac dependency outside the current wrapper policy. Retain RUSTSEC-2023-0071 until that policy change is reviewed and authorized, then upgrade and validate SSH and OIDC test-fixture consumers. Signed-off-by: Adrien Langou <alangou@nvidia.com> --------- Signed-off-by: Adrien Langou <alangou@nvidia.com>
chore(deps): refresh blocked advisory exceptions (#5637) * chore(deps): defer chrono advisory pending time API migration Record RUSTSEC-2026-0543 for chrono 0.4.45. No patched release exists; replacing direct time APIs and transitive Kubernetes, OAuth2, and OCI consumers requires a coordinated migration. Keep all other cargo-deny policies unchanged. Signed-off-by: Adrien Langou <alangou@nvidia.com> * chore(deps): record crypto policy blocker for RSA advisory russh 0.65.2 now accepts patched rsa 0.10.0, but rsa adds a mandatory hmac dependency outside the current wrapper policy. Retain RUSTSEC-2023-0071 until that policy change is reviewed and authorized, then upgrade and validate SSH and OIDC test-fixture consumers. Signed-off-by: Adrien Langou <alangou@nvidia.com> --------- Signed-off-by: Adrien Langou <alangou@nvidia.com>
fix(deps): update russh to 0.65.1 (#5601) Update the root Cargo.lock resolution for GHSA-9264-jvgf-6w2f and GHSA-736f-c93q-9fwx. The patched release verifies the server host key before calling kex_done and rechecks SSH agent lock state after confirmation. Drop the generic-array compatibility edge no longer enabled by russh. Signed-off-by: Adrien Langou <alangou@nvidia.com>
test(conformance): port sandbox lifecycle and API e2e tests to testkit ( #5431) * test(conformance): port sandbox lifecycle and API e2e tests to testkit Move the driver-agnostic sandbox lifecycle, labels, templates, settings, image, process, Landlock and upload tests from e2e/rust to the conformance suite, the Podman OCI identity test to the podman driver suite, and the doctor, proxy-preflight and WebSocket tunnel checks to crate tests. Move the live-Internet benchmark to mise run perf:live-internet. Delete the legacy files and their references. Signed-off-by: Matthew Grossman <mgrossman@nvidia.com> * test(testkit): add CLI sandbox, exec success, details, wait_absent and test image helpers Add cx.cli_sandbox (with policy files), ExecOutput::success, cx.sandbox_details, cx.wait_absent and Engine::build_test_image, use them in the ported lifecycle tests, and replace the duplicate policy file, sandbox get and test image code in the host-gateway, oci-image and podman suites. Signed-off-by: Matthew Grossman <mgrossman@nvidia.com> * test(conformance): use ExecOutput::success for exec checks Replace hand-written exit-code checks in the smoke, lifecycle, persistent_workspace, file_transfer and policy_advisor suites. Polls and checks that expect a failure keep reading the exit code. Signed-off-by: Matthew Grossman <mgrossman@nvidia.com> * test(testkit): add create_ready, expect_stdout, poll_exec and deadline helpers Add SandboxBuilder::create_ready, ExecOutput::expect_stdout, Sandbox::poll_exec, Context::delete_and_expect_absent and testkit::with_deadline, and convert std::io::Error into testkit::Error so I/O results take .context directly. Use them across the conformance suite, which also gets shared template, global-setting and label-list helpers and a split on-failure restart poll. Make Engine::build_image private so callers go through build_test_image, which removes the image. Signed-off-by: Matthew Grossman <mgrossman@nvidia.com> * test(server): drive the WebSocket tunnel test through the SDK tunnel proxy Replace the hand-written WebSocket bridge with openshell_sdk::edge_tunnel::start_tunnel_proxy, so the test covers the client half of the tunnel and its edge-token headers as well as the router. Signed-off-by: Matthew Grossman <mgrossman@nvidia.com> * test(gateway): build the preflight report once Signed-off-by: Matthew Grossman <mgrossman@nvidia.com> * refactor(testkit): make the sandbox and output helpers uniform Move expect_listed, expect_absent, wait_absent and the CLI's sandbox get JSON (now get_json) from Context onto Sandbox, and drop delete_and_expect_absent. Give ExecOutput failure() and CliOutput expect_stdout(), so both outputs offer the same checks. Put with_deadline's description first, like poll_until. Make CliSandboxBuilder::run consume the builder like create, and rename its policy setter to policy_yaml. Update the testkit README's list of what a test can do. Signed-off-by: Matthew Grossman <mgrossman@nvidia.com> * refactor(testkit): reuse YamlFile and report stdout when CLI checks fail Replace CliSandboxBuilder's private PolicyFile with testkit::YamlFile, and drop YamlFile's map_err calls now that I/O errors convert into testkit::Error. CliOutput::success now includes stdout in its failure message, like ExecOutput::success, since many commands report errors there. Signed-off-by: Matthew Grossman <mgrossman@nvidia.com> * refactor(testkit): use the new sandbox helpers with the credential gating changes Add SandboxBuilder::image and CliSandboxBuilder::create_ready, so both builders set an image and wait for Ready the same way. Convert tonic::Status into testkit::Error, keeping its code, so gRPC results take .context() directly, and drop Error::from_status. Create the host-gateway sandbox with cx.sandbox(..).image(..).policy(..) instead of a hand-written CLI create. In credential gating, use create_ready and poll_exec. Drop the remaining map_err calls on I/O results in host-server-support. Signed-off-by: Matthew Grossman <mgrossman@nvidia.com> * test(gateway): compile the proxy preflight tests only with a proxy-table driver The gateway feature matrix builds without Docker, Podman or the VM driver, where the test file has no drivers to check. Signed-off-by: Matthew Grossman <mgrossman@nvidia.com> * test(conformance): wait for labeled sandboxes and allow a 60s on-failure restart Deleting a Docker sandbox that is still starting fails with a 409 because its supervisor volume is in use, so the labels test now waits for Ready before cleanup. The VM driver needs more than 45s to report an on-failure restart; the original e2e test allowed 60s. Signed-off-by: Matthew Grossman <mgrossman@nvidia.com> * refactor(testkit): share sandbox handles and output checks across builders Context, SandboxBuilder, Sandbox and CliSandboxBuilder now share one Handles value (clients, CLI, cleanup), so CliSandboxBuilder owns its state like SandboxBuilder instead of borrowing the context. Both builders are #[must_use] at the type level, and CliSandboxBuilder::image and policy_yaml take impl Into<String> like SandboxBuilder::image. ExecOutput and CliOutput run success, failure and expect_stdout through one shared check, so their messages match and failure() also reports stderr. ExecOutput.command is renamed description, since it names the exec and its sandbox. CliOutput::message is renamed report_text. serde_json and serde_yml errors convert into testkit::Error, which removes the last map_err(Error::from_error) calls. expect_listed uses let-else instead of ensure plus expect. kubernetes-updates uses create_ready. Signed-off-by: Matthew Grossman <mgrossman@nvidia.com> * refactor(testkit): tighten error helpers and document test scope Read errors in gateway.rs and the image test use .context(..) now that the error types convert. Error::from_error and from_display are crate-private. Document why the global-setting helpers take &Cli, why the template test names and adopts its sandbox by hand, SandboxBuilder::restart_policy, and that the --no-keep test checks only gateway-visible removal. Signed-off-by: Matthew Grossman <mgrossman@nvidia.com> * test(e2e): keep edge tunnel and ephemeral cleanup e2e until their ports Restore edge_tunnel_e2e with the --enable-websocket-tunnel flag in the Docker and Podman gateway wrappers, and ephemeral_cleanup with its Podman and VM lane entries. Both check what conformance cannot: the tunnel flag's wiring through a real gateway, and that drivers remove their resources. They move in later batches. Remove the in-process WebSocket tunnel server test and its openshell-sdk dev-dependency, which checked the listener but not the flag wiring. The --no-keep conformance test now says the driver-resource check stays in ephemeral_cleanup. Signed-off-by: Matthew Grossman <mgrossman@nvidia.com> * chore(tasks): drop the live-Internet perf benchmark port The two live-Internet benchmarks were manual, needed the live Internet, and nothing referenced them. Remove the Python port and its perf:live-internet task instead of keeping it. #5472 tracks whether to bring one back. Signed-off-by: Matthew Grossman <mgrossman@nvidia.com> * test(e2e): restore the docker proxy settings insertion unit test proxy_settings_are_inserted_before_nested_driver_tables covers insert_docker_driver_settings, which the remaining corporate proxy tests still use. It was removed with the incoherent-configuration test by mistake. Signed-off-by: Matthew Grossman <mgrossman@nvidia.com> * test(conformance): ignore the on-failure restart test until #5507 On the VM driver the replacement sandbox never starts: the preserved overlay disk fails e2fsck, and the sandbox stays in Starting. The test fails on every VM lane. Ignore it with a link to #5507, which also tracks removing the ignore. Signed-off-by: Matthew Grossman <mgrossman@nvidia.com> * test(e2e): keep the on-failure restart and global settings tests in e2e/rust Restore `on_failure_policy_replaces_runtime_and_preserves_workspace` in `sandbox_lifecycle.rs` and `settings_management.rs` as they were, and drop their conformance counterparts. The on-failure restart test ran on the Docker and Kubernetes lanes but never on VM or Podman. Ported to conformance it fails on every VM row (#5507), and an `#[ignore]` there removes the coverage it gave Docker and Kubernetes. The global settings test changes a setting for the whole gateway, so it can't share a conformance run with other tests until the runner has a test group for it (#5295). `sandbox_setting_round_trip` stays in conformance. Signed-off-by: Evan Lezar <elezar@nvidia.com> * test(conformance): only read the global setting in the settings round trip sandbox_setting_round_trip deleted the gateway-wide ocsf_json_enabled value and restored it on cleanup, which changes every sandbox on a shared gateway while it runs. Fail with a hint when a global value is set instead, as policy_advisor does. Signed-off-by: Matthew Grossman <mgrossman@nvidia.com> * docs(conformance): point the global settings test at #5527 Signed-off-by: Matthew Grossman <mgrossman@nvidia.com> --------- Signed-off-by: Matthew Grossman <mgrossman@nvidia.com> Signed-off-by: Evan Lezar <elezar@nvidia.com> Co-authored-by: Evan Lezar <elezar@nvidia.com>
feat(skills): extract issue and PR labeling (#5355) * feat(labels): add bounded GitHub transport Signed-off-by: Jim Meyer <jimeyer@nvidia.com> * fix(labels): bound transport cleanup and validate continuation links Signed-off-by: Jim Meyer <jimeyer@nvidia.com> * feat(labels): validate classification and plan reconciliation Signed-off-by: Jim Meyer <jimeyer@nvidia.com> * fix(labels): require trusted malformed removal candidates Signed-off-by: Jim Meyer <jimeyer@nvidia.com> * feat(labels): prepare expandable evidence and issue eligibility Signed-off-by: Jim Meyer <jimeyer@nvidia.com> * fix(labels): preserve evidence consistency and bound expanded packets Signed-off-by: Jim Meyer <jimeyer@nvidia.com> * feat(labels): persist trusted examination checkpoints Signed-off-by: Jim Meyer <jimeyer@nvidia.com> * fix(labels): validate source coverage before normalization Signed-off-by: Jim Meyer <jimeyer@nvidia.com> * fix(labels): recognize verified current stale closure protocol Signed-off-by: Jim Meyer <jimeyer@nvidia.com> * fix(labels): allow bounded stale closure request skew Signed-off-by: Jim Meyer <jimeyer@nvidia.com> * feat(labels): reconcile item labels with checkpoint recovery Signed-off-by: Jim Meyer <jimeyer@nvidia.com> * fix(labels): bind assessment material and preserve inspection boundaries Signed-off-by: Jim Meyer <jimeyer@nvidia.com> * fix(labels): bind evidence citations to delivered source facts Signed-off-by: Jim Meyer <jimeyer@nvidia.com> * fix(labels): finalize exposure after core packet hydration Signed-off-by: Jim Meyer <jimeyer@nvidia.com> * fix(labels): return successful exit status for previews Signed-off-by: Jim Meyer <jimeyer@nvidia.com> * feat(skills): extract shared issue and PR labeling Signed-off-by: Jim Meyer <jimeyer@nvidia.com> * docs(skills): clarify assessment-only continuation Signed-off-by: Jim Meyer <jimeyer@nvidia.com> * docs(labels): preserve approved design and implementation contracts Signed-off-by: Jim Meyer <jimeyer@nvidia.com> * docs(labels): clarify HTTP write pacing for mutation batches Signed-off-by: Jim Meyer <jimeyer@nvidia.com> * fix(labeler): verify additions before destructive reconciliation Signed-off-by: Jim Meyer <jimeyer@nvidia.com> * refactor(labels): simplify evidence and semantic freshness Signed-off-by: Jim Meyer <jimeyer@nvidia.com> * chore: exclude local superpowers planning documents Signed-off-by: Jim Meyer <jimeyer@nvidia.com> * docs(skills): remove issue labeling paragraph hard wrapping Signed-off-by: Jim Meyer <jimeyer@nvidia.com> * fix(labels): follow accepted-work library rename after rebase Signed-off-by: Jim Meyer <jimeyer@nvidia.com> * refactor(labels): simplify guidance and stale-closure detection Signed-off-by: Jim Meyer <jimeyer@nvidia.com> * fix(labels): pass Python formatting lint and type checks Signed-off-by: Jim Meyer <jimeyer@nvidia.com> --------- Signed-off-by: Jim Meyer <jimeyer@nvidia.com>
fix(tmachine): restore package-installed Podman qualification (#4289) * test(tmachine): apply environment gateway overrides to the packaged gateway An environment overrides gateway settings by writing the tables to change to /etc/openshell-test/gateway-overrides.toml. Every installer applies the file with merge-gateway-toml.py: the binaries installer to the configuration it generates, and the deb and rpm installers to the service user's gateway.toml, which starts from the package's default configuration instead of replacing it. Each key replaces the same key in the base file or is added to its table, comments are kept, and a result that is not valid TOML fails the setup. Run the Podman user-namespace driver suites with the rpm installer. Signed-off-by: Evan Lezar <elezar@nvidia.com> * test(tmachine): run e2e-podman against the packaged gateway Detect the installer in the e2e-podman playbook: the binaries installer keeps its HTTP gateway, and the package installers use /usr/bin/openshell and the registered openshell gateway. Run the lane on rpm in CI. Signed-off-by: Evan Lezar <elezar@nvidia.com> * fix(tmachine): harden the gateway TOML merge against unhandled statements Treat array-of-tables headers as table boundaries so replacing a value before one no longer consumes its header. Require the overrides to be valid TOML, accept single- and double-quoted keys, and fail when any override value is missing from the merged result instead of silently dropping it. Add regression tests and a mise task for them. Signed-off-by: Evan Lezar <elezar@nvidia.com> --------- Signed-off-by: Evan Lezar <elezar@nvidia.com>
fix(tmachine): restore package-installed Podman qualification (#4289) * test(tmachine): apply environment gateway overrides to the packaged gateway An environment overrides gateway settings by writing the tables to change to /etc/openshell-test/gateway-overrides.toml. Every installer applies the file with merge-gateway-toml.py: the binaries installer to the configuration it generates, and the deb and rpm installers to the service user's gateway.toml, which starts from the package's default configuration instead of replacing it. Each key replaces the same key in the base file or is added to its table, comments are kept, and a result that is not valid TOML fails the setup. Run the Podman user-namespace driver suites with the rpm installer. Signed-off-by: Evan Lezar <elezar@nvidia.com> * test(tmachine): run e2e-podman against the packaged gateway Detect the installer in the e2e-podman playbook: the binaries installer keeps its HTTP gateway, and the package installers use /usr/bin/openshell and the registered openshell gateway. Run the lane on rpm in CI. Signed-off-by: Evan Lezar <elezar@nvidia.com> * fix(tmachine): harden the gateway TOML merge against unhandled statements Treat array-of-tables headers as table boundaries so replacing a value before one no longer consumes its header. Require the overrides to be valid TOML, accept single- and double-quoted keys, and fail when any override value is missing from the merged result instead of silently dropping it. Add regression tests and a mise task for them. Signed-off-by: Evan Lezar <elezar@nvidia.com> --------- Signed-off-by: Evan Lezar <elezar@nvidia.com>
PreviousNext