Self-signed Portainer instances (e.g. internal LAN at 10.1.1.43:9443) cause all 7 portainer wrapper scripts to fail silently with HTTP 000. curl rejects the self-signed certificate by default and the scripts interpret the empty response as a non-200 status.
Solution
Add a PORTAINER_INSECURE environment variable. When set to 1, a CURL_OPTS=(-k) array is populated at the top of each script (after env var validation) and passed to every curl invocation targeting the Portainer API.
exportPORTAINER_INSECURE=1
Changes
All 7 .sh scripts in packages/mosaic/framework/tools/portainer/ updated
README.md updated to document the new variable
Testing
bash -n syntax check: all 7 scripts pass
Smoke test: PORTAINER_INSECURE=1 against https://10.1.1.43:9443 returned HTTP 401 (reached the API, TLS bypass confirmed). Without the flag, curl exits 60 (SSL certificate error).
## Problem
Self-signed Portainer instances (e.g. internal LAN at 10.1.1.43:9443) cause all 7 portainer wrapper scripts to fail silently with HTTP 000. curl rejects the self-signed certificate by default and the scripts interpret the empty response as a non-200 status.
## Solution
Add a `PORTAINER_INSECURE` environment variable. When set to `1`, a `CURL_OPTS=(-k)` array is populated at the top of each script (after env var validation) and passed to every curl invocation targeting the Portainer API.
```bash
export PORTAINER_INSECURE=1
```
## Changes
- All 7 `.sh` scripts in `packages/mosaic/framework/tools/portainer/` updated
- README.md updated to document the new variable
## Testing
- `bash -n` syntax check: all 7 scripts pass
- Smoke test: `PORTAINER_INSECURE=1` against `https://10.1.1.43:9443` returned HTTP 401 (reached the API, TLS bypass confirmed). Without the flag, curl exits 60 (SSL certificate error).
Self-signed Portainer instances (e.g. internal LAN at 10.1.1.43:9443)
caused all wrapper calls to fail silently with HTTP 000. Setting
PORTAINER_INSECURE=1 passes -k to curl, bypassing certificate
verification and unblocking API calls to such instances.
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Problem
Self-signed Portainer instances (e.g. internal LAN at 10.1.1.43:9443) cause all 7 portainer wrapper scripts to fail silently with HTTP 000. curl rejects the self-signed certificate by default and the scripts interpret the empty response as a non-200 status.
Solution
Add a
PORTAINER_INSECUREenvironment variable. When set to1, aCURL_OPTS=(-k)array is populated at the top of each script (after env var validation) and passed to every curl invocation targeting the Portainer API.Changes
.shscripts inpackages/mosaic/framework/tools/portainer/updatedTesting
bash -nsyntax check: all 7 scripts passPORTAINER_INSECURE=1againsthttps://10.1.1.43:9443returned HTTP 401 (reached the API, TLS bypass confirmed). Without the flag, curl exits 60 (SSL certificate error).