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

feat: Add token resolution to ECS credential provider #1778

Merged
merged 6 commits into from
Sep 26, 2024
Merged

Conversation

dayaffe
Copy link
Contributor

@dayaffe dayaffe commented Sep 25, 2024

Issue #

1735

Description of changes

  • exposed resolved host, pathAndQuery, authorizationToken for debugging
  • add a function to resolve authorization token
  • remove unused mocks from unit testing
  • clean up existing unit tests + add tests for authorization token

New/existing dependencies impact assessment, if applicable

Conventional Commits

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

Copy link
Contributor

@jbelkins jbelkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please unset env vars during test teardown. I'm paranoid about env vars affecting future tests.

unsetenv("AWS_CONTAINER_CREDENTIALS_RELATIVE_URI")
unsetenv("AWS_CONTAINER_CREDENTIALS_FULL_URI")
unsetenv("AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE")
unsetenv("AWS_CONTAINER_AUTHORIZATION_TOKEN")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of an abundance of caution, should we unset these during test teardown too?

@dayaffe dayaffe merged commit dbdba02 into main Sep 26, 2024
27 of 28 checks passed
@dayaffe dayaffe deleted the day/fix-ecs branch September 26, 2024 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants