-
-
Notifications
You must be signed in to change notification settings - Fork 330
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
feat!: add custom egress rules to docker-autoscaler security group #1222
base: main
Are you sure you want to change the base?
feat!: add custom egress rules to docker-autoscaler security group #1222
Conversation
Hey @ikarlashov! 👋 Thank you for your contribution to the project. Please refer to the contribution rules for a quick overview of the process. Make sure that this PR clearly explains:
With submitting this PR you confirm that you hold the rights of the code added and agree that it will published under this LICENSE. The following ChatOps commands are supported:
Simply add a comment with the command in the first line. If you need to pass more information, separate it with a blank line from the command. This message was generated automatically. You are welcome to improve it. |
…Don't provision docker-machine security group when docker-autoscaler is used. Signed-off-by: Yevgen Karlashov <[email protected]>
b2e2ef5
to
bfa1b36
Compare
Signed-off-by: Yevgen Karlashov <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your work to improve this module. I noticed the major change, but I think we can go on as it is easy to handle for the users.
Signed-off-by: Yevgen Karlashov <[email protected]>
Signed-off-by: Yevgen Karlashov <[email protected]>
…r manager and Runner workers ASGs Signed-off-by: Yevgen Karlashov <[email protected]>
…cker-autoscaler workers' ASG Signed-off-by: Yevgen Karlashov <[email protected]>
Signed-off-by: Yevgen Karlashov <[email protected]>
Signed-off-by: Yevgen Karlashov <[email protected]>
Signed-off-by: Yevgen Karlashov <[email protected]>
It would be nice to allow traffic within runner-manager ASG and Docker-autoscaler workers ASG. Basically add this to
But if I add it, terraform doesn't detect any changes for runner's SG. |
Signed-off-by: Yevgen Karlashov <[email protected]>
Perhaps it is already in place? |
…ler SG rules Signed-off-by: Yevgen Karlashov <[email protected]>
Signed-off-by: Yevgen Karlashov <[email protected]>
Signed-off-by: Yevgen Karlashov <[email protected]>
Signed-off-by: Yevgen Karlashov <[email protected]>
Signed-off-by: Yevgen Karlashov <[email protected]>
Signed-off-by: Yevgen Karlashov <[email protected]>
Signed-off-by: Yevgen Karlashov <[email protected]>
Signed-off-by: Yevgen Karlashov <[email protected]>
Signed-off-by: Yevgen Karlashov <[email protected]>
Signed-off-by: Yevgen Karlashov <[email protected]>
Signed-off-by: Yevgen Karlashov <[email protected]>
Signed-off-by: Yevgen Karlashov <[email protected]>
Signed-off-by: Yevgen Karlashov <[email protected]>
Signed-off-by: Yevgen Karlashov <[email protected]>
Signed-off-by: Yevgen Karlashov <[email protected]>
Alright. I think it's ready for another round of review (: |
@ikarlashov Seems that I am not allowed to push into your branch. Could you please update the permissions? |
@kayman-mk Weird, I have this in the PR: |
Did a refactoring and notice that we also have |
Verification
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
I'd like to test this with my current setup before merging it. |
…docker_autoscaler
Add custom egress rules to docker-autoscaler security group and remove condition to provision unused docker-machine security group.
Description
var.runner_worker_docker_autoscaler_asg
becomes bulky and hard to read. Considering the complexity of the ingress rules structure, it makes sense to create a separate variablevar.runner_worker_docker_autoscaler_ingress_rules
for ingress rules. This way we will follow variable convention for existing security group rules variables, i.e.var.runner_worker_docker_machine_extra_egress_rules
. In the result of the change:var.runner_worker_docker_autoscaler_asg.sg_ingresses
is removed and its content should be moved tovar.runner_worker_ingress_rules
.var.runner_ingress_rules
to manage Ingress rules for runner-manager security group.var.runner_networking_egress_rules
has migrated tovar.runner_egress_rules
with a new spec.Migrations required
var.runner_worker_docker_autoscaler_asg.sg_ingresses
tovar.runner_worker_ingress_rules
.var.runner_networking_egress_rules
migrated tovar.runner_manager_egress_rules
with a new spec.var.runner_worker_docker_machine_extra_egress_rules
tovar.runner_worker_egress_rules
. In case you used multiple cidr_blocks, ... you have to create multiple rules.Attention: The default value for
var.runner_worker_docker_machine_extra_egress_rules
allowing all egress traffic has been replaced by a rule allowing traffic to port 443 only. Don't forget to add the rules you need tovar.runner_worker_egress_rules
.Attention: Due to the resource replacement you might see inconsistencies and disappearing security group rules. In that case delete all rules from the Runner and Runner Workers and apply the module again.
Sample egress rule: