Skip to content
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

Fix generating presigned URL for K8s authentication #7487

Merged
merged 1 commit into from
Jan 19, 2024

Commits on Jan 19, 2024

  1. Fix generating presigned URL for K8s authentication

    With `[email protected]`, API server requests containing URLs presigned by `sts.PresignClient` fail with an `Unauthorized` error.
    
    `[email protected]` adds an extra header `amz-sdk-request` to the generated request, but this header is not allow-listed by `aws-iam-authenticator` server running on the control plane.
    This is likely due to [this change](aws/aws-sdk-go-v2#2438) which reorders the middleware operations to execute `RetryMetricsHeader` before `Signing`.
    
    This changelist removes the `RetryMetricsHeader` middleware from the stack when constructing `sts.PresignClient`.
    cpu1 committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    ce27549 View commit details
    Browse the repository at this point in the history