Skip to content
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

[bootstrap] task: add option to configure node metadata #399

Merged
merged 1 commit into from
May 22, 2023

Conversation

cryptoBeliever
Copy link
Contributor

What's the issue?

Newly added endpoint /node/metadata in REST returns meta-information about the node. Bootstrap doesn't allow users to define custom values for this endpoint.

What's the solution?

Add the possibility to define node meta-information via custom preset. This can be done by:

gateways:
-  restNodeMetadata:
    key11: "value1"
    key21: "value2"
    key31: "value4"
    key51: 1
    key61: 10

Wayonb
Wayonb previously approved these changes May 8, 2023
Copy link
Contributor

@Wayonb Wayonb left a comment

Choose a reason for hiding this comment

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

Looks good 👍🏾

@@ -223,6 +223,8 @@ restProtocol: HTTP
restSSLPath: '/symbol-workdir'
restSSLKeyFileName: 'restSSL.key'
restSSLCertificateFileName: 'restSSL.crt'
restNodeMetadata:
_info: "Node metadata"
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you know what's the default use case for this endpoint?
It would be nice to autofill the default values.

Copy link
Contributor Author

@cryptoBeliever cryptoBeliever May 8, 2023

Choose a reason for hiding this comment

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

For example, at this moment, additional information about the node listed in https://symbol-tools.com/symbolTools/view/tool/nodeList.html are added manually via an additional configuration file (https://symbol-tools.com/nodeSetting.json generated here https://symbol-tools.com/symbolTools/view/tool/nodeAdminManual.html). This is possible if you host the node, but Bootstrap will now support it.
I don't know what default keys/values should be set. Default values may be wrongly read as set by the operator 🤔

@cryptoBeliever cryptoBeliever merged commit 506ac79 into dev May 22, 2023
4 checks passed
@cryptoBeliever cryptoBeliever deleted the add_metadata_configuration branch May 22, 2023 21:40
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.

None yet

2 participants