Giter VIP home page Giter VIP logo

Comments (4)

5stars217 avatar 5stars217 commented on September 21, 2024

Hi!

I noticed some code changes a few hours ago related to AWS Authentication, I tested what is here, by pulling the new version of the code and reconfiguring my config.yml files.

Where 34.215.117.212 is the address of the teamserver that a container image is being requested (cobaltstrike, using the container mappings example.yml updated with the appropriate image location).

skipping: [35.89.8.160]
included: /opt/new-terry-the-terraformer/terry-the-terraformer/playbooks/core/login-to-container-registry.yml for 34.215.117.212

TASK [Install the AWS CLI] *****************************************************
skipping: [34.215.117.212]

TASK [Prepare the container registry URL for parsing] **************************
skipping: [34.215.117.212]

TASK [Extract the AWS Account ID and Region from ECR URL] **********************
skipping: [34.215.117.212]

TASK [Authenticate to the container registry (aws strategy)] *******************
skipping: [34.215.117.212]

TASK [Authenticate to the container registry (default strategy)] ***************
fatal: [34.215.117.212]: FAILED! => {"changed": false, "msg": "Logging into 123456dkr.ecr.us-west-2.amazonaws.com for user AKIA.... failed - 500 Server Error for http+docker://localhost/v1.41/auth: Internal Server Error (\"login attempt to https://123456.dkr.ecr.us-west-2.amazonaws.com/v2/ failed with status: 401 Unauthorized\")"}

My config.yml looks like this for AWS", which matches your new, updated descriptions: - thank you for those.

Something is still not right, but I am unable to troubleshoot why the login steps are skipped for a host where it is required.

 container_registry: 123456.dkr.ecr.us-west-2.amazonaws.com
  container_registry_username: AKIA....
  container_registry_password: blah....
  container_registry_strategy: aws # If using AWS ECR, specify "aws"

from terry-the-terraformer.

ezra-buckingham avatar ezra-buckingham commented on September 21, 2024

Hey! Totally missed the first issue, but I am still in development of support for AWS ECR. I have found a few bugs that still need working out

from terry-the-terraformer.

ezra-buckingham avatar ezra-buckingham commented on September 21, 2024

It looks like the bug you are seeing is exactly the bug I need to fix. Terry will not cascade the value in the config that you have set as aws to the runtime. I will look into this tonight unless you want to make a PR

from terry-the-terraformer.

ezra-buckingham avatar ezra-buckingham commented on September 21, 2024

Fixed 53a3b05

from terry-the-terraformer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.