-
Notifications
You must be signed in to change notification settings - Fork 888
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
Remove --host-whitelist 2.0 #7884
Changes from all commits
2b7f3eb
d6a4420
7f399b6
5059bf7
816b852
be0afb9
25a2fdf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,7 +66,7 @@ services: | |
- --rpc-ws-enabled | ||
- --rpc-ws-apis=admin,eth,miner,web3,net,priv,eea | ||
- --rpc-ws-host=0.0.0.0 | ||
- --host-whitelist=* | ||
- --host-allowlist=* | ||
- --graphql-http-enabled | ||
- --discovery-enabled=false | ||
- --privacy-enabled=true | ||
|
@@ -84,7 +84,7 @@ services: | |
- --rpc-ws-enabled | ||
- --rpc-ws-apis=admin,eth,miner,web3,net,priv,eea | ||
- --rpc-ws-host=0.0.0.0 | ||
- --host-whitelist=* | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. instead of deleting this line, can you change to host-allowlist There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changed as well, thanks for reviewing! |
||
- --host-allowlist=* | ||
- --graphql-http-enabled | ||
- --discovery-enabled=false | ||
- --privacy-enabled=true | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -610,14 +610,6 @@ static class PrivacyOptionGroup { | |
defaultValue = "localhost,127.0.0.1") | ||
private final JsonRPCAllowlistHostsProperty hostsAllowlist = new JsonRPCAllowlistHostsProperty(); | ||
|
||
@Option( | ||
names = {"--host-whitelist"}, | ||
hidden = true, | ||
paramLabel = "<hostname>[,<hostname>...]... or * or all", | ||
description = | ||
"Deprecated in favor of --host-allowlist. Comma separated list of hostnames to allow for RPC access, or * to accept any host (default: ${DEFAULT-VALUE})") | ||
private final JsonRPCAllowlistHostsProperty hostsWhitelist = new JsonRPCAllowlistHostsProperty(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is also some code in the configure method of BesuCommand that uses the hostsWhitelist variable that needs to be removed as well There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the review! You mean this part further down in the same file, of another one?
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @JanetMo if you run There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @macfarla Thanks, unfortunately we were still not able to run the repo locally... Could you guide us on which piece of code to remove? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @macfarla Thanks, appreciate the support. I retried but still wasn't able to build it locally, is there a way to unassign from the issue? I think I'm not up for it, and probably holding you back on with this one. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok yes I can unassign you @JanetMo - you're welcome back any time - but being able to compile the code is a must :) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @macfarla Thanks, I'm sorry it didn't work despite your help, learned something about Besu nevertheless 👍 |
||
|
||
@SuppressWarnings({"FieldCanBeFinal", "FieldMayBeFinal"}) | ||
@Option( | ||
names = {"--color-enabled"}, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of deleting this line, can you change to host-allowlist
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, I changed it to host-allowlist