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

Making security group creation step optional #1717

Closed
krlydm opened this issue Feb 9, 2022 · 3 comments · Fixed by #1718
Closed

Making security group creation step optional #1717

krlydm opened this issue Feb 9, 2022 · 3 comments · Fixed by #1718
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@krlydm
Copy link
Contributor

krlydm commented Feb 9, 2022

Hi,

I'm facing with an issue on using this solution for our use cases at my company. My company is restricting who has access to create VPC or Security groups in AWS, so implicit security group creating in not allowed due to security concerns. Removing VPC creation is easy, but I can't find any good option to do it for SG. As a workaround to test this, I removed the security group creation, compiled an own runners.zip and pass my pre-created security group ID via runner_additional_security_group_ids.

Is it possible to solve this differently or this would be a new feature request instead?

It would be nice if there is option to treat security groups in a same way as VPC and subnets are handed.

@npalm
Copy link
Member

npalm commented Feb 9, 2022

Sounds like a valid option to me, today setting up the runner require several permissions. We use permission boundaries to limit the scope of the deployment role in AWS. Just wondering, is creating IAM roles allowed?

Feel free to create a PR to optional disable the security group creation of the runner module (default should be true). Suggestion for variable name enable_managed_runner_security_group

@npalm npalm added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Feb 9, 2022
@krlydm
Copy link
Contributor Author

krlydm commented Feb 9, 2022

Sounds good to me, I'm open to create a PR, seems like a simple change what you recommended.
Handling IAM roles are bit different in my case, because we have more room to play with limiting permission boundaries to a specific role via ARN. Security group is like a firewall, they are handled org-wide to make sure we are applying approved restrictions everywhere.

@krlydm
Copy link
Contributor Author

krlydm commented Feb 10, 2022

I have created the pull request for addressing this request: #1718

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
2 participants