Repository navigation
chore(windows): sync main and restore native compatibility - #5289
shailendra-nv wants to merge 220 commits into
Conversation
* ci: use lifecycle:frozen as the sole stale issue exemption Signed-off-by: Evan Lezar <[email protected]> * ci: support state:frozen as a stale issue exemption Signed-off-by: Evan Lezar <[email protected]> --------- Signed-off-by: Evan Lezar <[email protected]>
* Add triage duty tooling Signed-off-by: Evan Lezar <[email protected]> * docs(triage): surface dependabot prs early Signed-off-by: Evan Lezar <[email protected]> * docs(triage): keep local state untracked Signed-off-by: Evan Lezar <[email protected]> * docs(triage): clarify queue continuation order Signed-off-by: Evan Lezar <[email protected]> * docs(triage): remove playbook whitespace Signed-off-by: Evan Lezar <[email protected]> * docs(triage): address duty tooling review feedback Signed-off-by: Jim Meyer <[email protected]> * docs(triage): minimize changes to original duty skills Signed-off-by: Jim Meyer <[email protected]> --------- Signed-off-by: Evan Lezar <[email protected]> Signed-off-by: Jim Meyer <[email protected]> Co-authored-by: Jim Meyer <[email protected]>
The seccomp notification probes install their listener on a launcher thread and receive it over a channel. When the install fails, the launcher drops the sender and exits, so the broker only sees a closed channel and returns a generic "launcher disappeared" error. The thread is never joined, so the kernel's errno is discarded. That collapses several distinct failures into one opaque string: a notification struct size mismatch, a failed PR_SET_NO_NEW_PRIVS, and any non-EINVAL SECCOMP_SET_MODE_FILTER rejection all look identical to a pre-5.19 kernel refusing WAIT_KILLABLE_RECV, which the install path already retries without the flag. Join the launcher on the recv() failure path and propagate its error unchanged, so both the ErrorKind and raw_os_error survive to the qualification report. Apply this to all three probes. Signed-off-by: Russell Bryant <[email protected]> Signed-off-by: John Myers <[email protected]>
* fix(supervisor): use jsonl files for independent OCSF retention Signed-off-by: Matthew Grossman <[email protected]> * test(supervisor): trim and separate log retention regressions Signed-off-by: Matthew Grossman <[email protected]> * refactor(supervisor): drop legacy OCSF log migration Signed-off-by: Matthew Grossman <[email protected]> * docs(observability): remove legacy OCSF filename guidance Signed-off-by: Matthew Grossman <[email protected]> * docs(ocsf): remove stale supervisor log filename comments Signed-off-by: Matthew Grossman <[email protected]> * docs(supervisor): clarify denial reader log source Signed-off-by: Matthew Grossman <[email protected]> * docs(supervisor): retain OCSF JSON opt-in explanation Signed-off-by: Matthew Grossman <[email protected]> --------- Signed-off-by: Matthew Grossman <[email protected]>
Signed-off-by: Yuedong Wu <[email protected]>
…#4521) Add two scenarios to the shared oci-image feature suite: - An image without USER, with no policy identity, runs as the numeric default 1000:1000 without the supplementary groups of the image's UID 1000 account. - A policy run_as_user and run_as_group replace an image's USER root. Both check the main process, sandbox exec, and the workload container user. Factor policy temp files into a small helper. Closes #4431. Signed-off-by: Matthew Grossman <[email protected]>
…rkspace checks (#4527) In operator workspace mode the namespace label watcher fills the allowlist in the background after the driver starts. Workspace checks that ran before its first full listing rejected labeled namespaces with PermissionDenied, so provider refreshes due at gateway startup were parked as configuration errors for an hour. Track whether the allowlist has received an authoritative listing. Operator workspace checks now wait up to 10 seconds for it and return Unavailable if it is still missing, which callers such as the provider refresh worker retry shortly. An unreadable namespace file still yields a listed, empty allowlist that fails closed. Closes #4526 Signed-off-by: Mrunal Patel <[email protected]>
The core, server, and sandbox-backend build scripts always used the vendored protoc binary and ignored PROTOC, so a distro build could not use its system compiler. When PROTOC is set, use it and let prost resolve the includes (PROTOC_INCLUDE still applies); otherwise behave exactly as before. Contributes to #3510. Signed-off-by: politerealism <[email protected]>
rcgen 0.13.2 declares its optional x509-parser dependency with the verify feature, which pulls in ring. The workspace enabled rcgen's x509-parser feature for every crate, so the CLI and gateway linked ring alongside aws-lc even though nothing in them verifies signatures with x509-parser. Only SandboxCa::from_pem in openshell-supervisor-network needs CertificateParams::from_ca_cert_pem. Enable the feature there alone. ring no longer appears in the dependency trees of openshell, openshell-gateway or openshell-prover; it remains in openshell-supervisor until rcgen is upgraded. Release builds compile one package at a time, so the feature does not leak into the other binaries. Signed-off-by: politerealism <[email protected]>
Bumps [github/codeql-action/upload-sarif](https://github.com/github/codeql-action) from 4.37.7 to 4.38.3. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@ff2f1c6...24c5418) --- updated-dependencies: - dependency-name: github/codeql-action/upload-sarif dependency-version: 4.38.3 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…K module (#4439) * fix(python): let proto stub generation skip .pyi for older protoc Add a --no-pyi option to generate_python_proto.py for toolchains whose protoc predates --pyi_out, such as Fedora's grpcio-tools 1.48, and list python3-googleapis-common-protos and python3-httpx in the spec's Recommends and dist-info Requires-Dist, which the SDK needs to import. Default behavior is unchanged. Contributes to #3510. Signed-off-by: politerealism <[email protected]> * fix(rpm): install every SDK module and record the license accounting The python3-openshell %install copied only __init__.py, sandbox.py and _proto/, but the package imports .errors, .mutations and .providers and ships a py.typed marker, so an installed RPM could not import openshell. Install the missing files and add a %check that fails if any relative import in the installed package has no matching installed module. Importing the package needs grpcio, which the build environment lacks, so the check is static. Set License to the minimal SPDX expression covering every crate linked into the shipped binaries, keep the pure-Python subpackage at Apache-2.0, and note how the non-crate content is covered. Signed-off-by: politerealism <[email protected]> --------- Signed-off-by: politerealism <[email protected]>
The gateway only persisted its OCSF events to the JSONL file, so collectors had to tail that file. Adding `[openshell.gateway.otlp.ocsf]` now also exports each gateway OCSF event as an OTLP log record, using the same resource identity as gateway traces. `schema_version` optionally downgrades the exported JSON to OCSF 1.1 or 1.3. OTLP endpoints are now configured per signal, so OCSF events can go to a collector that feeds a SIEM while spans go elsewhere. The existing `[openshell.gateway.otlp]` `endpoint` is the default for every signal and on its own still enables trace export. `[otlp.traces]` overrides the trace endpoint, and `[otlp.ocsf]` takes its own `endpoint` or falls back to the default. Each record carries the OCSF JSON as its body, the event time as its timestamp, a severity mapped from `severity_id`, and `ocsf.*` and `openshell.sandbox.id` attributes for filtering without parsing the body. Records flow through a queue bounded by count and bytes to the SDK OTLP log exporter in batches bounded the same way. Failed exports retry with backoff; records lost to a full queue, an oversized body, or exhausted retries are counted in metrics and reported to the collector in an `openshell.ocsf.gap` record on the next successful export. The exporter lives in `openshell-otel` so other processes can share it. Helm deployments set the `traces` and `ocsf` tables through `gatewayConfig`, and the local development gateway tasks enable OCSF export. Closes #4499 Refs #2892 Signed-off-by: Kris Hicks <[email protected]>
Signed-off-by: Gordon Sim <[email protected]>
Supervisor OCSF events reached only the sandbox's local JSONL file and the shorthand log lines sent to the gateway, so collectors had no structured copy of most of the security record. When the gateway has `[openshell.gateway.otlp.ocsf]` configured, compute drivers now pass its endpoint and schema version to supervisors, which export their own OCSF events directly as OTLP log records. Supervisors already have egress, so the gateway and its supervisor connection carry no extra load. Supervisors use the same `openshell-otel` exporter as the gateway, with a supervisor resource identity that includes `openshell.sandbox.id` and `openshell.gateway.name`, so telemetry from sandboxes of different gateways sharing a collector can be told apart. This applies to supervisor spans too. Drivers pass the settings to supervisors as `OPENSHELL_OTLP_OCSF_ENDPOINT`, `OPENSHELL_OTLP_OCSF_SCHEMA_VERSION`, and `OPENSHELL_GATEWAY_NAME`; the gateway passes them to the VM driver as arguments. Collector headers that the gateway uses for OCSF export (`OTEL_EXPORTER_OTLP_LOGS_HEADERS`, else `OTEL_EXPORTER_OTLP_HEADERS`) travel in each sandbox's supervisor authentication bundle, which only the supervisor reads, so authenticated collectors accept supervisor records without exposing credentials to the workload. The VM driver now sends SIGTERM and waits for the supervisor to exit before closing its liveness pipe. Closing the pipe first made the supervisor exit at once and drop queued records. Closes #4544 Refs #2892 Signed-off-by: Kris Hicks <[email protected]>
Bumps [actions/attest](https://github.com/actions/attest) from 4.2.1 to 4.2.2. - [Release notes](https://github.com/actions/attest/releases) - [Changelog](https://github.com/actions/attest/blob/main/RELEASE.md) - [Commits](actions/attest@508db95...1e69f48) --- updated-dependencies: - dependency-name: actions/attest dependency-version: 4.2.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
) * chore(deps): bump github/codeql-action/init from 4.37.7 to 4.37.9 Bumps [github/codeql-action/init](https://github.com/github/codeql-action) from 4.37.7 to 4.37.9. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@ff2f1c6...cdf488f) --- updated-dependencies: - dependency-name: github/codeql-action/init dependency-version: 4.37.9 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * fix(ci): align CodeQL action versions for initialization and analysis Signed-off-by: John Myers <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: John Myers <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: John Myers <[email protected]>
rustls 0.23.45 is affected by four advisories that fail cargo deny and release qualification. All are fixed in 0.23.46. Closes #4567 Signed-off-by: Matthew Grossman <[email protected]>
Add an Observability overview that lists the traces, metrics, and OCSF events OpenShell produces, where each goes, and the minimal configuration to enable it, linking to the detailed pages instead of repeating them. Add a Traces page for what is traced, span names, resource attributes, gateway names, and trace context, and point the OTLP Export reference to it instead of describing spans there. Move metric naming conventions into Gateway Metrics, and replace the stale denied-connection example in OCSF JSON Export with a real record. List every common OTEL_* environment variable in the gateway OTLP tuning reference, split into the variables the gateway honors and the ones it ignores, with the reasons. Closes #4548 Signed-off-by: Kris Hicks <[email protected]>
…4570) * test(cli): pick forward test ports below the ephemeral range The forward tests released an OS-assigned port before the CLI bound it, so a concurrent test's bind to port 0 could claim it. Pick ports below the Linux and macOS ephemeral ranges from a random offset instead. Closes #4569 Signed-off-by: Matthew Grossman <[email protected]> * test(cli): retry forward tests when another process takes the port Replace the fixed port range with a retry. The CLI checks a forward port before binding it, so a concurrent test can claim it in between; on that error, pick a new OS-assigned port and run the forward again. Refs #4569 Signed-off-by: Matthew Grossman <[email protected]> --------- Signed-off-by: Matthew Grossman <[email protected]>
Signed-off-by: John Myers <[email protected]>
Signed-off-by: Drew Newberry <[email protected]>
* fix(vm): launch sandbox directly in guest root Signed-off-by: Adrien Langou <[email protected]> * test(vm): explain guest init launch assertions Signed-off-by: Adrien Langou <[email protected]> * refactor(vm): inline guest bootstrap path Signed-off-by: Adrien Langou <[email protected]> * fix(vm): require bootstrap sandbox at guest startup Signed-off-by: Adrien Langou <[email protected]> --------- Signed-off-by: Adrien Langou <[email protected]>
* test(tmachine): pin k3s to Kubernetes 1.29 Signed-off-by: Simon Scatton <[email protected]> * fix(tmachine): retry k3s node readiness during startup Signed-off-by: Simon Scatton <[email protected]> --------- Signed-off-by: Simon Scatton <[email protected]>
* ci(compatibility): require explicit risk acceptance Signed-off-by: Simon Scatton <[email protected]> * test(compatibility): remove report regression tests Signed-off-by: Simon Scatton <[email protected]> --------- Signed-off-by: Simon Scatton <[email protected]>
Signed-off-by: Simon Scatton <[email protected]>
* feat(tmachine): build local Debian artifacts Signed-off-by: Evan Lezar <[email protected]> * refactor(tmachine): separate VM driver artifact build Signed-off-by: Evan Lezar <[email protected]> --------- Signed-off-by: Evan Lezar <[email protected]>
…ws (#4419) * refactor(ci): extract release qualification and serialize Codex reviews Signed-off-by: Simon Scatton <[email protected]> * fix(ci): queue Codex reviews without security ordering Signed-off-by: Simon Scatton <[email protected]> * fix(ci): retain qualification evidence after build failures Signed-off-by: Simon Scatton <[email protected]> * docs(ci): shorten compatibility review guidance Signed-off-by: Simon Scatton <[email protected]> --------- Signed-off-by: Simon Scatton <[email protected]>
Signed-off-by: Simon Scatton <[email protected]>
Signed-off-by: Eric Curtin <[email protected]>
* ci(release): notify Slack when a prerelease succeeds Post a top-level message to the triage webhook when a prerelease completes, so recovery after failures is visible. The message omits the triage mention. Closes #4604 Signed-off-by: Matthew Grossman <[email protected]> * ci(release): link the prerelease tag in the success notification Signed-off-by: Matthew Grossman <[email protected]> --------- Signed-off-by: Matthew Grossman <[email protected]>
* fix(ocsf): validate sandbox attribution against exported schemas Move supervisor attribution to device.container and gateway attribution to resources or unmapped. Remove the top-level container validation exemption and cover exported schemas, gateway profiles, and runtime JSONL attribution. Refs #4915 Signed-off-by: Louis Deng <[email protected]> * fix(ocsf): validate resolved workload image identity Port resolved Docker and Podman image identity to the exported-schema implementation. Preserve upstream network trust helpers, validate complete image-bearing events, and assert the actual workload image identity in supervisor JSONL conformance. Refs #4915 Signed-off-by: Louis Deng <[email protected]> * fix(ocsf): route sandbox logs by trusted context identity Signed-off-by: Louis Deng <[email protected]> --------- Signed-off-by: Louis Deng <[email protected]>
Signed-off-by: Jim Meyer <[email protected]>
…4940) * feat(supervisor): advertise accepted application route installations Signed-off-by: Taylor Mutch <[email protected]> * fix(otel): identify the application endpoint RPC extension service Signed-off-by: Taylor Mutch <[email protected]> * fix(gateway): preserve advertisement cleanup progress on timeout Signed-off-by: Taylor Mutch <[email protected]> * perf(gateway): reuse app endpoint resolution within each lease exchange Signed-off-by: Taylor Mutch <[email protected]> * test(supervisor): preserve gateway affinity in app-listener startup fixtures Signed-off-by: Taylor Mutch <[email protected]>
Signed-off-by: Shailendra Singh <[email protected]>
Signed-off-by: Shailendra Singh <[email protected]>
* refactor(credentials): extract embedded credential issuer Move credential backend orchestration, storage dispatch, typed secret owners, and existing driver transport into an embedded library. Keep provider policy and refresh orchestration in the gateway, preserving existing configuration and durable credential identities. Refs #4358 Signed-off-by: Seth Jennings <[email protected]> * fix(credentials): keep test hooks off issuer trait Signed-off-by: Seth Jennings <[email protected]> --------- Signed-off-by: Seth Jennings <[email protected]>
Signed-off-by: Shailendra Singh <[email protected]>
Maintainer list changeGains approval rights: Confirm every change is intended. Anyone listed here can single-handedly satisfy |
| concurrency: | ||
| group: ${{ inputs.notes-only && format('release-notes-preview-{0}', github.ref) || 'release-stable' }} | ||
| cancel-in-progress: false | ||
| queue: max |
Signed-off-by: Shailendra Singh <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 57fa3749f6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const ( | ||
| ownerReplicaHeader = "x-openshell-owner" | ||
| ownerRequestHeader = "x-openshell-want-owner" | ||
| routeReplicaHeader = "x-openshell-replica" | ||
| ) |
There was a problem hiding this comment.
Remove implementation changes to the frozen Go SDK
This commit adds and modifies implementation files and generated bindings under sdk/go/, despite the directory being frozen after its move to ai-openshell/sdk-go. The sdk-go-freeze job introduced in .github/workflows/branch-checks.yml explicitly rejects these changes on PR mirror pushes, so Branch Checks will fail. Keep only the permitted migration notices here and submit SDK implementation changes to the new repository instead.
AGENTS.md reference: AGENTS.md:L196-L197
Useful? React with 👍 / 👎.
|
This pull request has had no activity for 14 days and is now marked stale. |
Summary
Merge main through
d7da0c7da2d9into Windows through5b9e5b91afb1, retaining the native MXC implementation and the latest Windows fixes. Adapt the Windows boundary and supervisor to main's concrete Isolation Backend RPC and shared cryptography APIs.Related Issue
Maintainer build-compatibility fix under the write-access exception: main removed the backend trait and PEM dependency used by the Windows runtime. This PR restores native compatibility while incorporating the upstream commits.
Changes
Testing
Local runtime validation uses a native ARM64 Windows host. Native x64 execution was not run locally; the PR requests the opt-in Windows CI runners. Exclusive network mediation and live revocation remain unverified, as documented in the Windows boundary. Shared hosting, suspend/resume, takeover, and the sandbox agent OTLP relay remain unsupported on MXC.
Checklist