-
Notifications
You must be signed in to change notification settings - Fork 63
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
TLS for DRBD Replication doesn't work #614
Comments
I have enabled log in tlshd.conf
and I have got extended logs
λ kubectl -n linstor get secret linstor-satellite-internal-tls -o jsonpath="{.data['tls.crt']}" | base64 -d > tls.crt |
Looks like you used the "openssl" method from here to create those certificates? If so, the issue is that those certificates only set a generic common name:
So with strict validation, this certificate is only valid for some entity named You either need to manually add all the node names to the alternative names in the certificates:
Or you use |
@WanzenBug Thank you sooo much! Everything worked out.
|
I'm wondering why it would try to load the system trust store:
But sometimes it loads the right certificates instead:
|
Hi!
I try to configure tls for DRBD by this manual
TLS for internal traffic is enable:
λ kubectl exec -n linstor deploy/linstor-controller -- linstor node list
+---------------------------------------------------------------+
| Node | NodeType | Addresses | State |
|======================================|
| worker-01 | SATELLITE | 192.168.160.20:3367 (SSL) | Online |
| worker-02 | SATELLITE | 192.168.160.21:3367 (SSL) | Online |
| worker-03 | SATELLITE | 192.168.160.22:3367 (SSL) | Online |
+---------------------------------------------------------------+
But drdb doesn't connect to each other
λ kubectl exec -n linstor deploy/linstor-controller -- linstor r l
+-------------------------------------------------------------------------------------------------------------------------------------------+
| ResourceName | Node | Port | Usage | Conns | State | |
|===================================================================================
| pvc-4973e04e-44cf-49fe-9094-98dfbfda10d5 | worker-01 | 7000 | Unused | StandAlone(worker-03,worker-02) | UpToDate |
| pvc-4973e04e-44cf-49fe-9094-98dfbfda10d5 | worker-02 | 7000 | Unused | StandAlone(worker-03,worker-01) | TieBreaker |
| pvc-4973e04e-44cf-49fe-9094-98dfbfda10d5 | worker-03 | 7000 | InUse | StandAlone(worker-01,worker-02) | UpToDate |
+-------------------------------------------------------------------------------------------------------------------------------------------+
ktls-utils containers have errors:
λ kubectl -n linstor logs -l app.kubernetes.io/component=linstor-satellite -c ktls-utils
Piraeus Operator : 2.4.0
Host operating system: Almalinux 9 5.14.0-362.18.1.el9_3.x86_64
DRBD: version: 9.2.7 (api:2/proto:86-122)
The text was updated successfully, but these errors were encountered: