Skip to content

Preserve effective policy semantics in v1 config exports #12148

Closed as not planned
Closed as not planned

Description

@sandl99

Parent: #12130. Root epic: #10904.

Problem

The exporter flattens source policy, maps the sandbox process principal to 1000:1000 and adds target filesystem roots. Preserving YAML structure alone does not prove equivalent access for changed runtime binaries, layouts, L7 rules or raw TLS tunnels.

Audit baseline (2026-09-21): main f2c0316fc7737ac41974f6d21945f248360dba23; v1 524f0f260c12d494dc94c45b7f82af3b2aa2ae4c. Audit coverage: F40, F41. Source/contract findings do not establish live deployment parity.

Outcome and scope

Acceptance

  • Current raw exports pass the target policy parser with no dropped rules.
  • Policy mapping has deterministic positive/negative cases for admitted process, filesystem, L7 and raw TLS intent.
  • Changed target paths or binaries cannot silently broaden or break source access.
  • A narrow runtime qualification proves one required allowed action and one relevant denied action.
  • Policy approval/explanation and live update workflows receive explicit migration dispositions rather than assumed parity.

Ownership and decision

Exporter policy verifier, OpenShell policy and v1 runtime maintainers.

Product decision required before adding a supported surface. Record Accept, reason, placement, accountable maintainer, compatibility and validation. Existing accepted decisions remain authoritative.

Proposed placement: existing core exporter readers, verification, projection and publication, with native or target behavior retained by its owning component. This tracking issue does not create a new support commitment or deadline.

Dependencies and related work

#12039/#12045 own target policy/proxy qualification; this issue owns source-to-target export semantics. #11453 remains external component provenance owner.

Validation and security

Use deterministic tests for observation/projection/refusal and the actual revision-matched v1 parser for exported intent. Live qualification belongs to the existing feature/migration scenario owner and must identify its real boundary and tested revisions. Export remains read-only, secret-value-free and all-or-nothing; unstable or incomplete evidence must not publish partial YAML.

Sources

YAML requirements — v1 scan (2026-09-21)

Target: v1 at 88c6600c06b0. The document version is nemoclaw.nvidia.com/v1alpha1, with kind: NemoClawConfig.

Format: Available. YAML availability does not establish exporter completion or live compatibility.

Use spec.sandboxes[].network.policy.explicit for the complete effective OpenShell policy. Omit network.tier when explicit policy is present.

Policy field Requirement
version / network_policies Required policy version and named rules. Preserve supported endpoint and binary restrictions.
process.run_as_user / run_as_group Preserve accepted target principal mapping and its source evidence.
filesystem_policy.read_only / read_write / include_workdir Preserve access semantics and required target runtime paths; these do not create mounts.
landlock.compatibility Preserve admitted compatibility behavior.
Endpoint protocol/TLS/L7 rules Retain allowed and denied operations; validate with the pinned OpenShell policy parser.

N/A: dedicated fields for v0 preset-selection history, policy approval/explanation history and external-component participation. The explicit policy records effective intent, not those workflows.

Agent tools.allow: [read] is separate from filesystem/process policy. Do not weaken policy merely to accommodate changed target paths or binaries.

Acceptance for this mapping: Parse the raw export with both v1 and its OpenShell policy validator. Verify accepted principal/path changes, preserved denied actions and the relevant runtime access outcome.

Sources: network.rs, explicit-policy.yaml, configuration.md.

Exporter acceptance scope

Apply these requirements to the feature or regression covered by this issue and its accepted scope.

  1. Define v1-compatible YAML. Document the required fields and an example using apiVersion: nemoclaw.nvidia.com/v1alpha1 and kind: NemoClawConfig. Record the target v1 revision and verify compatibility with its parser. If a required format does not exist, mark it N/A and link the schema dependency. N/A does not satisfy this requirement.
  2. Export the target feature. The real configuration exporter must export the feature from a representative, admitted v0 deployment. Preserve the issue's required settings in the generated YAML. The raw output must pass the target v1 parser without manual field rewriting or a compatibility translator.
  3. Provide manual or E2E proof with the real exporter. Attach a manual reproduction or an E2E run using the installed or built exporter CLI against a real source deployment. Record the source feature setup, exporter version/commit, target v1 commit, command, output artifact or run link, and result. Show that export succeeds, the required feature settings are preserved, and the raw YAML passes target validation. A handwritten example or mocked builder test alone does not satisfy this requirement.

For E2E proof, identify the owning feature or migration scenario and reuse it where possible. Deterministic mapping tests remain responsible for field and refusal cases; the live proof covers the real source-to-exporter boundary.

This section defines acceptance requirements; it does not assert that the evidence is already complete.

Activity

  1. added theissue type on Oct 2, 2026
  2. added
    area: policy
    area: security
    on Oct 2, 2026
  3. added
    v1
    on Oct 28, 2026
  4. cv commented on Nov 18, 2026

    @cv
    Collaborator

    Closing as superseded by #14580. The V1 transition review (2026-11-17) ruled out a guaranteed migration, which this issue's proof of equal policy effect would require. #14580 keeps what a migration starting point needs from here: the export drops no policy rules and reports the policy changes it makes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: policyarea: securityv1

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions