-
Notifications
You must be signed in to change notification settings - Fork 593
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
fix: etcd peer sans list #5806
fix: etcd peer sans list #5806
Conversation
Before generate the peer certificate, we will check IP existence on the node. Signed-off-by: Serge Logvinov <serge.logvinov@sinextra.dev>
isn't this already fixed by #5135 ? 🤔 |
it's not clear to me what the goal is here... to include less IPs? |
Hello, thank for your reply. Unfortunately, isn't work for me. I have two interfaces (public/private). The second one appears a little late (more than 1 second). I use etcd.subnet to check IP existence on the node. If not - observe the node IPs again. And I've removed the DNS record from peer certs because Talos uses only IPs to create member list (p2p communication). Etcd won't check reverse DNS lookup (https://etcd.io/docs/v3.3/op-guide/security/#notes-for-tls-authentication etcd-io/etcd#7767). And any other IP from the certificate which not used at all. Peer SAN needs only one IP - advertised IP. Plus - an unauthorized client wouldn't know all node IPs. The server etcd certificate (for client connections) more complicated - I kept it as is. |
I understand the issue, but I feel the fix should be more complicated. As I see it, peer certificate should only contain IPs from the etcd subnet? |
Yep, only one IP - advertised ip, and sometimes i think about 127.0.0.1/::1 should be removed too... |
Remove code which is no longer needed. Taken from siderolabs#5806 Co-authored-by: Serge Logvinov <serge.logvinov@sinextra.dev> Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
Remove code which is no longer needed. Taken from siderolabs#5806 Co-authored-by: Serge Logvinov <serge.logvinov@sinextra.dev> Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
Remove code which is no longer needed. Taken from siderolabs#5806 Co-authored-by: Serge Logvinov <serge.logvinov@sinextra.dev> Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com> (cherry picked from commit 1361225)
I hope with #6012 merge in, the etcd issues should be resolved in a bit different way.
|
@sergelogvinov please let us know if you see any improvement with |
Thank you. Peer cert has my second IP address now.
|
awesome, more fixes are coming for listen address as well, and advertised subnets, it should be even better soon! |
Before generate the peer certificate, we will check IP existence on the node.
Why? (reasoning)
The node does not have all IP addresses when we create Etcd certificate. In this case, peer cert does not have an advertised IP.
Acceptance
Please use the following checklist:
make conformance
)make fmt
)make lint
)make docs
)make unit-tests
)This change is