Skip to content

fix(routing): allow advertised routing addresses to be set via environment - #1913

Merged
tkircsi merged 1 commit into
mainfrom
feat/oci-api-address-env
Jul 28, 2026
Merged

tkircsi merged 1 commit into
mainfrom
feat/oci-api-address-env

Conversation

@tkircsi

@tkircsi tkircsi commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

The daemon ignored DIRECTORY_DAEMON_SERVER_ROUTING_DIRECTORY_API_ADDRESS and
DIRECTORY_DAEMON_SERVER_ROUTING_DIRECTORY_OCI_ADDRESS. Viper's AutomaticEnv only resolves keys it already knows, and neither key has a default nor appears in daemon.config.yaml, so both were silently dropped. Register them in registerServerDefaults, mirroring server/config, so the endpoints a node advertises to peers can be configured without supplying a config file.

@tkircsi
tkircsi requested a review from a team as a code owner July 28, 2026 15:28
@tkircsi tkircsi self-assigned this Jul 28, 2026
@github-actions github-actions Bot added the size/S Denotes a PR that changes 50-199 lines label Jul 28, 2026
@tkircsi tkircsi added kind/feature Categorizes issue or PR as related to a new feature. area/dir go Pull requests that update go code and removed size/S Denotes a PR that changes 50-199 lines labels Jul 28, 2026
@codecov

codecov Bot commented Jul 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@tkircsi
tkircsi merged commit 5dfc477 into main Jul 28, 2026
32 checks passed
@tkircsi
tkircsi deleted the feat/oci-api-address-env branch July 28, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/dir go Pull requests that update go code kind/feature Categorizes issue or PR as related to a new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants