-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot only provide auth.region without setting additional auth config #17406
Comments
Hi @bkaznowski ! Thanks for filing this. Can you can confirm the authentication mechanisms you are expecting to use? You mention STS which would imply |
Hi @jszwedko, I don't think we're using IMDS2. We're running Vector in a pod on EKS, and making use of IAM Roles for Service Accounts (IRSA) to provide credentials to Vector. As I understand it, IRSA provides temporary credentials to workloads when they make an More detailed info on how IRSA works: https://aws.amazon.com/blogs/containers/diving-into-iam-roles-for-service-accounts/ |
Gotcha, thanks @andrewnicolalde . Did you try not using |
Yes, we did try. Without |
…hentication Fixes: #17406 Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>
Thanks! I think I understand the issue. I opened #17414 to address it. |
Excellent, thanks! That looks like it should fix the issue |
…hentication (#17414) * enhancement(aws provider): Let `region` be configured for default authentication Fixes: #17406 Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com> * Add some more defaults Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com> * clippy Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com> --------- Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>
…hentication (vectordotdev#17414) * enhancement(aws provider): Let `region` be configured for default authentication Fixes: vectordotdev#17406 Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com> * Add some more defaults Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com> * clippy Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com> --------- Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>
…hentication (vectordotdev#17414) * enhancement(aws provider): Let `region` be configured for default authentication Fixes: vectordotdev#17406 Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com> * Add some more defaults Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com> * clippy Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com> --------- Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>
A note for the community
Problem
When specifying the s3 bucket region, this also overrides the sts endpoint to the same region as the bucket. For example, if the region is set to
eu-west-1
then Vector will usests.eu-west-1.amazonaws.com
as the sts endpoint. The sts region can be overwritten by settingauth.region
. However, this cannot be set without providing other fields and is contrary to what the documentation says. This is because it won't match any of the AwsAuthentication enum implementations and leads to the following error:We run Vector in EKS and so we have an IAM role associated with the Kubernetes service account. However, we have a firewall that restricts egress traffic. This means that we don't have to provide any other auth config for Vector to be able to work but it has to be able to communicate with a whitelisted sts endpoint. Ideally, we don't want to whitelist the regional sts endpoints and would like to either have a way to force it to either use the global endpoint or for Vector to allow overriding the sts region without having to provide additional auth fields.
Configuration
Version
vector 0.29.1 (x86_64-unknown-linux-musl 74ae15e 2023-04-20 14:50:42.739094536)
Debug Output
Example Data
No response
Additional Context
References
No response
The text was updated successfully, but these errors were encountered: