You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The security groups to the workload LB cluster api are very open on the internet by default (from 0.0.0.0/0 to 6443)
(LB = internet-facing)
They must be configurable to be more restricted.
But by wanting to restrict the security groups, on the workload cluster, there is a limit :
Explanation:
As the VPCs in mgmt cluster and workload are distinct and not linked , it is necessary to authorize on the workload LB cluster:
the nat gateway of the mgmt cluster
the nat gateway of the workload cluster: because the workload nodes contact the public ip of the LB via the nat gateway.
But The nat gw of the workload cluster is created dynamically by the outscale provider, and is not known beforehand
We can't add automatically the nat gw in the OscCluster security group at deploy time
Describe the solution you would like
1- The nat gw of the workload cluster is created dynamically by the outscale provider, and is not known beforehand.
It must be added to the LB security group automatically
For example, you can see how this is implemented on the provider cluster-api-provider-aws
2- other solution: allow to enroll outside ressources (VPC, nat gw, etc...) in the workload cluster . So we can explicitly declare pre created ressources.
It ' s a problem of dynamically allow the Public IP of the nat gw of the current workload cluster to allow workload nodes to communicate with is own LB
Explain problem to solve
Hello
The security groups to the workload LB cluster api are very open on the internet by default (from 0.0.0.0/0 to 6443)
(LB = internet-facing)
They must be configurable to be more restricted.
But by wanting to restrict the security groups, on the workload cluster, there is a limit :
Explanation:
As the VPCs in mgmt cluster and workload are distinct and not linked , it is necessary to authorize on the workload LB cluster:
But The nat gw of the workload cluster is created dynamically by the outscale provider, and is not known beforehand
We can't add automatically the nat gw in the OscCluster security group at deploy time
Describe the solution you would like
1- The nat gw of the workload cluster is created dynamically by the outscale provider, and is not known beforehand.
It must be added to the LB security group automatically
For example, you can see how this is implemented on the provider cluster-api-provider-aws
https://github.com/kubernetes-sigs/cluster-api-provider-aws/blob/main/pkg/cloud/services/securitygroup/securitygroups.go#L926
2- other solution: allow to enroll outside ressources (VPC, nat gw, etc...) in the workload cluster . So we can explicitly declare pre created ressources.
As described in cluster-api-provider-aws:
https://cluster-api-aws.sigs.k8s.io/topics/bring-your-own-aws-infrastructure
Additional context
Ensure Kubernetes API servers are not publicly accessible
Environment
The text was updated successfully, but these errors were encountered: