Add a documentation describing the minimal required permissions needed to run Diki on any environment#677
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
AleksandarSavchev
left a comment
There was a problem hiding this comment.
Thanks! I also think we should reference the RBAC files in our usage docs ./docs/usage for DISA STIG and Hardened k8s guide
| - delete | ||
| - get | ||
| - watch |
There was a problem hiding this comment.
| - delete | |
| - get | |
| - watch | |
| - delete | |
| - watch |
We should be able to drop get here, since there is another rule that includes pods.
| - apiGroups: | ||
| - core.gardener.cloud | ||
| resources: | ||
| - cloudprofiles | ||
| - namespacedcloudprofiles | ||
| - shoots | ||
| verbs: | ||
| - get |
There was a problem hiding this comment.
This specific part is for the garden provider. We should have separate RBAC ClusterRole/Role files for the different providers. Maybe we can place these files in ./example/rbac and reference those files in the doc.
There was a problem hiding this comment.
Agreed. A possible variant to restructure the documentation is proposed here.
|
|
||
|
|
||
| Diki a "compliance checker" of sorts, a detective control framework with pluggable rule sets. | ||
| Diki is a "compliance checker" of sorts, or a detective control framework with pluggable rule sets. |
There was a problem hiding this comment.
| Diki is a "compliance checker" of sorts, or a detective control framework with pluggable rule sets. | |
| Diki is a "compliance checker" of sorts, a detective control framework with pluggable rule sets. |
| @@ -0,0 +1,86 @@ | |||
| ## Minimal Required Permissions to Run Diki on your environment | |||
|
|
|||
| In order to complete it's compliance checking, Diki will require permissions to read certain Kubernetes and Gardener resources, as well as to create and deploy `Pods` on the examined `Nodes`. | |||
There was a problem hiding this comment.
| In order to complete it's compliance checking, Diki will require permissions to read certain Kubernetes and Gardener resources, as well as to create and deploy `Pods` on the examined `Nodes`. | |
| In order to complete it's compliance checking, Diki will require permissions to read certain Kubernetes and Gardener resources, as well as to create and deploy `Pods` on the examined cluster. |
|
|
||
| Diki is the Greek word for "trial". | ||
| You can also memorise it as "Detective Investigation of Key Imperatives" or as GNU-style recursive acronym "Diki Investigates Key Imperatives". | ||
| You can also memorise it as "Detective Investigation of Key Imperatives" or with the GNU-style recursive acronym "Diki Investigates Key Imperatives". |
There was a problem hiding this comment.
Why is this change better?
There was a problem hiding this comment.
It made more grammatical sense to me personally. I am ok with both variants, so I can revert the suggestion if requested.
| @@ -0,0 +1,86 @@ | |||
| ## Minimal Required Permissions to Run Diki on your environment | |||
There was a problem hiding this comment.
In general this should be somehow coupled with the ruleset or at least the provider, no? The way it is written in combines multiple providers and permissions from different environments.
There was a problem hiding this comment.
I agree. The different ruleset permissions could be moved to the other ./docs/usage documents.
There was a problem hiding this comment.
It would be hard to make them ruleset specific, since we have rulesets implemented for different providers (e.g. DISA is implemented for the gardener, virtualgarden and managedk8s providers).
I would suggest we make at least 2 provider specific (for managedk8s and garden providers) rbac files and place them in ./example/rbac. Then we can reference these files in the ./docs/usage documents.
How to categorize this PR?
/kind enhancement
What this PR does / why we need it:
This PR updates Diki's documentation by adding a section describing the minimal required permissions for the tool. It also adds two grammar nits on the README page.
Which issue(s) this PR fixes:
Fixes #652
Special notes for your reviewer:
Release note:
A document, describing Diki's minimal required permissions has been added for the end users.