Skip to content

Commit

Permalink
docs: link to RBAC from installation and add notes (#12680)
Browse files Browse the repository at this point in the history
Signed-off-by: Ripal Nathuji <rnathuji@neoteklabs.com>
  • Loading branch information
rnathuji committed Feb 19, 2024
1 parent 33c51ed commit a439f43
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Determine your base installation option.

Review the following:

* [Workflow RBAC](workflow-rbac.md)
* [Security](security.md).
* [Scaling](scaling.md) and [running at massive scale](running-at-massive-scale.md).
* [High-availability](high-availability.md)
Expand Down
25 changes: 25 additions & 0 deletions docs/workflow-rbac.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,28 @@ Warning: For many organizations, it may not be acceptable to give a workflow the

If you are not using the emissary, you'll need additional permissions.
See [executor](https://github.com/argoproj/argo-workflows/tree/main/manifests/quick-start/base/executor) for suitable permissions.

**Note**: Prior to `v3.5.2`, simple workflows such as [hello-world](https://raw.githubusercontent.com/argoproj/argo-workflows/main/examples/hello-world.yaml) may have run successfully without RBAC. As of `v3.5.2`, these workflows will fail without at least the permissions above via associated [Service Accounts](service-accounts.md). For example:

```yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: hello-world
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: hello-world-executor
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: executor
subjects:
- kind: ServiceAccount
name: hello-world
```

```bash
argo submit --serviceaccount hello-world --watch https://raw.githubusercontent.com/argoproj/argo-workflows/main/examples/hello-world.yaml
```

0 comments on commit a439f43

Please sign in to comment.