Default port is now 1984 everywhere
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YShymaPrXmc3KYRUg2HMSs
This commit is contained in:
1 parent
dbe8a8d4e0
commit
bdccace271
9 files changed
+35
-35
No files matched your search
@@ -70,7 +70,7 @@ The key structural decision: **`sources/` is the only place that talks to D-Bus/
|
||||
```toml
|
||||
[server]
|
||||
bind = "127.0.0.1" # set 0.0.0.0 only with auth enabled
|
||||
port = 9109
|
||||
port = 1984
|
||||
|
||||
[auth]
|
||||
enabled = true # hard-required when bind != localhost
|
||||
@@ -256,7 +256,7 @@ Solo, do it sequentially: 0 → A → B → C → D → E → F → G → 3. Wit
|
||||
|
||||
1. `cargo build` inside `devenv shell`; unit tests for config precedence and DTO mapping.
|
||||
2. Run locally: `cargo run -- serve --bind 127.0.0.1`; create a token via `cargo run -- token create`.
|
||||
3. REST: `curl -H "Authorization: Bearer …" localhost:9109/api/v1/systemd/units?state=failed`, SSE follow endpoints via `curl -N`.
|
||||
4. MCP: point a client at `http://localhost:9109/mcp` (e.g. `npx @modelcontextprotocol/inspector`) — verify tool list, call each tool, check auth rejection without the header.
|
||||
3. REST: `curl -H "Authorization: Bearer …" localhost:1984/api/v1/systemd/units?state=failed`, SSE follow endpoints via `curl -N`.
|
||||
4. MCP: point a client at `http://localhost:1984/mcp` (e.g. `npx @modelcontextprotocol/inspector`) — verify tool list, call each tool, check auth rejection without the header.
|
||||
5. OTel: run `otelcol` with a debug exporter, enable `[otel]`, confirm unit/container gauges appear on the poll interval and journal/docker log records flow with correct severity/attributes.
|
||||
6. Negative tests: no token → 401; `auth.enabled=false` + `bind=0.0.0.0` → startup refuses; docker socket absent → clean error on docker endpoints, rest of API unaffected.
|
||||
Reference in new issue
Block a user