Table of Contents

Class VaultCfgOptions

Namespace
Apq.Cfg.Vault
Assembly
Apq.Cfg.Vault.dll

Vault 配置选项

public class VaultCfgOptions
Inheritance
VaultCfgOptions
Inherited Members

Properties

Address

Vault 服务器地址,例如 http://localhost:8200

public string Address { get; set; }

Property Value

string

AuthMethod

认证方式

public VaultAuthMethod AuthMethod { get; set; }

Property Value

VaultAuthMethod

EnableHotReload

是否启用热重载

public bool EnableHotReload { get; set; }

Property Value

bool

EnginePath

密钥引擎路径,默认为 "secret"

public string EnginePath { get; set; }

Property Value

string

KvVersion

KV Secret 引擎版本(V1 或 V2)

public int KvVersion { get; set; }

Property Value

int

Namespace

命名空间(Vault Enterprise)

public string? Namespace { get; set; }

Property Value

string

Password

密码(用于 UserPass 认证)

public string? Password { get; set; }

Property Value

string

Path

密钥路径前缀,例如 "/data/app/config"

public string? Path { get; set; }

Property Value

string

PollInterval

轮询间隔(仅在不支持 Watch 的引擎中使用)

public TimeSpan PollInterval { get; set; }

Property Value

TimeSpan

ReconnectInterval

重连间隔

public TimeSpan ReconnectInterval { get; set; }

Property Value

TimeSpan

RoleId

AppRole ID(用于 AppRole 认证)

public string? RoleId { get; set; }

Property Value

string

RoleSecret

AppRole Secret(用于 AppRole 认证)

public string? RoleSecret { get; set; }

Property Value

string

Token

认证令牌

public string? Token { get; set; }

Property Value

string

Username

用户名(用于 UserPass 认证)

public string? Username { get; set; }

Property Value

string