feat(config): listener-address env overrides (26.16)#19
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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