-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Added IP whitelist for admin/export #2233
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
Conversation
|
Thanks for your contribution, @AndrewMcBurney! I'd let @pawanrawal have a look at your change, and get back to you. Just as a general observation, it might make sense to allow ranges of IPs for whitelisting. |
…ues for `--whitelist` option.
|
Look like a change well-done @andrewmcburney! I have some comments. I will have another look when they are resolved. Will this work for IPv6? Review status: 0 of 4 files reviewed at latest revision, 4 unresolved discussions. dgraph/cmd/server/admin.go, line 125 at r2 (raw file):
Check for dgraph/cmd/server/run.go, line 83 at r2 (raw file):
...to whitelist for performing admin actions edgraph/config.go, line 136 at r2 (raw file):
Can we handle the error here? edgraph/config.go, line 191 at r2 (raw file):
both lower bound? Comments from Reviewable |
…ges`. Updated `--whitelist` flag documentation. Handle error in `parseIPsFromString` when setting worker configuration values. Fixed documentation grammar.
|
@andrewmcburney are you still working/testing this or is it ready to be merged? Review status: 0 of 4 files reviewed at latest revision, 4 unresolved discussions. Comments from Reviewable |
|
Ping @AndrewMcBurney. Do you need any help to get this in? |
|
Hi @pawanrawal, my apologies -I've been busy with a few things on my end. I'll resolve the conflicts, and let you know once it's good for a review. Thank you for your patience! |
|
Merging this. I will quickly test this before doing the next release. |
#1924 Added an IP whitelist for admin/export.
Background
This is my first time contributing to dgraph. I'm new to Go, but I'm interested in distributed systems, keen to learn, and would like to make more contributions in the future.
Usage
Configuration
Example
# Curl some remote IP, on some port curl 144.142.126.222:8085/admin/exportTesting
I'm new to the project, so any advice on how to best test my new changes would be greatly appreciated. Thank you! 🙂
This change is