Skip to content

feat(config): listener-address env overrides (26.16)#19

Merged
CryptoJones merged 1 commit into
mainfrom
fix/26.15-env-addr-overrides
May 27, 2026
Merged

feat(config): listener-address env overrides (26.16)#19
CryptoJones merged 1 commit into
mainfrom
fix/26.15-env-addr-overrides

Conversation

@CryptoJones
Copy link
Copy Markdown
Owner

Summary

`INVENTORY_HEALTH_ADDR` and `INVENTORY_ADMIN_ADDR` now override `health.addr` and `admin.addr` respectively. Container deployments can repoint listeners without editing the JSON config.

```bash
docker run
-e INVENTORY_HEALTH_ADDR=0.0.0.0:18080
-e INVENTORY_ADMIN_ADDR=0.0.0.0:19090
-e INVENTORY_AUTH_TOKEN=...
ghcr.io/cryptojones/networkinventoryagent:latest
```

Existing validation still applies — off-loopback bind without an auth token is refused at boot regardless of which surface set the address.

Also fixes the README env-var table to list the long-existing `INVENTORY_AUTH_TOKEN` / `INVENTORY_PEER_TOKEN` variables.

🤖 Generated with Claude Code

…des (26.16)

Containerised deployments can now repoint the listeners without
rewriting the JSON config:

  docker run \
    -e INVENTORY_HEALTH_ADDR=0.0.0.0:18080 \
    -e INVENTORY_ADMIN_ADDR=0.0.0.0:19090 \
    -e INVENTORY_AUTH_TOKEN=... \
    ghcr.io/cryptojones/networkinventoryagent:latest

Existing validation still applies — off-loopback bind without an
auth token is refused at boot regardless of which surface (file or
env) set the address.

Also fixes the README env-var table, which never listed the
INVENTORY_AUTH_TOKEN / INVENTORY_PEER_TOKEN variables that have been
supported since 26.06.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@CryptoJones CryptoJones merged commit 87395b1 into main May 27, 2026
@CryptoJones CryptoJones deleted the fix/26.15-env-addr-overrides branch May 27, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant