Regression with `AWS_WEB_IDENTITY_TOKEN_FILE` + `AWS_ROLE_ARN`

Open
#411 11 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
aws, google-cloud, python, rust
Domain
cloud

Research direction

The entry points shown are Python S3Store and obstore.get; reproduce the example against obstore 0.4.0 and 0.5.0, then compare request and TLS behavior with AWS_WEB_IDENTITY_TOKEN_FILE and AWS_ROLE_ARN. Confirm the fix by making the same stream operation work for AWS and GCS without the InvalidCertificate/UnknownIssuer error.

Written by the indexing model from the issue text.

Description

On obstore 0.4.0, I can use AWS_WEB_IDENTITY_TOKEN_FILE and the following works:

    store = obstore.store.S3Store("my_bucket")
    obj = obstore.get(store, ".../file1.txt")

    for data in obj.stream():
        print(data)

On obstore 0.5.0, running the same code, I get this error:

    obstore.exceptions.GenericError: Generic S3 error: Error performing POST REDACTED in 4.674430573s, after 10 retries, max_retries: 10, retry_timeout: 180s  - HTTP error: error sending request

    Debug source:
    Generic {
        store: "S3",
        source: RetryError {
            method: POST,
            uri: None,
            retries: 10,
            max_retries: 10,
            elapsed: 4.674430573s,
            retry_timeout: 180s,
            inner: Http(
                HttpError {
                    kind: Connect,
                    source: reqwest::Error {
                        kind: Request,
                        source: hyper_util::client::legacy::Error(
                            Connect,
                            Custom {
                                kind: Other,
                                error: Custom {
                                    kind: InvalidData,
                                    error: InvalidCertificate(
                                        UnknownIssuer,
                                    ),
                                },
                            },
                        ),
                    },
                },
            ),
        },
    }

Note, I get the same error on GCS.

Dominant language
Python
Stars
842
Forks
50
Avg merge
9h
Merged PRs (30d)
13

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from developmentseed/obstore

All issues in developmentseed/obstore

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.