Skip to content

Commit 862a4ec

Browse files
committed
fix(aws): AWS MSK IAM authentication failures on low traffic and Missing TLS support
Signed-off-by: Arbin <[email protected]>
1 parent 05ecb6d commit 862a4ec

File tree

4 files changed

+74
-232
lines changed

4 files changed

+74
-232
lines changed

src/aws/flb_aws_credentials_ec2.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,6 @@ int refresh_fn_ec2(struct flb_aws_provider *provider) {
132132
flb_debug("[aws_credentials] Refresh called on the EC2 IMDS provider");
133133

134134
if (try_lock_provider(provider)) {
135-
/* Set to 1 (epoch start) to trigger immediate refresh via time check */
136-
implementation->next_refresh = 1;
137-
138135
ret = get_creds_ec2(implementation);
139136
unlock_provider(provider);
140137
}

src/aws/flb_aws_credentials_http.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,6 @@ int refresh_fn_http(struct flb_aws_provider *provider) {
158158
flb_debug("[aws_credentials] Refresh called on the http provider");
159159

160160
if (try_lock_provider(provider)) {
161-
/* Set to 1 (epoch start) to trigger immediate refresh via time check */
162-
implementation->next_refresh = 1;
163-
164161
ret = http_credentials_request(implementation);
165162
unlock_provider(provider);
166163
}

src/aws/flb_aws_credentials_sts.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,6 @@ int refresh_fn_sts(struct flb_aws_provider *provider) {
177177
flb_debug("[aws_credentials] Refresh called on the STS provider");
178178

179179
if (try_lock_provider(provider)) {
180-
/* Set to 1 (epoch start) to trigger immediate refresh via time check */
181-
implementation->next_refresh = 1;
182-
183180
ret = sts_assume_role_request(implementation->sts_client,
184181
&implementation->creds, implementation->uri,
185182
&implementation->next_refresh);
@@ -485,9 +482,6 @@ int refresh_fn_eks(struct flb_aws_provider *provider) {
485482
flb_debug("[aws_credentials] Refresh called on the EKS provider");
486483

487484
if (try_lock_provider(provider)) {
488-
/* Set to 1 (epoch start) to trigger immediate refresh via time check */
489-
implementation->next_refresh = 1;
490-
491485
ret = assume_with_web_identity(implementation);
492486
unlock_provider(provider);
493487
}

0 commit comments

Comments
 (0)