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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
// This file is @generated by prost-build.
/// Configuration for AWS credential provider. This is optional and the credentials are normally
/// retrieved from the environment or AWS configuration files by following the default credential
/// provider chain. However, this configuration can be used to override the default behavior.
/// \[\#next-free-field: 11\]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AwsCredentialProvider {
/// The option to use `AssumeRoleWithWebIdentity <<https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRoleWithWebIdentity.html>`\_.>
#[prost(message, optional, tag = "1")]
pub assume_role_with_web_identity_provider: ::core::option::Option<
AssumeRoleWithWebIdentityCredentialProvider,
>,
/// The option to use an inline credential. If inline credential is provided, no chain will be created and only the inline credential will be used.
#[prost(message, optional, tag = "2")]
pub inline_credential: ::core::option::Option<InlineCredentialProvider>,
/// The option to specify parameters for credential retrieval from an envoy data source, such as a file in AWS credential format.
#[prost(message, optional, tag = "3")]
pub credentials_file_provider: ::core::option::Option<
CredentialsFileCredentialProvider,
>,
/// Create a custom credential provider chain instead of the default credential provider chain.
/// If set to TRUE, the credential provider chain that is created contains only those set in this credential provider message.
/// If set to FALSE, the settings provided here will act as modifiers to the default credential provider chain.
/// Defaults to FALSE.
///
/// This has no effect if inline_credential is provided.
#[prost(bool, tag = "4")]
pub custom_credential_provider_chain: bool,
/// The option to use `IAM Roles Anywhere <<https://docs.aws.amazon.com/rolesanywhere/latest/userguide/introduction.html>`\_.>
#[prost(message, optional, tag = "5")]
pub iam_roles_anywhere_credential_provider: ::core::option::Option<
IamRolesAnywhereCredentialProvider,
>,
/// The option to use credentials sourced from standard `AWS configuration files <<https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html>`\_.>
#[prost(message, optional, tag = "6")]
pub config_credential_provider: ::core::option::Option<ConfigCredentialProvider>,
/// The option to use credentials sourced from `container environment variables <<https://docs.aws.amazon.com/sdkref/latest/guide/feature-container-credentials.html>`\_.>
#[prost(message, optional, tag = "7")]
pub container_credential_provider: ::core::option::Option<
ContainerCredentialProvider,
>,
/// The option to use credentials sourced from `environment variables <<https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html>`\_.>
#[prost(message, optional, tag = "8")]
pub environment_credential_provider: ::core::option::Option<
EnvironmentCredentialProvider,
>,
/// The option to use credentials sourced from an EC2 `Instance Profile <<https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html>`\_.>
#[prost(message, optional, tag = "9")]
pub instance_profile_credential_provider: ::core::option::Option<
InstanceProfileCredentialProvider,
>,
/// The option to use `STS:AssumeRole aka Role Chaining <<https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html>`\_.>
#[prost(message, optional, boxed, tag = "10")]
pub assume_role_credential_provider: ::core::option::Option<
::prost::alloc::boxed::Box<AssumeRoleCredentialProvider>,
>,
}
impl ::prost::Name for AwsCredentialProvider {
const NAME: &'static str = "AwsCredentialProvider";
const PACKAGE: &'static str = "envoy.extensions.common.aws.v3";
fn full_name() -> ::prost::alloc::string::String {
"envoy.extensions.common.aws.v3.AwsCredentialProvider".into()
}
fn type_url() -> ::prost::alloc::string::String {
"type.googleapis.com/envoy.extensions.common.aws.v3.AwsCredentialProvider".into()
}
}
/// Configuration to use an inline AWS credential. This is an equivalent to setting the well-known
/// environment variables `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, and the optional `AWS_SESSION_TOKEN`.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct InlineCredentialProvider {
/// The AWS access key ID.
#[prost(string, tag = "1")]
pub access_key_id: ::prost::alloc::string::String,
/// The AWS secret access key.
#[prost(string, tag = "2")]
pub secret_access_key: ::prost::alloc::string::String,
/// The AWS session token. This is optional.
#[prost(string, tag = "3")]
pub session_token: ::prost::alloc::string::String,
}
impl ::prost::Name for InlineCredentialProvider {
const NAME: &'static str = "InlineCredentialProvider";
const PACKAGE: &'static str = "envoy.extensions.common.aws.v3";
fn full_name() -> ::prost::alloc::string::String {
"envoy.extensions.common.aws.v3.InlineCredentialProvider".into()
}
fn type_url() -> ::prost::alloc::string::String {
"type.googleapis.com/envoy.extensions.common.aws.v3.InlineCredentialProvider"
.into()
}
}
/// Configuration to use `AssumeRoleWithWebIdentity <<https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRoleWithWebIdentity.html>`\_>
/// to retrieve AWS credentials.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct AssumeRoleWithWebIdentityCredentialProvider {
/// Data source for a web identity token that is provided by the identity provider to assume the role.
/// If a `watched_directory` is not provided, one will be automatically inferred from the directory of the token file. This is to ensure
/// that if the token file is rotated, the new token will be picked up. This behaviour differs from the standard envoy data source behavior, which does not
/// automatically watch the directory of a file data source.
/// Even when file rotation occurs, current credentials will continue to be used until they expire, at which point new credentials will be retrieved using the new token.
#[prost(message, optional, tag = "1")]
pub web_identity_token_data_source: ::core::option::Option<
super::super::super::super::config::core::v3::DataSource,
>,
/// The ARN of the role to assume.
#[prost(string, tag = "2")]
pub role_arn: ::prost::alloc::string::String,
/// Optional role session name to use in AssumeRoleWithWebIdentity API call.
#[prost(string, tag = "3")]
pub role_session_name: ::prost::alloc::string::String,
}
impl ::prost::Name for AssumeRoleWithWebIdentityCredentialProvider {
const NAME: &'static str = "AssumeRoleWithWebIdentityCredentialProvider";
const PACKAGE: &'static str = "envoy.extensions.common.aws.v3";
fn full_name() -> ::prost::alloc::string::String {
"envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider"
.into()
}
fn type_url() -> ::prost::alloc::string::String {
"type.googleapis.com/envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider"
.into()
}
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CredentialsFileCredentialProvider {
/// Data source from which to retrieve AWS credentials
/// When using this data source, if a `watched_directory` is provided, the credential file will be re-read when a file move is detected.
/// See :ref:`watched_directory <envoy_v3_api_msg_config.core.v3.DataSource>` for more information about the `watched_directory` field.
#[prost(message, optional, tag = "1")]
pub credentials_data_source: ::core::option::Option<
super::super::super::super::config::core::v3::DataSource,
>,
/// The profile within the credentials_file data source. If not provided, the default profile will be used.
#[prost(string, tag = "2")]
pub profile: ::prost::alloc::string::String,
}
impl ::prost::Name for CredentialsFileCredentialProvider {
const NAME: &'static str = "CredentialsFileCredentialProvider";
const PACKAGE: &'static str = "envoy.extensions.common.aws.v3";
fn full_name() -> ::prost::alloc::string::String {
"envoy.extensions.common.aws.v3.CredentialsFileCredentialProvider".into()
}
fn type_url() -> ::prost::alloc::string::String {
"type.googleapis.com/envoy.extensions.common.aws.v3.CredentialsFileCredentialProvider"
.into()
}
}
/// Configuration to use `IAM Roles Anywhere <<https://docs.aws.amazon.com/rolesanywhere/latest/userguide/introduction.html>`\_>
/// to retrieve AWS credentials.
/// \[\#next-free-field: 9\]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct IamRolesAnywhereCredentialProvider {
/// The ARN of the role to assume via the IAM Roles Anywhere sessions API. See `Configure Roles <<https://docs.aws.amazon.com/rolesanywhere/latest/userguide/getting-started.html#getting-started-step2>`\_> for more details.
#[prost(string, tag = "1")]
pub role_arn: ::prost::alloc::string::String,
/// The certificate used for authenticating to the IAM Roles Anywhere service.
/// This certificate must match one configured in the IAM Roles Anywhere profile. See `Configure Roles <<https://docs.aws.amazon.com/rolesanywhere/latest/userguide/getting-started.html#getting-started-step2>`\_> for more details.
#[prost(message, optional, tag = "2")]
pub certificate: ::core::option::Option<
super::super::super::super::config::core::v3::DataSource,
>,
/// The optional certificate chain, required when you are using a subordinate certificate authority for certificate issuance.
/// A certificate chain can contain a maximum of 5 elements, see `The IAM Roles Anywhere authentication process <<https://docs.aws.amazon.com/rolesanywhere/latest/userguide/authentication.html>`\_> for more details.
#[prost(message, optional, tag = "3")]
pub certificate_chain: ::core::option::Option<
super::super::super::super::config::core::v3::DataSource,
>,
/// The TLS private key matching the certificate provided.
#[prost(message, optional, tag = "4")]
pub private_key: ::core::option::Option<
super::super::super::super::config::core::v3::DataSource,
>,
/// The arn of the IAM Roles Anywhere trust anchor configured in your AWS account. A trust anchor in IAM Roles anywhere establishes
/// trust between your certificate authority (CA) and AWS. See `Establish trust <<https://docs.aws.amazon.com/rolesanywhere/latest/userguide/getting-started.html#getting-started-step1>`\_> for more details.
#[prost(string, tag = "5")]
pub trust_anchor_arn: ::prost::alloc::string::String,
/// The IAM Roles Anywhere profile ARN configured in your AWS account.
#[prost(string, tag = "6")]
pub profile_arn: ::prost::alloc::string::String,
/// An optional role session name, used when identifying the role in subsequent AWS API calls.
#[prost(string, tag = "7")]
pub role_session_name: ::prost::alloc::string::String,
/// An optional session duration, used when calculating the maximum time before vended credentials expire. This value cannot exceed the value configured
/// in the IAM Roles Anywhere profile and the resultant session duration is calculate by the formula `here <<https://docs.aws.amazon.com/rolesanywhere/latest/userguide/authentication-create-session.html#credentials-object>`\_.>
/// If no session duration is provided here, the session duration is sourced from the IAM Roles Anywhere profile.
#[prost(message, optional, tag = "8")]
pub session_duration: ::core::option::Option<
super::super::super::super::super::google::protobuf::Duration,
>,
}
impl ::prost::Name for IamRolesAnywhereCredentialProvider {
const NAME: &'static str = "IAMRolesAnywhereCredentialProvider";
const PACKAGE: &'static str = "envoy.extensions.common.aws.v3";
fn full_name() -> ::prost::alloc::string::String {
"envoy.extensions.common.aws.v3.IAMRolesAnywhereCredentialProvider".into()
}
fn type_url() -> ::prost::alloc::string::String {
"type.googleapis.com/envoy.extensions.common.aws.v3.IAMRolesAnywhereCredentialProvider"
.into()
}
}
/// The Config Credential Provider has no configurable parameters, but listing it in a custom credential provider chain will enable this
/// credential provider.
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ConfigCredentialProvider {}
impl ::prost::Name for ConfigCredentialProvider {
const NAME: &'static str = "ConfigCredentialProvider";
const PACKAGE: &'static str = "envoy.extensions.common.aws.v3";
fn full_name() -> ::prost::alloc::string::String {
"envoy.extensions.common.aws.v3.ConfigCredentialProvider".into()
}
fn type_url() -> ::prost::alloc::string::String {
"type.googleapis.com/envoy.extensions.common.aws.v3.ConfigCredentialProvider"
.into()
}
}
/// The Container Credential Provider has no configurable parameters, but listing it in a custom credential provider chain will enable this
/// credential provider.
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ContainerCredentialProvider {}
impl ::prost::Name for ContainerCredentialProvider {
const NAME: &'static str = "ContainerCredentialProvider";
const PACKAGE: &'static str = "envoy.extensions.common.aws.v3";
fn full_name() -> ::prost::alloc::string::String {
"envoy.extensions.common.aws.v3.ContainerCredentialProvider".into()
}
fn type_url() -> ::prost::alloc::string::String {
"type.googleapis.com/envoy.extensions.common.aws.v3.ContainerCredentialProvider"
.into()
}
}
/// The Environment Credential Provider has no configurable parameters, but listing it in a custom credential provider chain will enable this
/// credential provider.
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct EnvironmentCredentialProvider {}
impl ::prost::Name for EnvironmentCredentialProvider {
const NAME: &'static str = "EnvironmentCredentialProvider";
const PACKAGE: &'static str = "envoy.extensions.common.aws.v3";
fn full_name() -> ::prost::alloc::string::String {
"envoy.extensions.common.aws.v3.EnvironmentCredentialProvider".into()
}
fn type_url() -> ::prost::alloc::string::String {
"type.googleapis.com/envoy.extensions.common.aws.v3.EnvironmentCredentialProvider"
.into()
}
}
/// The Instance Profile Credential Provider has no configurable parameters, but listing it in a custom credential provider chain will enable this
/// credential provider.
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct InstanceProfileCredentialProvider {}
impl ::prost::Name for InstanceProfileCredentialProvider {
const NAME: &'static str = "InstanceProfileCredentialProvider";
const PACKAGE: &'static str = "envoy.extensions.common.aws.v3";
fn full_name() -> ::prost::alloc::string::String {
"envoy.extensions.common.aws.v3.InstanceProfileCredentialProvider".into()
}
fn type_url() -> ::prost::alloc::string::String {
"type.googleapis.com/envoy.extensions.common.aws.v3.InstanceProfileCredentialProvider"
.into()
}
}
/// Configuration to use `AssumeRole <<https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html>`\_> for retrieving new credentials, via role chaining.
/// \[\#next-free-field: 6\]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AssumeRoleCredentialProvider {
/// The ARN of the role to assume.
#[prost(string, tag = "1")]
pub role_arn: ::prost::alloc::string::String,
/// An optional role session name, used when identifying the role in subsequent AWS API calls. If not provided, the role session name will default
/// to the current timestamp.
#[prost(string, tag = "2")]
pub role_session_name: ::prost::alloc::string::String,
/// Optional string value to use as the externalId
#[prost(string, tag = "3")]
pub external_id: ::prost::alloc::string::String,
/// An optional duration, in seconds, of the role session. Minimum role duration is 900s (5 minutes) and maximum is 43200s (12 hours).
/// If the session duration is not provided, the default will be determined using the `table described here <<https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_manage-assume.html>`\_.>
#[prost(message, optional, tag = "4")]
pub session_duration: ::core::option::Option<
super::super::super::super::super::google::protobuf::Duration,
>,
/// The credential provider for signing the AssumeRole request. This is optional and if not set,
/// it will be retrieved from the procedure described in :ref:`config_http_filters_aws_request_signing`.
/// This list of credential providers cannot include an AssumeRole credential provider and if one is provided
/// it will be ignored.
#[prost(message, optional, boxed, tag = "5")]
pub credential_provider: ::core::option::Option<
::prost::alloc::boxed::Box<AwsCredentialProvider>,
>,
}
impl ::prost::Name for AssumeRoleCredentialProvider {
const NAME: &'static str = "AssumeRoleCredentialProvider";
const PACKAGE: &'static str = "envoy.extensions.common.aws.v3";
fn full_name() -> ::prost::alloc::string::String {
"envoy.extensions.common.aws.v3.AssumeRoleCredentialProvider".into()
}
fn type_url() -> ::prost::alloc::string::String {
"type.googleapis.com/envoy.extensions.common.aws.v3.AssumeRoleCredentialProvider"
.into()
}
}