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

Plumb credentialSpecs field into container #3675

Conversation

arun-annamalai
Copy link
Contributor

@arun-annamalai arun-annamalai commented May 5, 2023

Summary

This PR adds the credentialSpecs field into the agent container object, and then modifies the getCredentialSpec function to look in the credentialSpecs field when attempting to retrieve any credentialSpecs associated with the container.

Implementation details

The changes to getCredentialSpec() are implemented in the following

  1. First check the container credentialSpecs field for the credentialSpec
  2. Then check the docker HostConfig field for the credentialSpec
  3. If none are found in both locations, throw error

Testing

This was tested through unit tests, as well as manually running the agent on the instance, calling run-task with a domainless gMSA task, and printing out the contents of the container object.

New tests cover the changes: yes

Description for the changelog

Plumb credentialSpecs field into container

Licensing

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

@arun-annamalai arun-annamalai self-assigned this May 5, 2023
@arun-annamalai arun-annamalai marked this pull request as ready for review May 5, 2023 18:47
@arun-annamalai arun-annamalai requested a review from a team as a code owner May 5, 2023 18:47
@arun-annamalai arun-annamalai merged commit 2a07541 into aws:feature/ecs-domainless-gmsa May 8, 2023
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.

5 participants