Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

document rbac setup #880

Closed
MHBauer opened this issue May 19, 2017 · 6 comments
Closed

document rbac setup #880

MHBauer opened this issue May 19, 2017 · 6 comments
Assignees
Milestone

Comments

@MHBauer
Copy link
Contributor

MHBauer commented May 19, 2017

I've talked with @DirectXMan12 in the past about this and am trying to get it working and document it.

@MHBauer MHBauer added this to the 0.1.0 milestone May 19, 2017
@MHBauer MHBauer self-assigned this May 19, 2017
@MHBauer
Copy link
Contributor Author

MHBauer commented May 22, 2017

Permission whack-a-mole at one step. We should probably create a role or whatever the RBAC concept is to hold all the needed permissions in one bundle..

@DirectXMan12
Copy link
Contributor

Yep, each different API server should probably have it's equivalent of the bootstrap policy -- minimal policy required for the API server and controllers to function.

Feel free to assign me to this one as well.

@MHBauer
Copy link
Contributor Author

MHBauer commented Jun 9, 2017

@liggitt @DirectXMan12 here's a basic summary of the RBAC after installing the service catalog and doing some operations. (running our very basic e2e tests, manually doing some create and get and delete of objects). I hope we can use some of this to start and then go look in the code to find the full set of operations once I understand how to make a role and package it up.

https://gist.github.com/MHBauer/1c2a2d2a2f7122bad9f20edda8d4a9a3

@MHBauer
Copy link
Contributor Author

MHBauer commented Jun 9, 2017

updated gist
https://gist.github.com/MHBauer/3d9733af2eab80b89e3d7dd43ca5ec6a
gave the controller and apiserver separate individual service accounts

@liggitt
Copy link

liggitt commented Jun 9, 2017

WIP RBAC objects at https://gist.github.com/liggitt/ded7f8abb305b5545258e560df667009

things you'd probably want to make variables:

  • service account name for the service catalog server ("server" in the example)
  • service account name for the service catalog controller manager ("controller" in the example)
  • namespace containing the service catalog ("catalog" in the example)

also, you'll want to make the service-catalog-controller do leader election on an object within it's own namespace, not hard-coded to kube-system (and ideally use an object other than an endpoint object)

there are a few other TODOs as well, and it's possible once you get past the initial startup, more API operations will be attempted and you'll need to add to these, but this should be a solid start

@deads2k, we'll likely want a role that encompasses the permissions required for a standard admission chain (get/list/watch on namespaces, notably)

@MHBauer MHBauer changed the title document api aggregation setup document rbac setup Jun 12, 2017
@MHBauer
Copy link
Contributor Author

MHBauer commented Jul 19, 2017

With #936 in I think this is done enough. Updates can be made to the merged configuration, and new issues can be created when found.

@MHBauer MHBauer closed this as completed Jul 19, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants