-
Notifications
You must be signed in to change notification settings - Fork 686
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11501 from sig-bsi-grundschutz/app-4-4-A1to3
Defined notes and rules for control BSI APP4.4.A1 to APP4.4.A3
- Loading branch information
Showing
3 changed files
with
68 additions
and
13 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
applications/openshift/general/general_namespace_separation/rule.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
documentation_complete: true | ||
|
||
title: 'Each Namespace should only host one application' | ||
|
||
description: |- | ||
Use namespaces to isolate your Kubernetes objects. | ||
rationale: |- | ||
Assigning a dedicated namespace to an application (or parts of an application) | ||
allows you to granularly control the access to this application on a kubernetes | ||
level. It also allows you control the network flow from and to other namespaces | ||
more easily. | ||
references: | ||
bsi: APP.4.4.A1 | ||
|
||
severity: medium | ||
|
||
ocil_clause: 'Application placement in namespaces needs review' | ||
|
||
ocil: |- | ||
Run the following command and review the pods and how they are deployed in | ||
namespaces. <pre>$ oc get pod -o=custom-columns=NAME:.metadata.name,NAMESPACE:.metadata.namespace,APP:.metadata.labels.app\.kubernetes\.io/name --all-namespaces | grep -v "openshift-"</pre> | ||
You can use labels or other data as custom field which helps you to identify parts of an application. | ||
Ensure that there are only components of one application in each namespace. |
2 changes: 2 additions & 0 deletions
2
applications/openshift/general/general_namespace_separation/tests/ocp4/e2e.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
default_result: MANUAL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters