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

Remove support for legacy IAM permissions #9492

Merged
merged 3 commits into from
Jul 18, 2020

Conversation

johngmyers
Copy link
Member

No description provided.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 4, 2020
@k8s-ci-robot k8s-ci-robot added area/api area/documentation size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 4, 2020
@hakman
Copy link
Member

hakman commented Jul 4, 2020

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 4, 2020
@hakman
Copy link
Member

hakman commented Jul 4, 2020

Any reason for not removing this completely? Seems that they are unofficially deprecated since v1.8.0.
https://github.com/kubernetes/kops/blob/99adb5690b8b0c2e1a363312f2af58ca01060c37/docs/iam_roles.md

On provisioning a new cluster with Kops v1.8.0 or above, by default you will be using the new stricter IAM policies. Upgrading an existing cluster will use the legacy IAM privileges to reduce risk of potential regression.

@johngmyers
Copy link
Member Author

We could probably be more aggressive, depreciating in kops 1.18 and removing in 1.19.

@hakman
Copy link
Member

hakman commented Jul 4, 2020

We could probably be more aggressive, depreciating in kops 1.18 and removing in 1.19.

👍

@johngmyers johngmyers force-pushed the deprecate-legacy-iam branch from 223dbb9 to ee4025a Compare July 4, 2020 20:26
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 4, 2020
@johngmyers johngmyers changed the title Remove support for legacy IAM permissions as of Kubernetes 1.19 Remove support for legacy IAM permissions Jul 4, 2020
@k8s-ci-robot k8s-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 4, 2020
@johngmyers
Copy link
Member Author

/test pull-kops-e2e-kubernetes-aws

@johngmyers johngmyers force-pushed the deprecate-legacy-iam branch from a3e2f3a to 8ab28e5 Compare July 4, 2020 20:54
@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Jul 4, 2020
@johngmyers johngmyers force-pushed the deprecate-legacy-iam branch 2 times, most recently from 1856898 to e8abc6d Compare July 4, 2020 21:40
@hakman
Copy link
Member

hakman commented Jul 5, 2020

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 5, 2020
@rifelpet
Copy link
Member

rifelpet commented Jul 5, 2020

I agree with the proposed timeline but I think we should get input from others before doing so. Perhaps an agenda item for the next office hours? Unless we think Kops 1.18 will be released before the next office hours, in which case we could at least get something into the release notes for now.

@rifelpet
Copy link
Member

Perhaps the release notes should mention a migration strategy or at least the impact of this:

Cluster operators should ensure any pods using the EC2 instances' IAM instance profiles have the necessary permissions, either with the cluster's spec.additionalPolicies or by providing AWS credentials through different means.

@johngmyers
Copy link
Member Author

kops create cluster as of kops 1.8 has explicitly disabled legacy IAM, so I don't expect much of anything to be affected. If the cluster was created without an iam field, however, kops would have defaulted to legacy IAM. Is this likely?

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 17, 2020
@johngmyers johngmyers changed the title Remove support for legacy IAM permissions WIP Remove support for legacy IAM permissions Jul 17, 2020
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 17, 2020
@johngmyers
Copy link
Member Author

Per kops office hours, need to put in a escape hatch for 1.19, deferring code removal to 1.20

@johngmyers
Copy link
Member Author

/retest

@hakman
Copy link
Member

hakman commented Jul 17, 2020

I think the Cilium test is broken and those tests should be added to the skip list.

@johngmyers johngmyers force-pushed the deprecate-legacy-iam branch from abedaf9 to 578226e Compare July 18, 2020 02:49
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: johngmyers

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 18, 2020
@johngmyers johngmyers force-pushed the deprecate-legacy-iam branch from 578226e to 88e5e18 Compare July 18, 2020 02:52
@johngmyers johngmyers changed the title WIP Remove support for legacy IAM permissions Remove support for legacy IAM permissions Jul 18, 2020
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 18, 2020
@johngmyers johngmyers force-pushed the deprecate-legacy-iam branch from 88e5e18 to 8cecb6b Compare July 18, 2020 03:01
@k8s-ci-robot
Copy link
Contributor

k8s-ci-robot commented Jul 18, 2020

@johngmyers: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
pull-kops-e2e-cni-cilium abedaf9 link /test pull-kops-e2e-cni-cilium

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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. I understand the commands that are listed here.

@johngmyers johngmyers force-pushed the deprecate-legacy-iam branch from 8cecb6b to 9693da6 Compare July 18, 2020 03:08
@johngmyers
Copy link
Member Author

@hakman I agree those should be added to the skip list. Do we have a tracking issue so we can stop skipping once they start passing?

@hakman
Copy link
Member

hakman commented Jul 18, 2020

@hakman I agree those should be added to the skip list. Do we have a tracking issue so we can stop skipping once they start passing?

We don't, but we will have to re-review skipped test on each Kubernetes minor release.

@johngmyers
Copy link
Member Author

Hrm, looks like that test is just flaky in kops-aws-cni-cilium. But a similar, consistently failing test is cilium/cilium#12489

@hakman
Copy link
Member

hakman commented Jul 18, 2020

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 18, 2020
@k8s-ci-robot k8s-ci-robot merged commit 7cebd82 into kubernetes:master Jul 18, 2020
@k8s-ci-robot k8s-ci-robot added this to the v1.19 milestone Jul 18, 2020
@johngmyers johngmyers deleted the deprecate-legacy-iam branch July 18, 2020 06:19
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. area/api area/documentation area/nodeup 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/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants