Skip to content

Commit 1ce8d54

Browse files
committed
Allow list of certs to be separated by comma
Allow list of TLS certificates to be separated with comma. With this change, it can be possible to specify a list of TLS certs in `CLIENT_TLS_CA_CERTIFICATES` as a CSV list. Prior this change, `CLIENT_TLS_CA_CERTIFICATES` can handle only one certificate and the only way to specify a list of certificates was by using a consecutive sequence of `--client-tls-ca-certificates` options. Signed-off-by: Jiří Kučera <[email protected]>
1 parent 4d0bd0c commit 1ce8d54

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

common/src/tls.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ pub struct ClientConfig {
1717
pub tls_insecure: bool,
1818

1919
/// Additional certificates which will be added as trust anchors.
20-
#[arg(id = "client-tls-ca-certificates", long, env = "CLIENT_TLS_CA_CERTIFICATES")]
20+
#[arg(
21+
id = "client-tls-ca-certificates",
22+
long,
23+
env = "CLIENT_TLS_CA_CERTIFICATES",
24+
value_delimiter = ','
25+
)]
2126
#[serde(default)]
2227
pub ca_certificates: Vec<String>,
2328
}

0 commit comments

Comments
 (0)