diff --git a/crates/nono-cli/README.md b/crates/nono-cli/README.md index d109bfec6..e8f130bf7 100644 --- a/crates/nono-cli/README.md +++ b/crates/nono-cli/README.md @@ -131,7 +131,7 @@ nono run --profile my-claude -- claude - **Lists** (filesystem paths, security groups, rollback patterns): appended and deduplicated - **HashMaps** (credentials, hooks): merged, child wins on same key -- **Booleans** (`network.block`, `interactive`): OR — either activates +- **Booleans** (`network.block`): OR — either activates - **Scalars** (`meta`): child overrides - **Nullable scalars** (`network_profile`): absent inherits, `null` clears, string overrides diff --git a/crates/nono-cli/data/nono-profile.schema.json b/crates/nono-cli/data/nono-profile.schema.json index 8fd7e866f..43559d5d0 100644 --- a/crates/nono-cli/data/nono-profile.schema.json +++ b/crates/nono-cli/data/nono-profile.schema.json @@ -106,11 +106,6 @@ ], "description": "Opt-in gate for GPU access (Metal/IOKit on Apple Silicon macOS, render nodes on Linux). Intel Macs are not yet supported. Must be paired with the CLI flag --allow-gpu. Set to null to inherit from the base profile." }, - "interactive": { - "type": "boolean", - "description": "Deprecated. Parsed for backward compatibility but ignored. Supervised mode preserves TTY by default.", - "deprecated": true - }, "packs": { "type": "array", "items": { "type": "string" }, diff --git a/crates/nono-cli/data/policy.json b/crates/nono-cli/data/policy.json index 7ac09e04c..e9a7b28c8 100644 --- a/crates/nono-cli/data/policy.json +++ b/crates/nono-cli/data/policy.json @@ -692,8 +692,7 @@ ] }, "network": { "block": false }, - "workdir": { "access": "none" }, - "interactive": false + "workdir": { "access": "none" } }, "linux-host-compat": { "extends": "default", @@ -715,8 +714,7 @@ }, "filesystem": {}, "network": { "block": false }, - "workdir": { "access": "none" }, - "interactive": false + "workdir": { "access": "none" } }, "mise-dev": { "extends": "default", @@ -734,8 +732,7 @@ }, "filesystem": {}, "network": { "block": false, "network_profile": "developer" }, - "workdir": { "access": "readwrite" }, - "interactive": false + "workdir": { "access": "readwrite" } }, "python-dev": { "extends": "default", @@ -754,8 +751,7 @@ }, "filesystem": {}, "network": { "block": false, "network_profile": "developer" }, - "workdir": { "access": "readwrite" }, - "interactive": false + "workdir": { "access": "readwrite" } }, "node-dev": { "extends": "default", @@ -773,8 +769,7 @@ }, "filesystem": {}, "network": { "block": false, "network_profile": "developer" }, - "workdir": { "access": "readwrite" }, - "interactive": false + "workdir": { "access": "readwrite" } }, "bun-dev": { "extends": "default", @@ -792,8 +787,7 @@ }, "filesystem": {}, "network": { "block": false, "network_profile": "developer" }, - "workdir": { "access": "readwrite" }, - "interactive": false + "workdir": { "access": "readwrite" } }, "go-dev": { "extends": "default", @@ -811,8 +805,7 @@ }, "filesystem": {}, "network": { "block": false, "network_profile": "developer" }, - "workdir": { "access": "readwrite" }, - "interactive": false + "workdir": { "access": "readwrite" } }, "java-dev": { "extends": "default", @@ -833,8 +826,7 @@ ], "filesystem": {}, "network": { "block": false, "network_profile": "developer" }, - "workdir": { "access": "readwrite" }, - "interactive": false + "workdir": { "access": "readwrite" } }, "rust-dev": { "extends": "default", @@ -852,8 +844,7 @@ }, "filesystem": {}, "network": { "block": false, "network_profile": "developer" }, - "workdir": { "access": "readwrite" }, - "interactive": false + "workdir": { "access": "readwrite" } } } } diff --git a/crates/nono-cli/src/policy.rs b/crates/nono-cli/src/policy.rs index ca985411c..60ad21ea4 100644 --- a/crates/nono-cli/src/policy.rs +++ b/crates/nono-cli/src/policy.rs @@ -140,8 +140,6 @@ pub struct ProfileDef { #[serde(default)] pub allow_gpu: Option, #[serde(default)] - pub interactive: bool, - #[serde(default)] pub packs: Vec, #[serde(default)] pub command_args: Vec, @@ -181,7 +179,6 @@ impl ProfileDef { allow_launch_services: self.allow_launch_services, allow_gpu: self.allow_gpu, allow_parent_of_protected: None, - interactive: self.interactive, skipdirs: Vec::new(), packs: self.packs.clone(), binary: None, diff --git a/crates/nono-cli/src/profile/builtin.rs b/crates/nono-cli/src/profile/builtin.rs index 57299ddd8..0484bce7e 100644 --- a/crates/nono-cli/src/profile/builtin.rs +++ b/crates/nono-cli/src/profile/builtin.rs @@ -41,7 +41,6 @@ mod tests { let profile = get_builtin("default").expect("Profile not found"); assert_eq!(profile.meta.name, "default"); assert_eq!(profile.workdir.access, WorkdirAccess::None); - assert!(!profile.interactive); assert!(!profile.network.block); } diff --git a/crates/nono-cli/src/profile/mod.rs b/crates/nono-cli/src/profile/mod.rs index 2ffced168..1c9c8b186 100644 --- a/crates/nono-cli/src/profile/mod.rs +++ b/crates/nono-cli/src/profile/mod.rs @@ -2471,10 +2471,6 @@ pub struct Profile { /// rules protect `~/.nono`. Ignored on Linux. Default is `false`. #[serde(default, skip_serializing_if = "Option::is_none")] pub allow_parent_of_protected: Option, - /// Deprecated: Parsed for backward compatibility but ignored. - /// Supervised mode preserves TTY by default, making this unnecessary. - #[serde(default)] - pub interactive: bool, /// Directory names to skip during trust scanning and rollback preflight. /// Treated like built-in heavy directories (for example `target`). #[serde(default)] @@ -2622,8 +2618,6 @@ struct ProfileDeserialize { allow_gpu: Option, allow_parent_of_protected: Option, #[serde(default)] - interactive: bool, - #[serde(default)] skipdirs: Vec, #[serde(default)] packs: Vec, @@ -2663,7 +2657,6 @@ impl From for Profile { allow_launch_services: raw.allow_launch_services, allow_gpu: raw.allow_gpu, allow_parent_of_protected: raw.allow_parent_of_protected, - interactive: raw.interactive, skipdirs: raw.skipdirs, packs: raw.packs, binary: raw.binary, @@ -3957,7 +3950,6 @@ fn merge_profiles(base: Profile, child: Profile) -> Profile { allow_parent_of_protected: child .allow_parent_of_protected .or(base.allow_parent_of_protected), - interactive: base.interactive || child.interactive, skipdirs: dedup_append(&base.skipdirs, &child.skipdirs), packs: dedup_append(&base.packs, &child.packs), binary: child.binary.or(base.binary), @@ -7003,7 +6995,6 @@ mod tests { allow_launch_services: Some(false), allow_gpu: Some(false), allow_parent_of_protected: None, - interactive: false, skipdirs: vec!["vendor".to_string()], packs: vec![], binary: None, @@ -7095,7 +7086,6 @@ mod tests { allow_launch_services: Some(true), allow_gpu: Some(true), allow_parent_of_protected: Some(true), - interactive: false, skipdirs: vec!["dist".to_string()], packs: vec![], binary: None, @@ -7960,25 +7950,6 @@ mod tests { assert!(merged.env_credentials.mappings.contains_key("child_key")); } - #[test] - fn test_merge_profiles_interactive_or_semantics() { - // base=false, child=false -> false - let merged = merge_profiles(base_profile(), child_profile()); - assert!(!merged.interactive); - - // base=true, child=false -> true - let mut base = base_profile(); - base.interactive = true; - let merged = merge_profiles(base, child_profile()); - assert!(merged.interactive); - - // base=false, child=true -> true - let mut child = child_profile(); - child.interactive = true; - let merged = merge_profiles(base_profile(), child); - assert!(merged.interactive); - } - #[test] fn test_merge_profiles_extends_consumed() { let child = child_profile(); // has extends = Some(vec!["base"]) @@ -8360,7 +8331,6 @@ mod tests { workdir: WorkdirConfig { access: WorkdirAccess::Read, }, - interactive: false, ..Default::default() }; @@ -8373,7 +8343,6 @@ mod tests { workdir: WorkdirConfig { access: WorkdirAccess::ReadWrite, }, - interactive: true, ..Default::default() }; @@ -8389,7 +8358,6 @@ mod tests { WorkdirAccess::ReadWrite, "later base should override workdir" ); - assert!(merged.interactive, "interactive should be OR'd"); } #[test] @@ -8679,6 +8647,19 @@ mod tests { ); } + #[test] + fn test_removed_interactive_field_is_rejected() { + let json = r#"{ + "meta": { "name": "removed-interactive" }, + "interactive": true + }"#; + let result: std::result::Result = serde_json::from_str(json); + assert!( + result.is_err(), + "removed top-level field 'interactive' must be rejected" + ); + } + // Note: legacy `policy` patch deserialization (the full set of // `add_allow_*`, `add_deny_*`, `override_deny`, `exclude_groups`) // draining into canonical sections is covered by integration tests in diff --git a/crates/nono-cli/tests/schema_shape.rs b/crates/nono-cli/tests/schema_shape.rs index 7103f2f75..1319f0883 100644 --- a/crates/nono-cli/tests/schema_shape.rs +++ b/crates/nono-cli/tests/schema_shape.rs @@ -115,7 +115,6 @@ fn test_schema_top_level_profile_matches_rust_model() { "allow_launch_services", "allow_gpu", "allow_parent_of_protected", - "interactive", "skipdirs", "packs", "binary", diff --git a/crates/nono-proxy/src/credential.rs b/crates/nono-proxy/src/credential.rs index 550a149df..c960f34df 100644 --- a/crates/nono-proxy/src/credential.rs +++ b/crates/nono-proxy/src/credential.rs @@ -588,20 +588,6 @@ impl CredentialStore { }) } - /// Deprecated wrapper around [`Self::load_with_diagnostics`]. - #[deprecated( - since = "0.64.0", - note = "Use `load_with_diagnostics` instead. Will be removed in 1.0.0." - )] - pub async fn load( - routes: &[RouteConfig], - tls_connector: &TlsConnector, - ) -> Result { - Self::load_with_diagnostics(routes, tls_connector, None) - .await - .map(|outcome| outcome.store) - } - /// Create an empty credential store (no credential injection). #[must_use] pub fn empty() -> Self { @@ -1215,7 +1201,7 @@ mod tests { #[test] fn test_is_empty_false_with_only_oauth2_routes() { // Simulate a store with only OAuth2 routes by constructing directly. - // We can't call load() with a real OAuth2 config (no token server), + // We cannot load a real OAuth2 route here (there is no token server), // so we build the struct manually to test the is_empty/len logic. use std::time::Duration; @@ -1401,7 +1387,7 @@ mod tests { let outcome = CredentialStore::load_with_diagnostics(&routes, &tls, None).await; - // load() should succeed (route skipped, not hard error) + // The load should succeed (route skipped, not hard error). assert!( outcome.is_ok(), "load should not fail on unreachable OAuth2 endpoint" diff --git a/crates/nono/src/diagnostic/codes.rs b/crates/nono/src/diagnostic/codes.rs index d3dc97090..57e5f7157 100644 --- a/crates/nono/src/diagnostic/codes.rs +++ b/crates/nono/src/diagnostic/codes.rs @@ -3,7 +3,7 @@ use crate::capability::AccessMode; use crate::diagnostic::NonoDiagnosticDetail; use serde::{Deserialize, Serialize}; -use std::path::{Path, PathBuf}; +use std::path::PathBuf; /// Severity of a structured diagnostic. #[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)] @@ -64,66 +64,6 @@ pub enum NonoRemediation { DisableRollback, } -/// Map structured remediation to the legacy CLI flag string shape. -/// -/// Kept for backwards compatibility with code that read -/// [`crate::IpcDenialRecord::suggested_flag`]. New code should use -/// [`NonoRemediation`] and render flags in the CLI/bindings layer. -#[deprecated( - since = "0.64.0", - note = "Use `NonoRemediation` instead. Legacy flag strings will be removed in 1.0.0." -)] -#[must_use] -pub fn suggested_flag_for_remediation(rem: &NonoRemediation) -> Option { - match rem { - NonoRemediation::GrantPath { - path, - access, - is_file, - } => { - let (flag, target) = suggested_flag_parts(path, *access, *is_file); - Some(format!("{flag} {}", target.display())) - } - NonoRemediation::GrantUnixSocket { path, bind } => { - let flag = if *bind { - "--allow-unix-socket-bind" - } else { - "--allow-unix-socket" - }; - Some(format!("{flag} {}", path.display())) - } - NonoRemediation::AllowCwd => Some("--allow-cwd".to_string()), - NonoRemediation::DisableRollback => Some("--no-rollback".to_string()), - NonoRemediation::GrantNetwork => Some("--allow-net".to_string()), - NonoRemediation::RunDiscovery - | NonoRemediation::CheckPolicy - | NonoRemediation::AuthenticateCredentialProvider { .. } - | NonoRemediation::AdjustRollbackBudget { .. } => None, - } -} - -fn suggested_flag_parts( - path: &Path, - requested: AccessMode, - is_file: bool, -) -> (&'static str, PathBuf) { - if is_file { - let flag = match requested { - AccessMode::Read => "--read-file", - AccessMode::Write => "--write-file", - AccessMode::ReadWrite => "--allow-file", - }; - return (flag, path.to_path_buf()); - } - - let flag = match requested { - AccessMode::Read => "--read", - AccessMode::Write => "--write", - AccessMode::ReadWrite => "--allow", - }; - (flag, path.to_path_buf()) -} - /// One structured diagnostic entry. #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] pub struct NonoDiagnostic { diff --git a/crates/nono/src/diagnostic/records.rs b/crates/nono/src/diagnostic/records.rs index e40847b7a..094dbbaa6 100644 --- a/crates/nono/src/diagnostic/records.rs +++ b/crates/nono/src/diagnostic/records.rs @@ -44,17 +44,10 @@ pub struct IpcDenialRecord { pub reason: String, /// Structured remediation when this denial can be fixed by an explicit grant. pub remediation: Option, - /// Legacy CLI flag suggestion retained for backwards compatibility. - #[deprecated( - since = "0.64.0", - note = "Use `remediation` instead. Will be removed in 1.0.0." - )] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub suggested_flag: Option, } impl IpcDenialRecord { - /// Create an IPC denial record with structured remediation and legacy flag sync. + /// Create an IPC denial record with structured remediation. #[must_use] pub fn new( target: String, @@ -62,19 +55,11 @@ impl IpcDenialRecord { reason: String, remediation: Option, ) -> Self { - let suggested_flag = remediation.as_ref().and_then(|rem| { - #[allow(deprecated)] - { - crate::diagnostic::codes::suggested_flag_for_remediation(rem) - } - }); - #[allow(deprecated)] Self { target, operation, reason, remediation, - suggested_flag, } } } @@ -172,7 +157,7 @@ mod tests { } #[test] - fn ipc_denial_record_keeps_legacy_suggested_flag_in_sync() { + fn ipc_denial_record_preserves_structured_remediation() { let remediation = NonoRemediation::GrantUnixSocket { path: PathBuf::from("/run/user/0/bus"), bind: false, @@ -181,14 +166,8 @@ mod tests { "/run/user/0/bus".to_string(), "connect".to_string(), "no matching unix_socket capability".to_string(), - Some(remediation), + Some(remediation.clone()), ); - #[allow(deprecated)] - { - assert_eq!( - record.suggested_flag.as_deref(), - Some("--allow-unix-socket /run/user/0/bus") - ); - } + assert_eq!(record.remediation, Some(remediation)); } } diff --git a/crates/nono/src/trust/policy.rs b/crates/nono/src/trust/policy.rs index 2e38bc71c..9caf7dcbb 100644 --- a/crates/nono/src/trust/policy.rs +++ b/crates/nono/src/trust/policy.rs @@ -33,7 +33,7 @@ use std::path::{Path, PathBuf}; pub fn load_policy_from_str(json: &str) -> Result { let policy: TrustPolicy = serde_json::from_str(json) .map_err(|e| NonoError::TrustPolicy(format!("failed to parse trust policy: {e}")))?; - policy.validate_version()?; + policy.validate()?; Ok(policy) } @@ -67,7 +67,7 @@ pub fn merge_policies(policies: &[TrustPolicy]) -> Result { } for policy in policies { - policy.validate_version()?; + policy.validate()?; } let mut merged_patterns: Vec = Vec::new(); @@ -136,7 +136,6 @@ pub fn merge_policies(policies: &[TrustPolicy]) -> Result { Ok(TrustPolicy { predicate: Some(TRUST_POLICY_PREDICATE.to_string()), - version: None, includes: merged_patterns, files: merged_files, publishers: merged_publishers, @@ -402,7 +401,6 @@ mod tests { ) -> TrustPolicy { TrustPolicy { predicate: Some(TRUST_POLICY_PREDICATE.to_string()), - version: None, includes: vec!["SKILLS*".to_string(), "CLAUDE*".to_string()], files: vec![], publishers, @@ -447,14 +445,12 @@ mod tests { #[test] fn load_valid_policy() { let json = r#"{ - "version": 1, "includes": ["SKILLS*"], "publishers": [], "blocklist": { "digests": [] }, "enforcement": "deny" }"#; let policy = load_policy_from_str(json).unwrap(); - assert_eq!(policy.version, Some(1)); assert_eq!(policy.enforcement, Enforcement::Deny); assert_eq!(policy.includes.len(), 1); } @@ -462,7 +458,6 @@ mod tests { #[test] fn load_policy_with_publishers() { let json = r#"{ - "version": 1, "includes": ["SKILLS*"], "publishers": [ { @@ -497,7 +492,7 @@ mod tests { #[test] fn load_policy_missing_field() { - let json = r#"{ "version": 1 }"#; + let json = r#"{}"#; let result = load_policy_from_str(json); assert!(result.is_err()); } @@ -515,7 +510,6 @@ mod tests { write!( f, r#"{{ - "version": 1, "includes": ["AGENT.MD"], "publishers": [], "blocklist": {{ "digests": [] }}, @@ -658,19 +652,9 @@ mod tests { assert_eq!(merged.enforcement, Enforcement::Deny); } - #[test] - fn merge_ignores_legacy_version_field() { - // version is deprecated — merge succeeds regardless of its value. - let p1 = make_policy(Enforcement::Audit, vec![], vec![]); - let mut p2 = make_policy(Enforcement::Audit, vec![], vec![]); - p2.version = Some(99); - assert!(merge_policies(&[p1, p2]).is_ok()); - } - // ----------------------------------------------------------------------- // evaluate_file // ----------------------------------------------------------------------- - #[test] fn evaluate_blocked_file() { let entry = BlocklistEntry { diff --git a/crates/nono/src/trust/types.rs b/crates/nono/src/trust/types.rs index 1e7cd007f..15f0391e8 100644 --- a/crates/nono/src/trust/types.rs +++ b/crates/nono/src/trust/types.rs @@ -8,16 +8,6 @@ use globset::{Glob, GlobSet, GlobSetBuilder}; use serde::{Deserialize, Serialize}; use std::path::Path; -/// Current supported trust policy format version. -/// Deprecated: versioning is now encoded in [`TRUST_POLICY_PREDICATE`]. -/// -/// Will be removed in v1.0.0. -#[deprecated( - since = "0.66.0", - note = "versioning is encoded in TRUST_POLICY_PREDICATE; this constant and the version field will be removed in v1.0.0" -)] -pub const TRUST_POLICY_VERSION: u32 = 1; - /// Predicate URI that identifies a JSON file as a nono trust policy. /// /// Files lacking this field are not nono policies and should be skipped rather @@ -31,6 +21,7 @@ pub const TRUST_POLICY_PREDICATE: &str = "https://nono.sh/attestation/trust-poli /// Multiple policies are merged: publishers and blocklist entries are unioned, /// enforcement uses the strictest level. #[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] pub struct TrustPolicy { /// Predicate URI identifying this file as a nono trust policy. /// @@ -38,12 +29,6 @@ pub struct TrustPolicy { /// field are treated as non-nono JSON and skipped. #[serde(default, skip_serializing_if = "Option::is_none")] pub predicate: Option, - /// Deprecated: versioning is encoded in the `predicate` URI. - /// - /// Parsed from existing policy files for backward compatibility but has no - /// runtime effect. Will be removed in v1.0.0. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub version: Option, /// Glob patterns identifying files under attestation (relative to working directory) pub includes: Vec, /// Explicit file paths at arbitrary locations to attest. @@ -66,7 +51,6 @@ impl Default for TrustPolicy { fn default() -> Self { Self { predicate: Some(TRUST_POLICY_PREDICATE.to_string()), - version: None, includes: Vec::new(), files: Vec::new(), publishers: Vec::new(), @@ -103,7 +87,7 @@ impl TrustPolicy { /// /// Returns `NonoError::TrustPolicy` if the predicate is present but /// unrecognised, or if collection sizes exceed safe bounds. - pub fn validate_version(&self) -> Result<()> { + pub fn validate(&self) -> Result<()> { if let Some(predicate) = &self.predicate && predicate != TRUST_POLICY_PREDICATE { @@ -540,7 +524,6 @@ mod tests { fn sample_policy() -> TrustPolicy { TrustPolicy { predicate: Some(TRUST_POLICY_PREDICATE.to_string()), - version: None, includes: vec![ "SKILLS*.md".to_string(), "CLAUDE*.md".to_string(), @@ -1058,13 +1041,13 @@ mod tests { } #[test] - fn validate_version_accepts_policy() { + fn validate_accepts_policy() { let policy = sample_policy(); - assert!(policy.validate_version().is_ok()); + assert!(policy.validate().is_ok()); } #[test] - fn legacy_version_field_is_accepted_and_ignored() { + fn legacy_version_field_is_rejected() { let json = r#"{ "predicate": "https://nono.sh/attestation/trust-policy/v1", "version": 1, @@ -1073,9 +1056,7 @@ mod tests { "blocklist": { "digests": [] }, "enforcement": "deny" }"#; - let parsed: TrustPolicy = serde_json::from_str(json).unwrap(); - assert_eq!(parsed.version, Some(1)); - assert!(parsed.validate_version().is_ok()); + assert!(serde_json::from_str::(json).is_err()); } #[test] @@ -1083,7 +1064,6 @@ mod tests { let policy = sample_policy(); let json = serde_json::to_string_pretty(&policy).unwrap(); let parsed: TrustPolicy = serde_json::from_str(&json).unwrap(); - assert_eq!(parsed.version, None); assert_eq!(parsed.publishers.len(), 2); assert_eq!(parsed.blocklist.digests.len(), 1); assert_eq!(parsed.enforcement, Enforcement::Deny); diff --git a/docs/cli/features/profiles-groups.mdx b/docs/cli/features/profiles-groups.mdx index 7a2685582..0b28c6ac5 100644 --- a/docs/cli/features/profiles-groups.mdx +++ b/docs/cli/features/profiles-groups.mdx @@ -477,17 +477,6 @@ The `hooks` field is a legacy declaration surface: since v0.44.0, setting it in This is unrelated to **Session Hooks** above, which is a currently-active profile feature for running host-privileged setup/cleanup scripts around the sandboxed process itself. -### Interactive Mode (deprecated) - -The `interactive` field is parsed for backward compatibility but ignored. Supervised mode (the default) preserves the TTY, making this field unnecessary. - -```json -{ - "meta": { "name": "my-agent" }, - "interactive": true -} -``` - ### Rollback Exclusions The `rollback` section controls which files are excluded from [atomic rollback](/cli/features/atomic-rollbacks) snapshots: diff --git a/docs/cli/internals/wsl2-feature-matrix.mdx b/docs/cli/internals/wsl2-feature-matrix.mdx index 9e32ad602..3d022adb2 100644 --- a/docs/cli/internals/wsl2-feature-matrix.mdx +++ b/docs/cli/internals/wsl2-feature-matrix.mdx @@ -159,7 +159,6 @@ Legend: **Full** = identical to native Linux | **Blocked (default)** = fails sec | `process_info_mode` | Unavailable | Needs Landlock V6 (Scoping) | | `ipc_mode` | Unavailable | Needs Landlock V6 (Scoping) | | `capability_elevation` (in profile) | Unavailable | seccomp notify EBUSY | -| `interactive` mode | Unavailable | Depends on capability elevation | | Workdir access levels (none/read/readwrite) | Full | | ## Hooks @@ -220,7 +219,7 @@ Legend: **Full** = identical to native Linux | **Blocked (default)** = fails sec | Landlock V4 missing (kernel 6.6 < 6.7) | Per-port network (3) | [Rolling kernel](https://github.com/Nevuly/WSL2-Linux-Kernel-Rolling) or wait for Microsoft kernel upgrade | | Landlock V6 missing (kernel 6.6 < 6.12) | signal_mode, process_info_mode, ipc_mode (3) | Rolling kernel or wait for Microsoft kernel upgrade | | Landlock V5 missing (kernel 6.6 < 6.10) | Device ioctl filtering (1) | Rolling kernel or wait for Microsoft kernel upgrade | -| seccomp notify EBUSY | capability_elevation, interactive mode, PTY relay, runtime expansion (4) | microsoft/WSL#9548 — WSL2 userspace issue, persists regardless of kernel version | +| seccomp notify EBUSY | capability_elevation, PTY relay, runtime expansion (3) | microsoft/WSL#9548 — WSL2 userspace issue, persists regardless of kernel version | | Proxy port enforcement (pre-V4) | Credential proxy features (6 blocked by default) | Rolling kernel (V4+ enables native enforcement) or `wsl2_proxy_policy: "insecure_proxy"` opt-in | **With rolling kernel (6.19+, Landlock V6):** All Landlock-dependent limitations are resolved — **113/118 features (96%) fully available.** Only 5 features remain unavailable, all due to seccomp notify EBUSY (`--capability-elevation` and dependent features). See [WSL2 Support](/cli/internals/wsl2#rolling-release-kernel-community) for install instructions. diff --git a/tests/fixtures/synthetic-pack/profiles/synthetic.json b/tests/fixtures/synthetic-pack/profiles/synthetic.json index b3e4ed4fa..11a868101 100644 --- a/tests/fixtures/synthetic-pack/profiles/synthetic.json +++ b/tests/fixtures/synthetic-pack/profiles/synthetic.json @@ -11,6 +11,5 @@ ] }, "network": { "block": false }, - "workdir": { "access": "readwrite" }, - "interactive": false + "workdir": { "access": "readwrite" } } diff --git a/tests/integration/test_trust_cli.sh b/tests/integration/test_trust_cli.sh index cf6cd3f4d..ed736d800 100755 --- a/tests/integration/test_trust_cli.sh +++ b/tests/integration/test_trust_cli.sh @@ -340,7 +340,6 @@ echo "--- Missing Literal Patterns ---" cat > "$MISSING_DIR/trust-policy.json" <<'EOF' { "predicate": "https://nono.sh/attestation/trust-policy/v1", - "version": 1, "includes": ["SKILLS.md"], "publishers": [], "blocklist": { @@ -375,7 +374,6 @@ echo "--- Startup Enforcement ---" cat > "$STARTUP_DIR/trust-policy.json" <<'EOF' { "predicate": "https://nono.sh/attestation/trust-policy/v1", - "version": 1, "includes": ["SKILLS.md"], "publishers": [], "blocklist": { diff --git a/tool-sandbox-examples/github-cli/ghcli-profile-linux.json b/tool-sandbox-examples/github-cli/ghcli-profile-linux.json index 1c941d194..c43a497fb 100644 --- a/tool-sandbox-examples/github-cli/ghcli-profile-linux.json +++ b/tool-sandbox-examples/github-cli/ghcli-profile-linux.json @@ -264,7 +264,6 @@ "allow_launch_services": null, "allow_gpu": null, "allow_parent_of_protected": null, - "interactive": false, "skipdirs": [], "packs": [], "binary": null,