Skip to content

Commit 08bd59e

Browse files
renamed env var to P_TRUSTED_CA_CERTS_DIR
1 parent 60b7994 commit 08bd59e

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

server/src/cli.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub struct Cli {
3535
pub tls_key_path: Option<PathBuf>,
3636

3737
/// The location of other certificates to accept
38-
pub other_cert_path: Option<PathBuf>,
38+
pub trusted_ca_certs_path: Option<PathBuf>,
3939

4040
/// The address on which the http server will listen.
4141
pub address: String,
@@ -125,7 +125,7 @@ impl Cli {
125125
// identifiers for arguments
126126
pub const TLS_CERT: &'static str = "tls-cert-path";
127127
pub const TLS_KEY: &'static str = "tls-key-path";
128-
pub const OTHER_CERT: &'static str = "other-cert-path";
128+
pub const TRUSTED_CA_CERTS_PATH: &'static str = "trusted-ca-certs-path";
129129
pub const ADDRESS: &'static str = "address";
130130
pub const DOMAIN_URI: &'static str = "origin";
131131
pub const STAGING: &'static str = "local-staging-path";
@@ -229,12 +229,12 @@ impl Cli {
229229
.help("Local path on this device where private key file is located. Required to enable TLS"),
230230
)
231231
.arg(
232-
Arg::new(Self::OTHER_CERT)
233-
.long(Self::OTHER_CERT)
234-
.env("P_OTHER_CERT_PATH")
232+
Arg::new(Self::TRUSTED_CA_CERTS_PATH)
233+
.long(Self::TRUSTED_CA_CERTS_PATH)
234+
.env("P_TRUSTED_CA_CERTS_DIR")
235235
.value_name("DIR")
236236
.value_parser(validation::canonicalize_path)
237-
.help("Local path on this device where other certificate files are located.")
237+
.help("Local path on this device where all trusted certificates are located.")
238238
)
239239
.arg(
240240
Arg::new(Self::ADDRESS)
@@ -521,7 +521,7 @@ impl FromArgMatches for Cli {
521521
self.query_cache_path = m.get_one::<PathBuf>(Self::QUERY_CACHE).cloned();
522522
self.tls_cert_path = m.get_one::<PathBuf>(Self::TLS_CERT).cloned();
523523
self.tls_key_path = m.get_one::<PathBuf>(Self::TLS_KEY).cloned();
524-
self.other_cert_path = m.get_one::<PathBuf>(Self::OTHER_CERT).cloned();
524+
self.trusted_ca_certs_path = m.get_one::<PathBuf>(Self::TRUSTED_CA_CERTS_PATH).cloned();
525525
self.domain_address = m.get_one::<Url>(Self::DOMAIN_URI).cloned();
526526

527527
self.address = m

server/src/handlers/http/modal/ingest_server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ impl ParseableServer for IngestServer {
8383
let ssl = get_ssl_acceptor(
8484
&CONFIG.parseable.tls_cert_path,
8585
&CONFIG.parseable.tls_key_path,
86-
&CONFIG.parseable.other_cert_path,
86+
&CONFIG.parseable.trusted_ca_certs_path,
8787
)?;
8888

8989
// fn that creates the app

server/src/handlers/http/modal/query_server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ impl ParseableServer for QueryServer {
6565
let ssl = get_ssl_acceptor(
6666
&CONFIG.parseable.tls_cert_path,
6767
&CONFIG.parseable.tls_key_path,
68-
&CONFIG.parseable.other_cert_path,
68+
&CONFIG.parseable.trusted_ca_certs_path,
6969
)?;
7070

7171
let create_app_fn = move || {

server/src/handlers/http/modal/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ impl ParseableServer for Server {
9696
let ssl = get_ssl_acceptor(
9797
&CONFIG.parseable.tls_cert_path,
9898
&CONFIG.parseable.tls_key_path,
99-
&CONFIG.parseable.other_cert_path,
99+
&CONFIG.parseable.trusted_ca_certs_path,
100100
)?;
101101

102102
// Create a channel to trigger server shutdown

0 commit comments

Comments
 (0)