You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add instructions for creating a custom Security Context Constraint (#2003)
* update openshift security docs to include custom scc instructions
Signed-off-by: Mark Nelson <mark.x.nelson@oracle.com>
* update based on review comments
Signed-off-by: Mark Nelson <mark.x.nelson@oracle.com>
* updates after review with ryan
Signed-off-by: Mark Nelson <mark.x.nelson@oracle.com>
* updates after review with ryan
Signed-off-by: Mark Nelson <mark.x.nelson@oracle.com>
Copy file name to clipboardExpand all lines: docs-source/content/security/openshift.md
+93-25Lines changed: 93 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -5,41 +5,109 @@ weight: 7
5
5
description: "OpenShift information for the operator"
6
6
---
7
7
8
-
#### OpenShift `anyuid` security context
8
+
#### Security requirements to run WebLogic in OpenShift
9
9
10
-
The Docker images that Oracle publishes default to the container user
11
-
as `oracle`, which is UID `1000` and GID `1000`. When running the
12
-
Oracle images or layered images that retain the default user as
13
-
`oracle` with OpenShift, the `anyuid` security context constraint
14
-
is required to ensure proper access to the file system within the
15
-
Docker image. This means that the administrator must:
10
+
WebLogic Server Kubernetes Operator Docker images starting with version 3.1 and
11
+
WebLogic Server Docker images obtained from Oracle Container Registry after August 2020
12
+
have an `oracle` user with UID 1000 with the default group set to `root`.
16
13
17
-
1. Ensure the `anyuid` security content is granted
18
-
2. Ensure that WebLogic containers are annotated with `openshift.io/scc: anyuid`
19
-
20
-
For example, to update the OpenShift policy, use:
14
+
Here is an excerpt from a standard WebLogic [Dockerfile](https://github.com/oracle/docker-images/blob/master/OracleWebLogic/dockerfiles/12.2.1.4/Dockerfile.generic#L89)
15
+
that demonstrates how the file system group ownership is configured in the standard WebLogic Server images:
21
16
22
17
```bash
23
-
$ oc adm policy add-scc-to-user anyuid -z default
18
+
# Setup filesystem and oracle user
19
+
# Adjust file permissions, go to /u01 as user 'oracle' to proceed with WLS installation
0 commit comments