Commit Graph
24 Commits
Author SHA1 Message Date
benzheng 4c5e192954 feat: verify DSM HTTPS certificate to prevent credential exposure
The DSM WebAPI client disabled TLS certificate verification for all
HTTPS connections (InsecureSkipVerify: true), then sent the configured
DSM account and password to the endpoint. An attacker able to intercept,
redirect, or impersonate the DSM HTTPS endpoint could therefore obtain
the DSM credentials stored in the CSI client config / Kubernetes secret
(CWE-295 Improper Certificate Validation, OWASP A3:2017 Sensitive Data Exposure)

TLS certificate verification is now enabled by default. The client trusts
the system CA pool, so certificates signed by a public CA work without
extra configuration. Three optional client-info fields are added:

  - tlsCACert:          PEM CA cert to trust (for DSM self-signed certs);
                        merged with the system CA pool.
  - tlsServerName:      override the name checked during verification,
                        e.g. when connecting by IP.
  - insecureSkipVerify: explicit opt-out that restores the old behavior;
                        logs a warning on every connection.

The new fields are propagated through all DSM construction sites
(service, synocli, and the HA GetAnotherController path).

BREAKING CHANGE: deployments using `https: true` against a DSM with a
self-signed certificate (the DSM default) will fail to connect after
upgrade until they set `tlsCACert`, `tlsServerName`, or (discouraged)
`insecureSkipVerify: true`.

Adds TLS tests covering default-reject, valid-CA accept, wrong-CA reject,
insecureSkipVerify opt-in, and the tlsServerName DNS-SAN scenarios.
2026-07-29 14:21:55 +08:00
chihyuwuandbenzheng 4d3655e8fb Bump version to 1.3.0 2026-05-20 23:31:48 +08:00
chihyuwuandbenzheng cbe97aa18e Support NVMe/TCP protocol with namespace 2026-05-20 23:31:48 +08:00
Yordi Pauptit 1671c1b6e3 fix: close support chroot dir check 2025-12-21 22:36:52 +01:00
Yordi PauptitandGitHub 54133da29d Merge branch 'main' into add-node-extra-args 2025-12-21 21:53:55 +01:00
chihyuwu 13a525c0bb Bump version to 1.2.1 2025-10-07 10:54:06 +08:00
Yordi Pauptit 894c708a82 feat: add additional arguments for node csi-plugin 2025-09-26 19:23:16 +02:00
chihyuwu f1a262bdb9 Add pod-security labels to namespace 2025-07-30 14:24:28 +08:00
Sami HaahtinenandSami Haahtinen bf76a99957 only enable chroot on the node
Instead of checking the existence of chroot target directory runtime, only enable chroot on the node daemon. This way the service will fail early if the chroot doesn't exist, instead of printing an error during runtime.
2025-05-31 11:46:41 +01:00
chihyuwu 575ea81976 Update to version 1.2.0 2024-08-27 10:00:29 +08:00
chihyuwu a4270a3a9c Update to version 1.1.3 2023-11-08 19:49:11 +08:00
chihyuwu 0cd2cbe816 fix #58 - Helm: correct the storageclass name for helm test 2023-11-08 19:13:43 +08:00
Ruslan Timofieiev f8161e9954 add lun description to createVolume 2023-08-22 17:43:16 +03:00
GautierLeblanc 629b5090ad Fix node.yaml helm template 2023-07-24 23:57:49 +00:00
GautierLeblanc 2a5a149bb4 Update helm for custom kubelet path support 2023-07-18 08:45:46 +00:00
chihyuwu 489b474da1 Update to version 1.1.2 2023-06-06 18:15:21 +08:00
chihyuwu 368e89fa32 Helm: configure charts 2023-06-06 18:13:20 +08:00
chihyuwu dbf1c3b192 fix #8 - Helm: pull from christian-schlichtherle/synology-csi-chart 2023-06-06 18:11:23 +08:00
inductor 7777913b87 Update registry name 2023-03-11 10:40:56 +09:00
chihyuwu 917a6d9d5b Update to version 1.1.1 2022-09-05 10:59:53 +00:00
chihyuwu ebe7c1d97c Update to version 1.1.0 2022-04-25 11:10:19 +00:00
chihyuwu f4cbfc8392 fix #27 - use imagePullPolicy: IfNotPresent for csi driver 2022-02-16 06:51:07 +00:00
chihyuwu 515bc7f0ed Update to version 1.0.1 2022-02-14 07:56:51 +00:00
haochengkuo dc05a795b7 Initial commit 2021-08-31 10:18:35 +08:00