apprunner-roadmap icon indicating copy to clipboard operation
apprunner-roadmap copied to clipboard

Restrict access to App runner service using security group is not working.

Open Dhyanesh97 opened this issue 3 years ago • 1 comments

I have created an app runner service and attached security group using VPC connector.

Here security group is used only to allow app runner to communicate to services within VPC ? Or it can be used to restrict access to App runner as well ?

My Requirement is to basically setup inbound rules for app runner and don't want it to be publicly accessed.

Dhyanesh97 avatar Feb 24 '22 06:02 Dhyanesh97

This is not a feature they have added yet. This seems like a duplicate of https://github.com/aws/apprunner-roadmap/issues/2

jvisker avatar Mar 29 '22 22:03 jvisker

Still the same issue here, I want to access from public internet but use a SG to restrict the incoming traffic. I will keep an eye on the road map.

LeonardoAgri avatar Mar 23 '23 16:03 LeonardoAgri

Is this need not satisfied via WAF web ACLs?

I realize this issue is about using Security Groups, but the original poster's requirement is stated as ...

My Requirement is to basically setup inbound rules for app runner and don't want it to be publicly accessed.

I don't have direct experience using WAF web ACLs - my assumption that it can be used to solve this need is based entirely on my understanding of the App Runner documentation of this feature and the blog post announcing its availability.

I'm asking because I want to validate my own understanding, as I too have this need.

rhbecker avatar Mar 29 '23 18:03 rhbecker

@snnles I'm just wondering "Coming Soon" is still accurate considering it was marked that way in September.

jvisker avatar May 11 '23 18:05 jvisker

App Runner supports private endpoints accessible only from within VPC. You can learn more about the feature in the below What's New post and blogposts mentioned in the announcement.

https://aws.amazon.com/about-aws/whats-new/2022/11/aws-app-runner-supports-privately-accessible-services-amazon-vpc/

smeera381 avatar May 23 '23 22:05 smeera381

Hello, i'm also quite surprised that app runner is not flexible about networking. For example, i allow some Ip's adress only to access a mongoDB Replica with security group settings. I can't find any option/solution to allow my apprunner to access it without set my sg to allow all ips... It's crucial to have this kind of possibilities.

Rileyjrjohns avatar May 27 '23 17:05 Rileyjrjohns

@jsheld Is it possible to access the AppRunner service from the public internet and use a SG to restrict the incoming traffic? Looks like it supports only private endpoints accessible "only from within the VPC and not from public internet". Please verify.

as14692 avatar Jun 07 '23 07:06 as14692

@jsheld We want it to be accessed from public internet but with restricted incoming traffic using security group.

Dhyanesh97 avatar Jun 07 '23 07:06 Dhyanesh97

@as14692 i searched for it, you can't have a static ip or something like that. Or it's maybe possible to do more complex stuff to open it and expose via a static ip inside the vpc. But for a service claiming easy setup, we are quite far 😅

Rileyjrjohns avatar Jun 07 '23 07:06 Rileyjrjohns

@jsheld We want it to be accessed from public internet but with restricted incoming traffic using security group.

@Dhyanesh97 Please reopen the issue if you can.

as14692 avatar Jun 07 '23 07:06 as14692

The recommendation is to use a VPC endpoint and associate the security group with that endpoint accordingly. I believe @smeera381 provided a link to that documentation above.

jsheld avatar Jun 07 '23 18:06 jsheld

The recommendation is to use a VPC endpoint and associate the security group with that endpoint accordingly. I believe @smeera381 provided a link to that documentation above.

This still doesn't allow you to add a security group to the ingress of the app runner.

I would also like to see this functionality. My current workaround (at extra cost) is to use a WAF, and limit the IP addresses which can traverse the WAF ACL to those that I want.

tom-carbontrail avatar Feb 06 '24 22:02 tom-carbontrail