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

Teleport can't connect to S3 FIPS endpoint #41177

Open
russjones opened this issue May 2, 2024 · 2 comments
Open

Teleport can't connect to S3 FIPS endpoint #41177

russjones opened this issue May 2, 2024 · 2 comments
Assignees
Labels
aws Used for AWS Related Issues. bug

Comments

@russjones
Copy link
Contributor

When running Teleport with --fips flag, Auth Service is unable to contact S3 to upload a session recording. In this example, Teleport attempted to contact s3-fips.us-east-1.amazonaws.com but no DNS entry exists for this name.

$ dig +short s3-fips.us-east-1.amazonaws.com
$ 

Based on https://aws.amazon.com/compliance/fips I think what we need is Teleport to try and connect to https://bucket.s3-fips.us-east-2.amazonaws.com.

@russjones russjones added the bug label May 2, 2024
@zmb3 zmb3 added the aws Used for AWS Related Issues. label May 3, 2024
@greedy52 greedy52 self-assigned this May 3, 2024
@greedy52
Copy link
Contributor

greedy52 commented May 3, 2024

I couldn't reproduce this with v15.3.0 fips build.

  storage:
    region: us-east-1
    audit_sessions_uri: "s3://<my-bucket>/root-cluster"

Debugging locally with AWS log shows it's using the right fips URL in the https://bucket.s3-fips.us-east-2.amazonaws.com format.

024/05/03 14:29:34 DEBUG: Request s3/HeadBucket Details:
---[ REQUEST POST-SIGN ]-----------------------------
HEAD / HTTP/1.1
Host: steve-test-fips.s3-fips.us-east-1.amazonaws.com
User-Agent: aws-sdk-go/1.51.30 (go1.22.2; darwin; arm64)
Authorization: AWS4-HMAC-SHA256 Credential=<redacted>/20240503/us-east-1/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=<redacted>
X-Amz-Content-Sha256: <redacted>
X-Amz-Date: 20240503T182934Z

@russjones do we have the problematic config yaml for repro?

@greedy52
Copy link
Contributor

greedy52 commented Aug 29, 2024

The problem was resolved in user cluster when moved to a new bucket. We suspected the issue is that the previous bucket has dot . in the name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws Used for AWS Related Issues. bug
Projects
None yet
Development

No branches or pull requests

3 participants