Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Commit 22f8291

Browse files
authored
Merge pull request #364 from jumpstarter-dev/fix-362
Workaround the MacOS system certificate store issue with some SSL certs
2 parents 9fef5c7 + 4f8e1b3 commit 22f8291

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

  • docs/source/config
  • packages/jumpstarter-cli-common/jumpstarter_cli_common

docs/source/config/cli.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ be useful in CI or when writing a script that uses Jumpstarter.
134134
(overrides the config value).
135135
- `JMP_DRIVERS_ALLOW` - A comma-separated list of allowed driver namespaces
136136
to automatically load. Can be set to `UNSAFE` to allow unsafe loading of drivers.
137-
137+
- `JUMPSTARTER_FORCE_SYSTEM_CERTS` - Set to `1` to force the system CA certificates,
138+
which is the behavior by default for all systems but MacOS (see [bug](https://github.com/jumpstarter-dev/jumpstarter/issues/362))
138139
## System Configuration
139140

140141
Jumpstarter stores system configs in the `/etc/jumpstarter` directory.

packages/jumpstarter-cli-common/jumpstarter_cli_common/oidc.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import json
2+
import os
23
from dataclasses import dataclass
34
from typing import ClassVar
45

@@ -12,7 +13,13 @@
1213
from joserfc.jws import extract_compact
1314
from yarl import URL
1415

15-
truststore.inject_into_ssl()
16+
# if we are running in MacOS avoid injecting system certificates to avoid
17+
# https://github.com/jumpstarter-dev/jumpstarter/issues/362
18+
# also allow to force the system certificates injection with
19+
# JUMPSTARTER_FORCE_SYSTEM_CERTS=1
20+
if os.uname().sysname != "Darwin" or os.environ.get("JUMPSTARTER_FORCE_SYSTEM_CERTS") == "1":
21+
truststore.inject_into_ssl()
22+
1623

1724
opt_client_id = click.option("--client-id", "client_id", type=str, default="jumpstarter-cli", help="OIDC client id")
1825
opt_connector_id = click.option(

0 commit comments

Comments
 (0)