-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat: Specify Managed Prefix List for access control #3584
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
Conversation
Welcome @yo-ga! |
Hi @yo-ga. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
docs/guide/service/annotations.md
Outdated
|
||
!!!example | ||
``` | ||
service.beta.kubernetes.io/aws-load-balancer-security-group-prefix-lists: pl-00000000 |
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.
nit: maybe give an example with multiple lists
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 the suggestion. Updated in 66afd13
@@ -113,6 +129,9 @@ func (t *defaultModelBuildTask) buildCIDRsFromSourceRanges(_ context.Context, ip | |||
} | |||
} | |||
if len(cidrs) == 0 { | |||
if prefixListsConfigured { |
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.
just for my understanding - why we allow an empty cidr, if prefixLists is configured?
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.
If the user just wants to allow the traffic only from the prefix list, the controller needs to skip the unlimited CIDR settings (0.0.0.0/0
or ::/0
)
svc: &corev1.Service{ | ||
ObjectMeta: metav1.ObjectMeta{ | ||
Annotations: map[string]string{ | ||
"service.beta.kubernetes.io/aws-load-balancer-security-group-prefix-lists": "pl-xxxxx", |
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.
nit: can we test against multiple lists too?
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.
The test is added in 51c5998
@yo-ga, sorry for late response, and thanks for your contribution. I left some comments. |
Hi @oliviassss , kindly confirm the change and the reply |
/ok-to-test |
Hi @oliviassss, the test seems well. |
/lgtm |
@M00nF1sh can you check / approve / merge please? |
@oliviassss @M00nF1sh Any news? |
@M00nF1sh hello, any update on this? Thank you |
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.
/lgtm
/approve
Thanks for making this change, it looks good to me.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: M00nF1sh, yo-ga The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @M00nF1sh , one more thing to ask, when will the feature be released? |
Hi @oliviassss and @M00nF1sh , same question as @yo-ga , is there an estimation on when will this be released? |
I just tested v2.8.0 and it seems to be working. Thanks! |
Issue
Description
Checklist
README.md
, or thedocs
directory)BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯