Class VaultCfgOptions
Vault 配置选项
public class VaultCfgOptions
- Inheritance
-
VaultCfgOptions
- Inherited Members
Properties
Address
Vault 服务器地址,例如 http://localhost:8200
public string Address { get; set; }
Property Value
AuthMethod
认证方式
public VaultAuthMethod AuthMethod { get; set; }
Property Value
EnableHotReload
是否启用热重载
public bool EnableHotReload { get; set; }
Property Value
EnginePath
密钥引擎路径,默认为 "secret"
public string EnginePath { get; set; }
Property Value
KvVersion
KV Secret 引擎版本(V1 或 V2)
public int KvVersion { get; set; }
Property Value
Namespace
命名空间(Vault Enterprise)
public string? Namespace { get; set; }
Property Value
Password
密码(用于 UserPass 认证)
public string? Password { get; set; }
Property Value
Path
密钥路径前缀,例如 "/data/app/config"
public string? Path { get; set; }
Property Value
PollInterval
轮询间隔(仅在不支持 Watch 的引擎中使用)
public TimeSpan PollInterval { get; set; }
Property Value
ReconnectInterval
重连间隔
public TimeSpan ReconnectInterval { get; set; }
Property Value
RoleId
AppRole ID(用于 AppRole 认证)
public string? RoleId { get; set; }
Property Value
RoleSecret
AppRole Secret(用于 AppRole 认证)
public string? RoleSecret { get; set; }
Property Value
Token
认证令牌
public string? Token { get; set; }
Property Value
Username
用户名(用于 UserPass 认证)
public string? Username { get; set; }