Skip to content

permissions: remove macOS seatbelt extension profiles#15918

Merged
celia-oai merged 1 commit intomainfrom
pr15918
Mar 27, 2026
Merged

permissions: remove macOS seatbelt extension profiles#15918
celia-oai merged 1 commit intomainfrom
pr15918

Conversation

@bolinfest
Copy link
Copy Markdown
Collaborator

@bolinfest bolinfest commented Mar 26, 2026

Why

PermissionProfile should only describe the per-command permissions we still want to grant dynamically. Keeping MacOsSeatbeltProfileExtensions in that surface forced extra macOS-only approval, protocol, schema, and TUI branches for a capability we no longer want to expose.

What changed

  • Removed the macOS-specific permission-profile types from codex-protocol, the app-server v2 API, and the generated schema/TypeScript artifacts.
  • Deleted the core and sandboxing plumbing that threaded MacOsSeatbeltProfileExtensions through execution requests and seatbelt construction.
  • Simplified macOS seatbelt generation so it always includes the fixed read-only preferences allowlist instead of carrying a configurable profile extension.
  • Removed the macOS additional-permissions UI/docs/test coverage and deleted the obsolete macOS permission modules.
  • Tightened request_permissions intersection handling so explicitly empty requested read lists are preserved only when that field was actually granted, avoiding zero-grant responses being stored as active permissions.
@bolinfest bolinfest force-pushed the pr15918 branch 2 times, most recently from 9a02418 to 9dfeb92 Compare March 26, 2026 23:00
@celia-oai
Copy link
Copy Markdown
Collaborator

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Keep them coming!

ℹ️ 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 MACOS_SEATBELT_NETWORK_POLICY: &str = include_str!("seatbelt_network_policy.sbpl");
const MACOS_RESTRICTED_READ_ONLY_PLATFORM_DEFAULTS: &str =
include_str!("restricted_read_only_platform_defaults.sbpl");
const MACOS_DEFAULT_PREFERENCES_POLICY: &str = r#"; allow readonly user preferences
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's just include this as part of MACOS_SEATBELT_BASE_POLICY?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addressing in follow-up #15931

@celia-oai celia-oai merged commit e6e2999 into main Mar 27, 2026
36 checks passed
@celia-oai celia-oai deleted the pr15918 branch March 27, 2026 00:12
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants