You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 636b649
Browse filesBrowse the repository at this point in the historyBrowse files
fix(rpm): restore 0.0.0.0 bind address for Podman via default gateway.toml
The gateway binary default changed to 127.0.0.1 in recent commits
(b61a98d, f257ed0). This breaks the Podman compute driver because
sandbox containers reach the gateway over the host network bridge and
cannot connect to the loopback address.
Ship a default TOML config template that the RPM systemd unit seeds
into ~/.config/openshell/gateway.toml on first start. The template
sets bind_address = "0.0.0.0:17670" and pins compute_drivers =
["podman"] to prevent unexpected driver selection when Docker is also
installed. The binary default remains 127.0.0.1 (secure-by-default
for non-RPM installs).
Changes:
- deploy/rpm/gateway.toml.default: new default config template
- openshell.spec: install template to %{_datadir}/openshell-gateway/;
add ExecStartPre to seed ~/.config/openshell/gateway.toml on first
start; add %check assertions for template presence and unit reference
- deploy/rpm/CONFIGURATION.md: document default config, override paths,
and updated bind address throughout
- deploy/rpm/QUICKSTART.md: update bind address note for RPM installs
- crates/openshell-server/src/config_file.rs: contract test that parses
the RPM template through load() and asserts bind_address=0.0.0.0
and compute_drivers=[podman]
- e2e/with-podman-gateway.sh: start from RPM template as base config
so e2e exercises the same TOML path RPM users get on first start
For one-off service overrides that persist across package upgrades:
58
+
59
+
```shell
60
+
systemctl --user edit openshell-gateway
61
+
```
62
+
9
63
## TLS (mTLS)
10
64
11
65
The RPM enables mutual TLS by default. The gateway requires a valid
12
66
client certificate for all API connections and listens on
13
-
`127.0.0.1:17670` by default.
67
+
`0.0.0.0:17670` by default (see "Default configuration" above).
14
68
15
69
### Auto-generated certificates
16
70
@@ -152,8 +206,8 @@ overrides that persist across package upgrades.
152
206
153
207
| TOML option | Default | Description |
154
208
|-------------|---------|-------------|
155
-
|`bind_address`|`127.0.0.1:17670`| Address for the gRPC/HTTP API. |
156
-
|`compute_drivers`|unset | When unset, the gateway auto-detects Kubernetes, then Podman, then Docker. Set `compute_drivers = ["podman"]` to force Podman. |
209
+
|`bind_address`|`0.0.0.0:17670` (RPM default)| Address for the gRPC/HTTP API. |
210
+
|`compute_drivers`|`["podman"]` (RPM default) | When unset, the gateway auto-detects Kubernetes, then Podman, then Docker. The RPM default pins to Podman. |
0 commit comments