Skip to content

chore(deps): build against OpenShell v0.1.10 - #115

Merged
ilanh merged 1 commit into
mainfrom
chore/openshell-v0.1.10
Nov 30, 2026
Merged

ilanh merged 1 commit into
mainfrom
chore/openshell-v0.1.10

Conversation

@ilanh

@ilanh ilanh commented Nov 30, 2026

Copy link
Copy Markdown
Owner

What and why

Moves main's OpenShell pin from v0.1.9 (ce58cf8) to v0.1.10 (152c59d3178039e3fbb4a5595f9fff7216a6be92, the tag at ai-openshell/openshell) and makes annotate behave like v0.1.10. Each item was checked against git log v0.1.9..v0.1.10 upstream.

Closes #113

Refs #110 (covers #5274, #5675 and #5251; #5303 is not in v0.1.10, so the issue stays open), Refs #109, Refs #114

v0.1.10 items

  • #5358 openshell policy lint: validate::gateway_violations (used by lint --policy, drift and generate) now runs the same offline checks as openshell policy lint: find_endpoint_ambiguities plus validate_and_canonicalize_authored_policy, which adds reserved _provider_ keys, credential-binding structure and the encoded size limit to the gateway validator. Not mirrored: built-in openshell/* middleware config validation, which needs openshell-supervisor-middleware-builtins; annotate generates no middlewares. annotate's own _provider_ check in check_document was dropped because it would duplicate the upstream message. README now recommends openshell policy lint on generated policies.
  • #5274 route-protocol authorization: a request is authorized only by endpoints that use the protocol of the selected route. Directive endpoints have no path selector, so two rules on one host:port with different protocol= tie. openshell policy lint and the gateway reject that ("conflicting metadata: protocol"), but annotate v0.1.9 generated it without complaint. generate now fails on it. Same-protocol overlaps still combine. Tests: unit and CLI.
  • #5006 endpoint_settings: the schema crate now parses an endpoint_settings section (Cedar endpoint settings, with unknown keys rejected inside it), and openshell_policy::parse_sandbox_policy rejects it in a YAML policy file. lint --policy and drift report OpenShell's message ("endpoint_settings is not an authored policy section"). annotate never emits it. Tests: the schema parse accepts it and rejects unknown nested keys; the policy file is rejected (unit); lint and drift (CLI).
  • #5251 / #5612 OCSF: network and HTTP records now name the real process (pid, created_time, parent_process.pid), and gateway audit records carry resources[].data. diff-logs uses only the binary path (never the parent) and skips class 6003, so no parser change was needed. Added tests/fixtures/logs/ocsf-0.1.10.jsonl (hand-written to match the upstream docs example), a CLI test that checks it gives the same suggestions as ocsf.jsonl, and a unit test (an unknown binary - is dropped).
  • #5793 IPv6 policy DNS / NAT64: policy_dns_ipv6_egress and nat64_prefixes are driver and supervisor settings, not policy keys, so annotate has nothing to emit. SSRF checks now classify 64:ff9b::/96 addresses by their embedded IPv4, so lint warns about such hosts in directives and --policy files.
  • #5675 subtree path credentials: the --scaffold-profiles comment mentions auth_style: path_subtree.
  • Not in v0.1.10 (checked with git merge-base --is-ancestor): #5763 (Chrono to Jiff), #5944 (SSH session tokens; the ForwardTcp proto event is not in the tag either) and #5303 (Windows roots). No diff-logs change is needed for them now.
  • Known upstream regression #6069: on Kubernetes nodes with a kernel older than 6.4, every sandbox connect() fails with EIO and no NET:* events are logged. Documented in README Limits and DEVELOPING (diff-logs section).
  • No new authored policy keys besides endpoint_settings (NetworkEndpoint is unchanged). PROXY_BASELINE_* is unchanged, and #4270 (no filesystem denial logs) is still open.

Dependencies

  • Cargo.lock: the OpenShell crates move to v0.1.10, plus their transitive changes (kube 0.99 → 5.0.0, schemars 1.x, serde_yaml/unsafe-libyaml/chrono dropped, new openshell-spiffe).
  • v0.1.10 still declares rust-version = "1.94" and builds and tests on 1.94.1, so main stays on Rust 1.94.
  • cargo audit on main has failed since RUSTSEC-2026-0600 (kube-client) was published on 2026-11-24; see fix(ci): install Rust 1.95 in openshell-next workflow #112's audit job. kube is lockfile-only (cargo tree -i kube-client --target all is empty), and OpenShell pins kube = "=5.0.0" while the fix is in 5.2.0, which needs Rust 1.95. So .cargo/audit.toml ignores it, with the reason and Track RUSTSEC-2026-0600 (kube-client 5.0.0, lockfile-only through OpenShell openshell-crypto) #114 as the tracker, the same way as RUSTSEC-2026-0459.

Checklist

  • Branch chore/openshell-v0.1.10, commit signed off
  • cargo fmt --check, cargo clippy --all-targets --locked -D warnings, cargo test --locked (160 passed), scripts/gen-docs.sh --check on Rust 1.94.1 (macOS)
  • scripts/security-local.sh passes (actionlint, gitleaks, cargo-deny, pin check: v0.1.10 = 152c59d…), cargo audit passes
  • Tests added (tests/cli.rs, src/validate.rs, src/diff_logs.rs, new log fixture)
  • Docs: README (pin, v0.1.10 bullet, #6069, policy lint), DEVELOPING, AGENTS, ROADMAP, Dockerfile, generated headers and goldens
  • CHANGELOG under Unreleased
  • No secrets in code, fixtures or output

Pin openshell-policy-schema and openshell-policy to v0.1.10 (152c59d). Validation runs the offline checks of the new `openshell policy lint` (#5358): endpoint ambiguity, including endpoints that match the same requests with different protocols (#5274), and the authored-policy validator. A YAML policy with `endpoint_settings` (#5006) is rejected; lint warns about NAT64 hosts (#5793); diff-logs is tested on the v0.1.10 process and audit record shapes (#5251, #5612). Docs cover the Kubernetes kernel < 6.4 regression (#6069). cargo audit ignores RUSTSEC-2026-0600 (kube-client, lockfile-only, #114).

Closes #113

Signed-off-by: Ilan Harel <ilanharel@gmail.com>
@ilanh
ilanh merged commit c845a0c into main Nov 30, 2026
29 of 32 checks passed
@ilanh
ilanh deleted the chore/openshell-v0.1.10 branch November 30, 2026 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build against OpenShell v0.1.10 and stay compatible with its changes

1 participant