Table of Contents

Class ConfigServerClientOptions

Namespace
Steeltoe.Configuration.ConfigServer
Assembly
Steeltoe.Configuration.ConfigServer.dll

Holds settings used to configure the Spring Cloud Config Server provider.

public sealed class ConfigServerClientOptions
Inheritance
ConfigServerClientOptions
Inherited Members

Properties

AccessTokenUri

Gets or sets the address used by the provider to obtain a OAuth Access Token.

public string? AccessTokenUri { get; set; }

Property Value

string

ClientId

Gets or sets the client ID used by the provider to obtain a OAuth Access Token.

public string? ClientId { get; set; }

Property Value

string

ClientSecret

Gets or sets the client secret used by the provider to obtain a OAuth Access Token.

public string? ClientSecret { get; set; }

Property Value

string

DisableTokenRenewal

Gets or sets a value indicating whether periodic HashiCorp Vault token renewal should occur. Default value: false.

public bool DisableTokenRenewal { get; set; }

Property Value

bool

Discovery

Gets service discovery settings.

public ConfigServerDiscoveryOptions Discovery { get; }

Property Value

ConfigServerDiscoveryOptions

Enabled

Gets or sets a value indicating whether the Config Server provider is enabled. Default value: true.

public bool Enabled { get; set; }

Property Value

bool

Environment

Gets or sets a comma-separated list of environments used when accessing configuration data. Default value: "Production".

[ConfigurationKeyName("Env")]
public string? Environment { get; set; }

Property Value

string

FailFast

Gets or sets a value indicating whether fail-fast behavior is enabled. Default value: false.

public bool FailFast { get; set; }

Property Value

bool

Headers

Gets headers that will be added to the Config Server request.

public IDictionary<string, string> Headers { get; }

Property Value

IDictionary<string, string>

Health

Gets health check settings.

public ConfigServerHealthOptions Health { get; }

Property Value

ConfigServerHealthOptions

Label

Gets or sets a comma-separated list of labels to request from the server.

public string? Label { get; set; }

Property Value

string

Name

Gets or sets the application name used when accessing configuration data.

public string? Name { get; set; }

Property Value

string

Password

Gets or sets the password used when accessing the Config Server.

public string? Password { get; set; }

Property Value

string

PollingInterval

Gets or sets the frequency with which app should check Config Server for changes in configuration.

public TimeSpan PollingInterval { get; set; }

Property Value

TimeSpan

Retry

Gets retry settings.

public ConfigServerRetryOptions Retry { get; }

Property Value

ConfigServerRetryOptions

Timeout

Gets or sets the request timeout (in milliseconds). Default value: 60_000 (1 minute).

public int Timeout { get; set; }

Property Value

int

Token

Gets or sets the HashiCorp Vault authentication token.

public string? Token { get; set; }

Property Value

string

TokenRenewRate

Gets or sets the Vault token renew rate (in milliseconds). Default value: 60_000 (1 minute).

public int TokenRenewRate { get; set; }

Property Value

int

TokenTtl

Gets or sets the HashiCorp Vault token time-to-live (in milliseconds). Default value: 300_000 (5 minutes).

public int TokenTtl { get; set; }

Property Value

int

Uri

Gets or sets a comma-separated list of Config Server addresses. Default value: "http://localhost:8888".

public string? Uri { get; set; }

Property Value

string

Username

Gets or sets the username used when accessing the Config Server.

public string? Username { get; set; }

Property Value

string

ValidateCertificates

Gets or sets a value indicating whether the provider validates server certificates. Default value: true.

public bool ValidateCertificates { get; set; }

Property Value

bool