Sitelet https://github.com/kubernetes/kops/pull/18693
Skip to content

iam: grant ec2:DescribeSecurityGroups for AWS VPC CNI - #18693

Merged
kubernetes-prow[bot] merged 1 commit into
kubernetes:masterfrom
hakman:aws-cni-describe-security-groups
Aug 15, 2026
Merged

kubernetes-prow[bot] merged 1 commit into
kubernetes:masterfrom
hakman:aws-cni-describe-security-groups

Conversation

@hakman

@hakman hakman commented Aug 15, 2026

Copy link
Copy Markdown
Member

Since aws-vpc-cni-k8s v1.22.1, ipamd calls both ec2:DescribeSubnets and ec2:DescribeSecurityGroups when subnet discovery is enabled, which is the default. Without the permission, subnet discovery fails and the CNI falls back to allocating IPs only from the primary ENI's subnet. Upstream added the permission to its recommended IAM policy in v1.23.0.
See aws/amazon-vpc-cni-k8s#3709 for more details.

/cc @moshevayner @rifelpet

Since aws-vpc-cni-k8s v1.22.1, ipamd requires ec2:DescribeSecurityGroups
in addition to ec2:DescribeSubnets when subnet discovery is enabled,
which is the default. Without it, subnet discovery falls back to the
primary ENI's subnet.
@kubernetes-prow kubernetes-prow Bot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Aug 15, 2026

@moshevayner moshevayner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@kubernetes-prow kubernetes-prow Bot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 15, 2026
@hakman

hakman commented Aug 15, 2026

Copy link
Copy Markdown
Member Author

/approve

@kubernetes-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hakman, moshevayner

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubernetes-prow kubernetes-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 15, 2026
@kubernetes-prow
kubernetes-prow Bot merged commit 365a8e1 into kubernetes:master Aug 15, 2026
40 of 41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants