Skip to content

Document RBAC conventions for charts #3098

Closed

Description

@omkensey

With the move toward RBAC being on by default in more and more cluster installers, the convention seems to have appeared to control RBAC-related templates as follows:

rbac:
  create: [true|false]
  serviceAccountName: [string]

(see e.g. kubernetes-sigs/aws-load-balancer-controller#146)

This is not yet documented in Chart best practices, and it should be. I'm happy to do the doc PR, but wanted to file an issue first to probe for consensus on whether the default value of rbac.create shoulfd be true or false. Most charts using this convention seem to be defaulting to false, but my own opinion is that it should be true, based both on the direction Kubernetes installers are moving (kubeadm apparently turns on RBAC by default since 1.6, and others have done so since even earlier versions) and my own sense that the defaults should be secure unless there's a very good reason not to be.

Activity

  1. changed the title [-]Document RBAC conventions[/-] [+]Document RBAC conventions for charts[/+] on Nov 3, 2017
  2. bacongobbler commented on Nov 3, 2017

    @bacongobbler
    Member

    I just updated the title to reflect that this is for charts and not for tiller as seen in #3094.

  3. julianxhokaxhiu commented on Nov 6, 2017

    @julianxhokaxhiu

    I agree on this. I am currently doing my first round on K8S 1.8.3 and I'm confused as well. I also think it should be true as using kubeadm init we get RBAC by default.

    Isn't this the case? Please correct me if I am wrong.

  4. unguiculus commented on Nov 7, 2017

    @unguiculus
    Member
  5. mgoodness commented on Nov 8, 2017

    @mgoodness

    Sound reasoning. Let's make rbac.create=true by default. Existing charts can/should be updated & their versions bumped to reflect the breaking change.

  6. mattfarina commented on Nov 9, 2017

    @mattfarina
    Collaborator

    cc: @kubernetes/charts-maintainers

  7. omkensey commented on Nov 19, 2017

    @omkensey
    Author

    Haven't seen anybody object to this so I'm thinking of writing it up later tonight. Should it be its own section of the Best Practices guide, part of the Templates section, part of the Pods and Pod Specs section, or somewhere else entirely?

  8. prydonius commented on Nov 20, 2017

    @prydonius
    Member

    @omkensey that would be great. I think this should probably be it's own section.

  9. added a commit that references this issue on Nov 21, 2017
    e400365
  10. added a commit that references this issue on Nov 22, 2017
    41415e5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions