Skip to content

Allow repository-scoped SSL verification exceptions for HTTPS remotes #12

Open

Description

@Tranthanh98

What would you like to see?

Add an advanced repository setting for disabling TLS certificate verification only for a specific HTTPS remote/host when a self-signed or otherwise untrusted certificate is unavoidable.

Problem it solves

Some internal Git servers use self-signed certificates. Users currently need to leave Commit+ and edit Git config manually, while a global http.sslVerify=false workaround weakens every HTTPS Git connection.

Feasibility

High technically, medium from a security/UX perspective. Git supports repository-local and URL-scoped http.<url>.sslVerify configuration. The feature should be deliberately hard to enable, narrowly scoped, and easy to remove.

Proposed scope

  • Put the control under Repository Settings → Advanced, not in the normal remote flow.
  • Default to certificate verification enabled.
  • Scope an exception to the selected HTTPS remote origin/host and the current repository; never change global http.sslVerify.
  • Show a warning explaining the man-in-the-middle risk and require explicit confirmation.
  • Display the exact host covered by the exception and provide a one-click restore action.
  • Hide or disable the option for SSH remotes.
  • Prefer supporting a custom CA certificate in a later enhancement; do not silently treat disabling verification as the preferred fix.

Acceptance criteria

  • Enabling the exception writes a repository-local URL-scoped config entry and affects only the intended HTTPS host.
  • Disabling it removes the exact entry rather than writing broader configuration.
  • Existing global/system values are displayed as inherited state but are not overwritten.
  • Remote operations continue to use the normal credential path.
  • Tests cover URL matching, multiple remotes, inherited values, removal, SSH remotes, and special characters in URLs.

Implementation notes

Use argument-array Git execution, not shell interpolation. Read effective config with origin/scope information where possible so the UI can distinguish local from inherited values.

Git reference: https://git-scm.com/docs/git-config#Documentation/git-config.txt-httpsslVerify

Area

Settings / Preferences

Activity

  1. added
    enhancement
    on Sep 19, 2026
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions