influence RPC public address detection #811
Labels
No labels
action
check-aws
action
discussion-needed
action
for-external-contributors
action
for-newcomers
action
more-info-needed
action
need-funding
action
triage-required
kind
correctness
kind
ideas
kind
improvement
kind
performance
kind
testing
kind
usability
kind
wrong-behavior
prio
critical
prio
low
scope
admin-api
scope
background-healing
scope
build
scope
documentation
scope
k8s
scope
layout
scope
metadata
scope
ops
scope
rpc
scope
s3-api
scope
security
scope
telemetry
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Deuxfleurs/garage#811
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I have the same config file on each of my garage nodes, and I'd like to keep it that way if possible.
In this network, there's an IPv6 ULA prefix (stable), some private IPv4, as well as one public prefix (not guaranteed to be stable).
I'd like to have each node use the IPv6 ULA, and that's why I configured these addresses in
bootstrap_peers
.Looking at the output of
garage status
, it seems however sometimes nodes find (?) or announce their IPv4 address:As you can see, there's an IPv4 address here, and initially I didn't even open up the IPv4 firewall.
I assume these are IPs coming from
get_rpc_public_addr()
, which in my case usesget_default_ip()
, which is defined as such:I assume the order of elements returned in
pnet_datalink::interfaces()
is not stable.Would you be open to accept a PR that makes the
rpc_public_addr
config option accept a CIDR to specify a range, and in that case, have Garage'sget_rpc_public_addr
filter out IPs in that range?Yes, PRs are welcome. Make sure that the new behavior is well documented in the config file reference page.
I opened #817, PTAL.
@flokli the PR was merged, are we good to close this?
Yes, sorry, I didn't get any email notification for this. Closing.