Commit 92063d8
feat: Add
## Overview
Adds new `AllExplicit` RBAC verb to state all RBAC verbs explicitly,
alternatively to the current `All` RBAC verb that generates a `*`
(wildcard) RBAC verb.
### Motivation
As described
[here](https://kubernetes.io/docs/reference/access-authn-authz/rbac/#referring-to-resources),
using wildcards in verb entries could result in overly permissive access
being granted. The [principle of least
privilege](https://kubernetes.io/docs/concepts/security/rbac-good-practices/#least-privilege)
should be employed, using specific verbs to ensure only the permissions
required for the workload to function correctly are applied.
---------
Co-authored-by: Christoph Bühler <[email protected]>AllExplicit RBAC verb & state all default V1Lease RBAC verbs explicitly (#879)1 parent 4e0c205 commit 92063d8
File tree
4 files changed
+25
-2
lines changed- src
- KubeOps.Abstractions/Rbac
- KubeOps.Cli/Generators
- KubeOps.Transpiler
- test/KubeOps.Transpiler.Test
4 files changed
+25
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
53 | 58 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
86 | 91 | | |
87 | 92 | | |
88 | | - | |
| 93 | + | |
89 | 94 | | |
90 | 95 | | |
91 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
86 | 95 | | |
87 | 96 | | |
88 | 97 | | |
| |||
115 | 124 | | |
116 | 125 | | |
117 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
118 | 131 | | |
119 | 132 | | |
120 | 133 | | |
| |||
0 commit comments