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

feat(rancher): AWS - Variable to adjust security group ingress cidr #246

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

wombelix
Copy link

@wombelix wombelix commented Nov 5, 2024

Default for backwards compatibility 0.0.0.0/0, but recommended to lock down public access to a single ip address or a limited range.

Additional change in K3s installation: Advertise kube apiserver on internal ip (advertise-address), allow access in addition through public ip (tls-san).

This PR improves security by advertising kube apiserver on the internal ip and allowing narrowed down ingress rules. Result is a security group that allows self access and from the CIDR defined in variable security_group_ingress_cidr.

Default for backwards compatibility 0.0.0.0/0, but recommended to lock down public access to a single ip address or a limited range.

Additional change in K3s installation: Advertise kube apiserver on internal ip (advertise-address), allow access in addition through public ip (tls-san).
@wombelix wombelix changed the title feat(rancher): AWS - Variable to adjust security group ingress cidr [WIP] feat(rancher): AWS - Variable to adjust security group ingress cidr Nov 5, 2024
@wombelix
Copy link
Author

wombelix commented Nov 5, 2024

Requires one more adjustment: The workload cluster tries to reach Rancher through the public fqdn, working on it.

…e on private ip inside vpc

Rancher URL is set to a public reachable FQDN based on sslip.io. The workload cluster tries to reach and join Rancher through that public IP. In cases were the ingress CIDR is not 0.0.0.0/0 (recommended), downstream cluster need a way to reach Rancher through the private IP. This is achieved with a split-horizon DNS setup that maps the Rancher FQDN to a private ip inside the VPC.
@wombelix
Copy link
Author

wombelix commented Nov 5, 2024

Problem addressed with 289682f and successfully tested.

@wombelix wombelix changed the title [WIP] feat(rancher): AWS - Variable to adjust security group ingress cidr feat(rancher): AWS - Variable to adjust security group ingress cidr Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant