aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-12-08 08:38:03 -0600
committerJP Dillingham <jpdillingham@gmail.com>2021-12-08 08:38:03 -0600
commit81e9f82a0476dd98452681a887756a07ec5ab85f (patch)
tree2df8e3dad6553485ccdcd4ed75bfdfb9251ea250 /src
parent6c424fd9cc5ef393f79af4e915328d2aa4dcc7f3 (diff)
downloadslskd-81e9f82a0476dd98452681a887756a07ec5ab85f.tar.gz
mark secrets as Secret
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Options.cs19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/slskd/Options.cs b/src/slskd/Options.cs
index 151a9ddf..69a7a3f4 100644
--- a/src/slskd/Options.cs
+++ b/src/slskd/Options.cs
@@ -460,9 +460,8 @@ namespace slskd
[Argument(default, "slsk-password")]
[EnvironmentVariable("SLSK_PASSWORD")]
[Description("password for the Soulseek network")]
+ [Secret]
[RequiresReconnect]
- [JsonIgnore]
- [YamlIgnore]
public string Password { get; private set; } = null;
/// <summary>
@@ -631,8 +630,7 @@ namespace slskd
[EnvironmentVariable("SLSK_PROXY_PASSWORD")]
[Description("connection proxy password")]
[StringLength(255, MinimumLength = 1)]
- [JsonIgnore]
- [YamlIgnore]
+ [Secret]
public string Password { get; private set; }
/// <summary>
@@ -777,8 +775,7 @@ namespace slskd
[EnvironmentVariable("PASSWORD")]
[Description("password for web UI")]
[StringLength(255, MinimumLength = 1)]
- [JsonIgnore]
- [YamlIgnore]
+ [Secret]
public string Password { get; private set; } = Program.AppName;
/// <summary>
@@ -800,6 +797,7 @@ namespace slskd
[EnvironmentVariable("JWT_KEY")]
[Description("JWT signing key")]
[StringLength(255, MinimumLength = 16)]
+ [Secret]
[RequiresRestart]
public string Key { get; private set; } = Cryptography.Random.GetBytes(16).ToBase62String();
@@ -869,8 +867,7 @@ namespace slskd
[EnvironmentVariable("HTTPS_CERT_PASSWORD")]
[Description("X509 certificate password")]
[RequiresRestart]
- [JsonIgnore]
- [YamlIgnore]
+ [Secret]
public string Password { get; private set; }
}
}
@@ -954,8 +951,7 @@ namespace slskd
[Argument(default, "ftp-password")]
[EnvironmentVariable("FTP_PASSWORD")]
[Description("FTP password")]
- [JsonIgnore]
- [YamlIgnore]
+ [Secret]
public string Password { get; private set; }
/// <summary>
@@ -1029,8 +1025,7 @@ namespace slskd
[Argument(default, "pushbullet-token")]
[EnvironmentVariable("PUSHBULLET_ACCESS_TOKEN")]
[Description("Pushbullet access token")]
- [JsonIgnore]
- [YamlIgnore]
+ [Secret]
public string AccessToken { get; private set; }
/// <summary>