ExportXMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Go Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      Context

      CSFLE prose tests need AWS credentials and related secrets, currently obtained via a manual aws sso login step run by the engineer before testing. This blocks zero-effort local reproduction. Create a Dockerfile and helper that runs the SSO login inside a container (browser auth won't work in-container, so use aws sso login --profile "$AWS_PROFILE" --no-browser), prompts the user for authentication interactively, and exports the resulting secrets to a temporary directory the host test process can read.

      Definition of done

      • internal/test/prose/docker/aws-sso-login.Dockerfile added to mongo-go-driver, based on public.ecr.aws/aws-cli/aws-cli, with an entrypoint script that runs the login.
      • internal/test/prose package has exportSecrets(*testing.T), which builds/starts the container via testcontainers-go and surfaces the exported secrets to the caller.
      • internal/test/prose is a standalone Go module with its own go.work file.
      • Entrypoint runs aws sso login --profile "$AWS_PROFILE" --no-browser, then exports secrets to a directory bind-mounted from the host.
      • Tests for ExportSecrets exist using a fixture image, so the suite runs without requiring real AWS credentials or an interactive SSO prompt.
      • Manually verified end-to-end: running against a real $AWS_PROFILE produces valid, usable secrets.

      Pitfalls

      Not investigated

            Assignee:
            Ayesha Islam
            Reporter:
            Preston Vasquez
            Preston Vasquez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: