---
source: https://iinventedlight.com/library/notes/helm-best-practices-rbac.md
title: "Helm chart RBAC: keep ServiceAccount settings on their own keys"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "MIT (The Helm Authors); MIT (The Helm Authors); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: The Helm Authors, Role-Based Access Control; The Helm Authors, Role-Based Access Control (source). MIT (https://raw.githubusercontent.com/helm/helm-www/main/LICENSE). Copyright The Helm Authors."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-26
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-26
as_of: 2026-11-26
confidence: medium
untested: "Not reproduced (2026-11-26). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: helm-best-practices-rbac"
tags: [helm, rbac, serviceaccount, charts, kubernetes]
client: Librarian
sources:
  - id: S1
    title: "Role-Based Access Control"
    publisher: The Helm Authors
    url: https://helm.sh/docs/chart_best_practices/rbac/
    accessed: 2026-11-26
    license: "MIT"
  - id: S2
    title: "Role-Based Access Control (source)"
    publisher: The Helm Authors
    url: https://raw.githubusercontent.com/helm/helm-www/main/docs/chart_best_practices/rbac.md
    accessed: 2026-11-26
    license: "MIT"
---
# Helm chart RBAC: keep ServiceAccount settings on their own keys
**Answer:** This Best Practices Guide chapter covers how RBAC resources are created and formatted in chart manifests.

## What to put in values

RBAC resources are: ServiceAccount (namespaced), Role (namespaced), ClusterRole, RoleBinding (namespaced), and ClusterRoleBinding.

Splitting these two concepts out in the YAML disambiguates them and makes this clearer.

RBAC and ServiceAccount configuration should happen under separate keys. They are separate things.

rbac.create specifies whether RBAC resources should be created. serviceAccount.create specifies whether a ServiceAccount should be created.

The name of the ServiceAccount to use should be set. When it is not set and create is true, the fullname template generates a name.

This structure can be extended for more complex charts that require multiple ServiceAccounts.

## Defaults and the helper template

Users who wish to manage RBAC access controls themselves can set this value to false.

rbac.create is the boolean that controls whether RBAC resources are created, and the default should be true.

serviceAccount.name should be set to the name of the ServiceAccount used by access-controlled resources created by the chart.

If serviceAccount.create is true, a ServiceAccount with this name should be created. If the name is not set, a name is generated using the fullname template.

If serviceAccount.create is false, the account should not be created, but it should still be associated with the same resources so later manually-created RBAC resources that reference it will function correctly.

When serviceAccount.create is false and no name is specified, the default ServiceAccount is used.

The following helper template should be used for the ServiceAccount, under the name mychart serviceAccountName.

## See also

- [helm-rbac](https://iinventedlight.com/library/notes/helm-rbac/)
- [helm-best-practices-values](https://iinventedlight.com/library/notes/helm-best-practices-values/)

## Claims

- id: C1
  claim: RBAC keys and ServiceAccount keys should be kept apart.
  source: S1
  evidence: "RBAC and ServiceAccount configuration should happen under separate keys."

- id: C2
  claim: RBAC resources should be created by default.
  source: S1
  evidence: "The default should be true ."

- id: C3
  claim: If create is false and no name is set, the default ServiceAccount is used.
  source: S2
  evidence: "then the default ServiceAccount is used."

## Sources

- [S1] Role-Based Access Control. The Helm Authors. https://helm.sh/docs/chart_best_practices/rbac/ . License: MIT. Accessed 2026-11-26.

- [S2] Role-Based Access Control (source). The Helm Authors. https://raw.githubusercontent.com/helm/helm-www/main/docs/chart_best_practices/rbac.md . License: MIT. Accessed 2026-11-26.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: The Helm Authors, Role-Based Access Control; The Helm Authors, Role-Based Access Control (source). MIT (https://raw.githubusercontent.com/helm/helm-www/main/LICENSE). Copyright The Helm Authors. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
