mirror of
https://github.com/bitwarden/server.git
synced 2025-07-13 05:38:25 -05:00
[PM-1011] LaunchDarkly service (#2726)
* LaunchDarkly service * Load file-based flag values, properly support offline only when self-host * Simplify tests * Use interface for LD settings * Remove tests that will provide inconsistent results depending on machine setup and file fallback * Fall back to offline mode more actively * Drive fallback file path with setting
This commit is contained in:
@ -77,6 +77,7 @@ public class GlobalSettings : IGlobalSettings
|
||||
new DistributedIpRateLimitingSettings();
|
||||
public virtual IPasswordlessAuthSettings PasswordlessAuth { get; set; } = new PasswordlessAuthSettings();
|
||||
public virtual IDomainVerificationSettings DomainVerification { get; set; } = new DomainVerificationSettings();
|
||||
public virtual ILaunchDarklySettings LaunchDarkly { get; set; } = new LaunchDarklySettings();
|
||||
|
||||
public string BuildExternalUri(string explicitValue, string name)
|
||||
{
|
||||
@ -538,4 +539,10 @@ public class GlobalSettings : IGlobalSettings
|
||||
public int VerificationInterval { get; set; } = 12;
|
||||
public int ExpirationPeriod { get; set; } = 7;
|
||||
}
|
||||
|
||||
public class LaunchDarklySettings : ILaunchDarklySettings
|
||||
{
|
||||
public string SdkKey { get; set; }
|
||||
public string FlagDataFilePath { get; set; } = "flags.json";
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user