[TT-15741] Fixed issue with Kinesis not handling IMDS credentials#999
[TT-15741] Fixed issue with Kinesis not handling IMDS credentials#999LLe27 wants to merge 1 commit into
Conversation
|
This PR fixes a critical authentication issue with the AWS Kinesis pump where it fails to use EC2 Instance Metadata Service (IMDS) or IAM Roles for Service Accounts (IRSA) for credentials. The root cause was an incompatibility between different Files Changed Analysis
Architecture & Impact Assessment
graph TD
subgraph Tyk Pump
A[Kinesis Pump]
B[SQS Pump]
C[Timestream Pump]
end
subgraph AWS SDK v2
D[aws-sdk-go-v2]
E[IMDS/IRSA Credential Provider]
end
subgraph AWS Services
F[Kinesis]
G[SQS]
H[Timestream]
end
A -- uses --> D
B -- uses --> D
C -- uses --> D
D -- authenticates via --> E
A -- sends data to --> F
B -- sends data to --> G
C -- sends data to --> H
style D fill:#f9f,stroke:#333,stroke-width:2px
style E fill:#f9f,stroke:#333,stroke-width:2px
Scope Discovery & Context ExpansionThe change, while targeted at fixing a Kinesis issue, updates the core AWS SDK modules used by other components. The updated dependencies for References
Metadata
Powered by Visor from Probelabs Last updated: 2026-05-07T20:13:33.296Z | Triggered by: pr_opened | Commit: a565e7b 💡 TIP: You can chat with Visor using |
✅ Security Check PassedNo security issues found – changes LGTM. ✅ Performance Check PassedNo performance issues found – changes LGTM. ✅ Security Check PassedNo security issues found – changes LGTM. \n\n \n\n✅ Performance Check PassedNo performance issues found – changes LGTM. \n\n✅ Quality Check PassedNo quality issues found – changes LGTM. Powered by Visor from Probelabs Last updated: 2026-05-07T20:13:19.959Z | Triggered by: pr_opened | Commit: a565e7b 💡 TIP: You can chat with Visor using |
|



Description
Tyk Pump fails to authenticate with AWS Kinesis when using EC2 Instance Metadata Service (IMDS) or IRSA (IAM Roles for Service Accounts) credentials. Analytics records are silently dropped. The root cause is a version skew in the aws-sdk-go-v2 dependency tree — the core SDK module (v1.31.0, Oct 2024) is incompatible with companion modules (config v1.9.0, credentials v1.6.1, sts v1.10.0) that are pinned to 2021 releases. The fix is a go.mod dependency update to align all modules to compatible versions.
Related Issue
TT-15741: Tyk Pump failing to send records to Kinesis due to IMDS credential resolution error
Motivation and Context
How This Has Been Tested
Screenshots (if appropriate)
Types of changes
Checklist
fork, don't request your
master!masterbranch (left side). Also, you should startyour branch off our latest
master.go mod tidy && go mod vendorgo fmt -sgo vet