Skip to content

feat: add DangerousDisableCoderSignatureValidation UserDefault to skip tunnel binary codesign check#241

Open
ethanndickson wants to merge 4 commits intomainfrom
vpn-config-ddjz
Open

feat: add DangerousDisableCoderSignatureValidation UserDefault to skip tunnel binary codesign check#241
ethanndickson wants to merge 4 commits intomainfrom
vpn-config-ddjz

Conversation

@ethanndickson
Copy link
Member

@ethanndickson ethanndickson commented Mar 6, 2026

Adds a DangerousDisableCoderSignatureValidation UserDefaults key (MDM-settable) that disables SecStaticCode signature validation of the downloaded tunnel binary, mirroring the Windows app's Manager:TunnelBinarySignatureSigner registry key.

The setting flows through the existing pipeline:

Main App (UserDefaults) → providerConfiguration → Network Extension → XPC → Helper → Manager

When enabled, signature validation is skipped with a warning log. Version validation is always performed.

Closes #240, where a user would like to user Coder Desktop alongside a Coder deployment built from source.

Usage

defaults write com.coder.Coder-Desktop DangerousDisableCoderSignatureValidation -bool true

or, like all UserDefaults, can be configured via your MDM platform to apply this rule to an entire org.

Then restart the app, and log out and back in.

Files changed

  • State.swift — new UserDefaults key + providerConfiguration plumbing
  • PacketTunnelProvider.swift — reads flag, forwards to XPC
  • VPNLib/XPC.swift — updated HelperNEXPCInterface.startDaemon signature
  • NEHelperXPCClient.swift — updated XPC client wrapper
  • HelperXPCListeners.swift — updated XPC server implementation
  • Manager.swift — new ManagerConfig field + conditional skip in Manager.init

@ethanndickson
Copy link
Member Author

@codex review

@ethanndickson ethanndickson changed the title feat: add disableDownloadSignatureValidation UserDefault to skip tunnel binary codesign check feat: add disableDownloadSignatureValidation UserDefault to skip tunnel binary signature check Mar 6, 2026
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 50d89986f0

ℹ️ 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".

@ethanndickson ethanndickson changed the title feat: add disableDownloadSignatureValidation UserDefault to skip tunnel binary signature check feat: add DangerousDisableDownloadSignatureValidation UserDefault to skip tunnel binary codesign check Mar 6, 2026
@ethanndickson ethanndickson changed the title feat: add DangerousDisableDownloadSignatureValidation UserDefault to skip tunnel binary codesign check feat: add DangerousDisableCoderSignatureValidation UserDefault to skip tunnel binary codesign check Mar 6, 2026
@ethanndickson ethanndickson marked this pull request as ready for review March 6, 2026 05:08
- Shorten local variable name in PacketTunnelProvider.swift to keep
  line under 120 chars
- Add function_parameter_count disable comments for startDaemon in
  XPC.swift and HelperXPCListeners.swift
- Add cyclomatic_complexity to existing disable comment in Manager.swift
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.

The file's signature is invalid

2 participants