Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update security best practices doc #2848

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/overview/examples/snip_che-curated-access.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
With this setup, you achieve a curated access to {prod-short},
where cluster administrators control provisioning for each user
and can explicitly configure various settings including resource limits and quotas.
Learn more about project provisioning in the link:https://eclipse.dev/che/docs/stable/administration-guide/mounting-a-secret-as-a-file-or-an-environment-variable-into-a-container/#mounting-a-secret-or-a-configmap-as-an-environment-variable-into-a-container[product documentation].
Learn more about project provisioning in the xref:administration-guide:provisioning-namespaces-in-advance.adoc[product documentation].
19 changes: 9 additions & 10 deletions modules/overview/pages/security-best-practices.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ All resources and actions you can grant users permission to use in their {namesp
|"get", "list", "create"

|configmaps
|get", "list", "create", "update", "patch", "delete"
|"get", "list", "create", "update", "patch", "delete"

|events
|watch
|"list", "watch"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For events, the list permissions are also granted:
image


|secrets
|"get", "list", "create", "update", "patch", "delete"
Expand All @@ -72,10 +72,10 @@ All resources and actions you can grant users permission to use in their {namesp
|"get", "list", "create", "delete", "update", "patch"

|routes
|get", "list", "create", "delete"
|"get", "list", "create", "delete"

|persistentvolumeclaims
|get", "list", "watch", "create", "delete", "update", "patch"
|"get", "list", "watch", "create", "delete", "update", "patch"

|apps/deployments
|"get", "list", "watch", "create", "patch", "delete"
Expand All @@ -87,7 +87,7 @@ All resources and actions you can grant users permission to use in their {namesp
|"get", "list"

|projects
|get
|"get"

|devworkspace
|"get", "create", "delete", "list", "update", "patch", "watch"
Expand Down Expand Up @@ -215,8 +215,8 @@ spec:

.Resource Quotas and Limit Ranges

Resource Quotas and Limit Ranges are {kubernetes} features you can use to help prevent bad actors or resource abuse within a cluster.
They help in controlling and managing resource consumption by pods and containers.
Resource Quotas and Limit Ranges are {kubernetes} features you can use to help prevent bad actors and resource abuse within a cluster.
Specifically, they allow you to set resource consumption constraints for pods and containers.
By combining Resource Quotas and Limit Ranges,
you can enforce project-specific policies to prevent bad actors from consuming excessive resources.

Expand All @@ -227,8 +227,7 @@ More details about link:https://docs.openshift.com/container-platform/4.14/appli

An air-gapped OpenShift disconnected cluster refers to an OpenShift cluster
isolated from the internet or any external network.
This isolation is often done for security reasons,
to protect sensitive or critical systems from potential cyber threats.
This isolation is often done for security reasons to protect sensitive or critical systems from potential cyber threats.
In an air-gapped environment,
the cluster cannot access external repositories or registries to download container images, updates, or dependencies.

Expand All @@ -239,7 +238,7 @@ include::example$snip_che-installation-instructions.adoc[]

By default, {prod}
includes the embedded Open VSX registry
which contains a limited set of extensions used by Microsoft Visual Studio Code -
which contains a limited set of extensions for the Microsoft Visual Studio Code -
Open Source editor.
Alternatively, cluster administrators can specify a different plugin registry in the Custom Resource, e.g.
https://open-vsx.org that contains thousands of extensions.
Expand Down
Loading