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

Renaming IAM Phase to Security #3639

Merged
merged 2 commits into from
Oct 27, 2017

Conversation

chrislovecnm
Copy link
Contributor

@chrislovecnm chrislovecnm commented Oct 16, 2017

Adding new phases for security group and load balancers lifecycles. PRs that follow will wire this in

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 16, 2017
@chrislovecnm
Copy link
Contributor Author

/approve

@k8s-github-robot k8s-github-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 16, 2017
@justinsb
Copy link
Member

So how does this work now? Who runs the various phases, and in which order?

@chrislovecnm
Copy link
Contributor Author

chrislovecnm commented Oct 17, 2017

Securitygroups are in cluster and elbs are in network

  1. Cluster and elbs have security groups. And we need to move them into there own phase for security department people.
  2. Elbs depend on cluster ;) So they need to be last.

We need

  1. Assets
  2. IAM
  3. Network (no load balancer, as we do not have asgs to tie them to)
  4. Sec groups (moving elb and cluster sec groups here)
  5. Cluster (removing sec groups and elbs)
  6. Elb

Edited: added IAM

@justinsb
Copy link
Member

Where does IAM fit in? Where does a locked down IAM fit in? Can we put SG & ELB into one of the existing phases?

@chrislovecnm
Copy link
Contributor Author

ELBs depend on SG, so they could be in Cluster, but I think it is cleaner to break them out. I have had pushback from clients on creating ELBs since they can open API to the world. They cannot be in the network because they depend on ASG.

We have discussed breaking out SGs, because of the SG PR I have. Since they are really network related and not IAM perm related, they look and feel better to be broken out.

ELB is the only one that we could move into Cluster.

We could move SGs an IAM together, but perms for IAM are really huge. I could see a company giving SG perms but not IAM perms.

What is your concern? We have discussed exactly this breakout unless I was confused.

@justinsb
Copy link
Member

My concern is that we now have a 5 step process.

  • Run the IAM phase
  • Run the network phase
  • Run the sec group phase
  • Run the cluster phase
  • Run the ELB phase

That's bad enough, but the bigger problem is that the problem you're describing might be solved by granting permissions to create an ELB only with certain Security Groups, for example. Which then puts the security group phase as a pre-requisite of the IAM phase. I'm thinking security groups might actually belong in the IAM phase, although we'd have to rename IAM to "security"

@chrislovecnm
Copy link
Contributor Author

chrislovecnm commented Oct 18, 2017

We only have a 5 step process for users that need it. We can put sec groups in iam.

Can I get a lgtm to

  • assets
  • network
  • security
  • cluster
  • elb

Or we can put cluster and elb together. Then

  • assets
  • network
  • security
  • cluster

I am not concerned about 5 phases, because they will be transparent to the majority of the users. Who else is using phases? Who else can chime in?

Five or four phases? Which one do you like?

@justinsb
Copy link
Member

If we can do:

  1. assets
  2. network
  3. security
  4. cluster

I think that's great.

As you say, for most people most of those phases will be collapsed. I also like the order, in that advanced IAM policies will likely rely on security group & VPC ids, so network first makes sense. Also the network will likely be shared soon.

I think the biggest challenge will be splitting out the ELB creation from the ELB attachment, because I suspect you want ELB in network-phase, but that doesn't have to happen right away. And it's never what I expect :-)

@chrislovecnm chrislovecnm changed the title Adding new phases for security groups and load balancers Renaming IAM Phase to Security Oct 26, 2017
@chrislovecnm
Copy link
Contributor Author

Done @justinsb PTAL

@justinsb
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 26, 2017
@k8s-github-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chrislovecnm, justinsb

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

Needs approval from an approver in each of these OWNERS Files:
  • OWNERS [chrislovecnm,justinsb]

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@k8s-github-robot
Copy link

/test all [submit-queue is verifying that this PR is safe to merge]

@k8s-github-robot
Copy link

Automatic merge from submit-queue.

@k8s-github-robot k8s-github-robot merged commit 03e6047 into kubernetes:master Oct 27, 2017
k8s-github-robot pushed a commit that referenced this pull request Oct 27, 2017
Automatic merge from submit-queue.

Fixing phases for security groups and elbs

Please only review chrislovecnm@dc338c4 and  chrislovecnm@0dc7a6e

This PR depends on #3639
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/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants