diff options
author | Alex Auvolat <alex@adnab.me> | 2024-02-12 11:35:57 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2024-02-12 15:36:43 +0100 |
commit | bf283c99240787c7ffeba8ff3222283ee9fc61aa (patch) | |
tree | 3de5c0c5ead752f4e97b044d00bb9fb60e853d53 /src/util/config.rs | |
parent | 25e5738568b2a021de3a79af3282b2b5feaee9e8 (diff) | |
download | garage-bf283c99240787c7ffeba8ff3222283ee9fc61aa.tar.gz garage-bf283c99240787c7ffeba8ff3222283ee9fc61aa.zip |
[fix-secrets-695] config: replace String by PathBuf for *_filefix-secrets-695
Diffstat (limited to 'src/util/config.rs')
-rw-r--r-- | src/util/config.rs | 6 |
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>, |