8000 Node: Specify config file by bruce-riley · Pull Request #4404 · wormhole-foundation/wormhole · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Node: Specify config file #4404

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

bruce-riley
Copy link
Contributor
@bruce-riley bruce-riley commented Jun 19, 2025

This PR allows a guardian operator to load config parameters from an arbitrary config file when running guardiand node by specifying the --config <fname> command line argument. This file may be in any of the formats supported by Viper, including .yaml and .json.

Parameters from this file are loaded first, then overridden by environment variables starting with GUARDIAND, and finally command line arguments.

NOTE: This PR changes existing behavior. Previously, if the file node/config/guardiand.yaml existed, it was loaded. However, this did not support specifying an arbitrary file location.

If you were previously using node/config/guardiand.yaml for your configuration, please add --config node/config/guardiand.yaml to your command line.

If a config file is loaded, a line like this will appear at the start of the log file:

INFO    loaded config file      {"filePath": "node/config/guardiand.yaml"}

@bruce-riley bruce-riley force-pushed the node_specify_config_file branch from 53e8a99 to 639223e Compare June 19, 2025 16:34
johnsaigle
johnsaigle previously approved these changes Jun 19, 2025
Copy link
Contributor
@johnsaigle johnsaigle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not test locally but the changes seem sensible.

@bruce-riley bruce-riley force-pushed the node_specify_config_file branch 4 times, most recently from fc534d9 to e95f6de Compare June 19, 2025 19:33
@bruce-riley bruce-riley marked this pull request as ready for review June 19, 2025 20:57
panoel
panoel previously approved these changes Jun 19, 2025
johnsaigle
johnsaigle previously approved these changes Jun 20, 2025
evan-gray
evan-gray previously approved these changes Jun 23, 2025
@bruce-riley bruce-riley dismissed stale reviews from evan-gray, johnsaigle, and panoel via d199332 June 24, 2025 12:42
@bruce-riley bruce-riley force-pushed the node_specify_config_file branch 2 times, most recently from a3d47c2 to 34d0e0f Compare June 24, 2025 13:17
@bruce-riley bruce-riley force-pushed the node_specify_config_file branch from 34d0e0f to 83ed634 Compare June 24, 2025 13:18
Copy link
Contributor
@evan-gray evan-gray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@evan-gray evan-gray requested a review from johnsaigle June 24, 2025 13:38
@johnsaigle johnsaigle merged commit 7bde17b into wormhole-foundation:main Jun 25, 2025
33 checks passed
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.

4 participants
0