aws / aws/containers-roadmap

[ECR] [request]: sourceIPAddress field in CloudTrail Logs

Open
#1,634 4 comments 4 reactions 0 assignees View on GitHub
ECR Proposed
Dominant language
Shell
Stars
5.4k
Forks
334
PR merge metrics
No merged PRs in 30d

Description

### Community Note

* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request
* Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
* If you are interested in working on this issue or have submitted a pull request, please leave a comment

**Tell us about your request**
All push/pull actions performed against a repository record the sourceIPAddress field in CloudTrail as "AWS Internal". this is because (to the best of my understanding) the repository itself is a different service, and is essentially proxying the requests. As we make greater efforts to control our supply chain, not being able to reliably track source IPs for code commits is causing issues for us.

**Which service(s) is this request for?**
ECR

**Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?**
We are planning to leverage Registry Policies to create allow/deny lists for Push actions against the repositories. With some research and some help from AWS support, we found that this is indeed possible, however the source IP address of those requests is not recorded. As you can imagine, if you are going to be installing an allow list filter on an in-use service, it's very important to be able to assert that the lists you are about to install will not break existing work flows, and log analysis is one of the best ways to do this. additionally, once installed, troubleshooting failures would rely HEAVILY on being able to reliably determine the source IP.

**Are you currently working around this issue?**
I dont have a good work around at the moment. Technically we can get to the end state we need to be in, but the lack of visibility for source IPs creates a significant blind spot for monitoring, as well as a huge troubleshooting problem, that we dont have a work around for.

Contributor guide

Open the contributing guide

Research direction

The request concerns ECR push and pull actions whose CloudTrail sourceIPAddress is recorded as "AWS Internal". No repository files, tests, or implementation entry points are identified, so start by reviewing the ECR and CloudTrail behavior described in the issue. Done would require source IP visibility that can support registry-policy validation and troubleshooting.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cloud, observability, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.