aboutsummaryrefslogtreecommitdiff
path: root/src/util/config.rs
diff options
context:
space:
mode:
authorAlex <alex@adnab.me>2024-02-13 10:04:49 +0000
committerAlex <alex@adnab.me>2024-02-13 10:04:49 +0000
commit823078b4cdaf93e09de0847c5eaa75beb7b26b7f (patch)
treeb7ff8f713f9cc8a897c15f4332e1ea6b71e8d889 /src/util/config.rs
parentea09b483fe7482f834d0ec8f8410325f6faf55a2 (diff)
parentbf283c99240787c7ffeba8ff3222283ee9fc61aa (diff)
downloadgarage-823078b4cdaf93e09de0847c5eaa75beb7b26b7f.tar.gz
garage-823078b4cdaf93e09de0847c5eaa75beb7b26b7f.zip
Merge pull request 'small fixes to config/secrets handling' (#715) from fix-secrets-695 into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/715
Diffstat (limited to 'src/util/config.rs')
-rw-r--r--src/util/config.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/config.rs b/src/util/config.rs
index 65c0b5c0..a9a72110 100644
--- a/src/util/config.rs
+++ b/src/util/config.rs
@@ -52,7 +52,7 @@ pub struct Config {
/// RPC secret key: 32 bytes hex encoded
pub rpc_secret: Option<String>,
/// Optional file where RPC secret key is read from
- pub rpc_secret_file: Option<String>,
+ pub rpc_secret_file: Option<PathBuf>,
/// Address to bind for RPC
pub rpc_bind_addr: SocketAddr,
/// Public IP address of this node
@@ -166,12 +166,12 @@ pub struct AdminConfig {
/// Bearer token to use to scrape metrics
pub metrics_token: Option<String>,
/// File to read metrics token from
- pub metrics_token_file: Option<String>,
+ pub metrics_token_file: Option<PathBuf>,
/// Bearer token to use to access Admin API endpoints
pub admin_token: Option<String>,
/// File to read admin token from
- pub admin_token_file: Option<String>,
+ pub admin_token_file: Option<PathBuf>,
/// OTLP server to where to export traces
pub trace_sink: Option<String>,