Skip to content

Feature Request: Add Configuration Support for Custom CA Certificates in Container Builds #326

Open
@Harel-Dev

Description

@Harel-Dev

Use Case / Motivation:
Protocol schemes based deployment could fail if operated from within a network where network inspection of TLS is happening.
This happens at the build process where downloaded web content being proxied and the TLS certificate verification fails due to untrusted certificate.
This feature would improve the usability of this tool within common corporate network environments.

Current Limitation:
Currently, the tool lacks a mechanism to inject or configure custom CA certificates to its trust store.

Example Scenario:
thv run npx://@modelcontextprotocol/server-sequential-thinking 1:28PM INF Processed cmdArgs: [] 1:28PM INF Building Docker image for npx package: @modelcontextprotocol/server-sequential-thinking 1:28PM INF Building image toolhivelocal/npx--modelcontextprotocol-server-sequential-thinking:20250504132808 from context directory /var/folders/ly/x518gxkn27d54qvwyzjd9pjc0000gn/T/toolhive-docker-build-3226472955 Step 1/7 : FROM node:22-alpine ---> 18e4fe4d4cd5 Step 2/7 : RUN apk add --no-cache git ---> Running in 3ad390fb3e76 fetch https://dl-cdn.alpinelinux.org/alpine/v3.21/main/aarch64/APKINDEX.tar.gz fetch https://dl-cdn.alpinelinux.org/alpine/v3.21/community/aarch64/APKINDEX.tar.gz 206D409DFFFF0000:error:0A000086:SSL routines:tls_post_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:2103: WARNING: fetching https://dl-cdn.alpinelinux.org/alpine/v3.21/main: Permission denied 206D409DFFFF0000:error:0A000086:SSL routines:tls_post_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:2103: WARNING: fetching https://dl-cdn.alpinelinux.org/alpine/v3.21/community: Permission denied ERROR: unable to select packages: git (no such package): required by: world[git] Error: failed to process protocol scheme: failed to build Docker image: build error: The command '/bin/sh -c apk add --no-cache git' returned a non-zero code: 1: failed to process build output: build error: The command '/bin/sh -c apk add --no-cache git' returned a non-zero code: 1

Requested Feature:
Please add a configuration mechanism to allow users to specify custom CA certificates that should be trusted by the container building container images for protocol scheme execution.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestp0High

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions