soto-project / soto-core

Core framework of Soto the Swift SDK for AWS
https://soto.codes
Apache License 2.0
111 stars 51 forks source link

Add support for AWS_ROLE_ARN environment variables #605

Closed adam-fowler closed 7 months ago

adam-fowler commented 7 months ago

Add support for AWS_ROLE_ARN, AWS_ROLE_SESSION_NAME and AWS_WEB_IDENTITY_TOKEN_FILE environment variables.

This ended up required more change than expected as it required another STS command merged into SotoCore. I have also tidied up a few things along the way.

codecov[bot] commented 7 months ago

Codecov Report

Attention: Patch coverage is 90.67797% with 11 lines in your changes are missing coverage. Please review.

Project coverage is 80.51%. Comparing base (1455f07) to head (13f0cde).

Files Patch % Lines
...urces/SotoCore/Credential/CredentialProvider.swift 57.89% 8 Missing :warning:
Sources/SotoTestUtils/TestUtils.swift 81.81% 2 Missing :warning:
.../SotoCore/Credential/CredentialProviderError.swift 80.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## 7.x.x #605 +/- ## ========================================== + Coverage 80.39% 80.51% +0.12% ========================================== Files 78 78 Lines 6468 6575 +107 ========================================== + Hits 5200 5294 +94 - Misses 1268 1281 +13 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.