Allow GitHub to access ACR - IP rule limit exceeded

ScottShorkey 16 Reputation points
2022-03-01T22:22:12.187+00:00

I have an Azure Container Registry which has images being pushed to it using GitHub Actions. To make this work, I had previously enabled access to the ACR from all public networks.

As part of a security hardening, I'm currently in the process of limiting it to selected public networks. However, there is a big problem with this.

I have to manually add each GitHub IP as an IP rule for the Azure Container Registry. However, there is a limit of no more than 100 IP rules in the ACR, and GitHub uses a total of 2098 different IP ranges for GitHub actions (https://api.github.com/meta), well over the limit of 100.

How should I proceed? Do I need to just ignore security recommendations and leave the ACR open to the entire internet just to get around this issue?

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
508 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Fawad Shaikh 1 Reputation point
    2022-06-16T01:44:17.767+00:00

    Same question.

    I guess everyone just leaves it open to the public or uses circleCI who has a much more limited range of IP addresses (about 20).

    I am considering dropping GitHub Actions and moving to circle CI for this reason alone.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.