awslabs / aws-c-auth

C99 library implementation of AWS client-side authentication: standard credentials providers and signing.
Apache License 2.0
40 stars 30 forks source link

Update ECS Credentials Provider to add support for AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE #233

Closed waahm7 closed 5 months ago

waahm7 commented 5 months ago

Issue #, if available:

Description of changes: Adds support for AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE with the following priority

  1. auth_token parameter
  2. AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE (env var which contains absolute path to the token file. The file will be re-read for each call to get credentials.)
  3. AWS_CONTAINER_AUTHORIZATION_TOKEN (env var which contains static auth token)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

codecov-commenter commented 5 months ago

Codecov Report

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

Project coverage is 79.54%. Comparing base (0de6b27) to head (ea1dd45).

Files Patch % Lines
source/credentials_provider_ecs.c 77.27% 5 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #233 +/- ## ========================================== - Coverage 79.55% 79.54% -0.01% ========================================== Files 33 33 Lines 5860 5872 +12 ========================================== + Hits 4662 4671 +9 - Misses 1198 1201 +3 ```

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