-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathConfigurationSchema.json
More file actions
202 lines (202 loc) · 8.71 KB
/
ConfigurationSchema.json
File metadata and controls
202 lines (202 loc) · 8.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
{
"definitions": {
"logLevel": {
"properties": {
"Steeltoe": {
"$ref": "#/definitions/logLevelThreshold"
},
"Steeltoe.Configuration": {
"$ref": "#/definitions/logLevelThreshold"
},
"Steeltoe.Configuration.ConfigServer": {
"$ref": "#/definitions/logLevelThreshold"
}
}
}
},
"type": "object",
"properties": {
"Certificates": {
"type": "object",
"properties": {
"ConfigServer": {
"type": "object",
"properties": {
"CertificateFilePath": {
"type": "string",
"description": "Gets or sets the local path to a certificate file on disk. Use 'Steeltoe.Common.Certificates.CertificateSettings.PrivateKeyFilePath' if the private key is stored in another file."
},
"PrivateKeyFilePath": {
"type": "string",
"description": "Gets or sets the local path to a private key file on disk (optional)."
}
},
"description": "Configuration settings for certificate access. Indicates where to load a 'System.Security.Cryptography.X509Certificates.X509Certificate2' from."
}
}
},
"Spring": {
"type": "object",
"properties": {
"Application": {
"type": "object",
"properties": {
"Name": {
"type": "string",
"description": "Gets or sets the name of this application."
}
},
"description": "Fallback configuration settings that describe this application."
},
"Cloud": {
"type": "object",
"properties": {
"Config": {
"type": "object",
"properties": {
"AccessTokenUri": {
"type": "string",
"description": "Gets or sets the address used by the provider to obtain a OAuth Access Token."
},
"ClientId": {
"type": "string",
"description": "Gets or sets the client ID used by the provider to obtain a OAuth Access Token."
},
"ClientSecret": {
"type": "string",
"description": "Gets or sets the client secret used by the provider to obtain a OAuth Access Token."
},
"DisableTokenRenewal": {
"type": "boolean",
"description": "Gets or sets a value indicating whether periodic HashiCorp Vault token renewal should occur. Default value: false."
},
"Discovery": {
"type": "object",
"properties": {
"Enabled": {
"type": "boolean",
"description": "Gets or sets a value indicating whether the discovery-first feature is enabled. Default value: false."
},
"ServiceId": {
"type": "string",
"description": "Gets or sets the Service ID of the Config Server to use during discovery-first. Default value: \"configserver\"."
}
},
"description": "Gets service discovery settings."
},
"Enabled": {
"type": "boolean",
"description": "Gets or sets a value indicating whether the Config Server provider is enabled. Default value: true."
},
"Env": {
"type": "string",
"description": "Gets or sets the environment used when accessing configuration data. Default value: \"Production\"."
},
"FailFast": {
"type": "boolean",
"description": "Gets or sets a value indicating whether fail-fast behavior is enabled. Default value: false."
},
"Headers": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Gets headers that will be added to the Config Server request."
},
"Health": {
"type": "object",
"properties": {
"Enabled": {
"type": "boolean",
"description": "Gets or sets a value indicating whether health checks are enabled. Default value: true."
},
"TimeToLive": {
"type": "integer",
"description": "Gets or sets the health check cache time-to-live (in milliseconds). Default value: 300_000 (5 minutes)."
}
},
"description": "Gets health check settings."
},
"Label": {
"type": "string",
"description": "Gets or sets a comma-separated list of labels to request from the server."
},
"Name": {
"type": "string",
"description": "Gets or sets the application name used when accessing configuration data."
},
"Password": {
"type": "string",
"description": "Gets or sets the password used when accessing the Config Server."
},
"PollingInterval": {
"type": "string",
"pattern": "^-?(\\d{1,7}|((\\d{1,7}[\\.:])?(([01]?\\d|2[0-3]):[0-5]?\\d|([01]?\\d|2[0-3]):[0-5]?\\d:[0-5]?\\d)(\\.\\d{1,7})?))$",
"description": "Gets or sets the frequency with which app should check Config Server for changes in configuration."
},
"Retry": {
"type": "object",
"properties": {
"Enabled": {
"type": "boolean",
"description": "Gets or sets a value indicating whether retries are enabled on failures. Default value: false."
},
"InitialInterval": {
"type": "integer",
"description": "Gets or sets initial retry interval (in milliseconds). Default value: 1000."
},
"MaxAttempts": {
"type": "integer",
"description": "Gets or sets the max number of retries the client will attempt. Default value: 6."
},
"MaxInterval": {
"type": "integer",
"description": "Gets or sets max retry interval (in milliseconds). Default value: 2000."
},
"Multiplier": {
"type": [
"number",
"string"
],
"description": "Gets or sets the multiplier for next retry interval. Default value: 1.1."
}
},
"description": "Gets retry settings."
},
"Timeout": {
"type": "integer",
"description": "Gets or sets the request timeout (in milliseconds). Default value: 60_000 (1 minute)."
},
"Token": {
"type": "string",
"description": "Gets or sets the HashiCorp Vault authentication token."
},
"TokenRenewRate": {
"type": "integer",
"description": "Gets or sets the vault token renew rate (in milliseconds). Default value: 60_000 (1 minute)."
},
"TokenTtl": {
"type": "integer",
"description": "Gets or sets the HashiCorp Vault token time-to-live (in milliseconds). Default value: 300_000 (5 minutes)."
},
"Uri": {
"type": "string",
"description": "Gets or sets a comma-separated list of Config Server addresses. Default value: \"http://localhost:8888\"."
},
"Username": {
"type": "string",
"description": "Gets or sets the username used when accessing the Config Server."
},
"ValidateCertificates": {
"type": "boolean",
"description": "Gets or sets a value indicating whether the provider validates server certificates. Default value: true."
}
},
"description": "Holds settings used to configure the Spring Cloud Config Server provider."
}
}
}
}
}
}
}