7 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
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
GautierLeblanc 2a5a149bb4 Update helm for custom kubelet path support 2023-07-18 08:45:46 +00: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