Skip to content

Commit f9da518

Browse files
TheFrogPadmarkxnelson
authored andcommitted
Add OpenShift security section for anyuid security context (#1291)
* Add information on OpenShift anyuid security context * Address comments on the OpenShift anyuid security context information * fix typo
1 parent 86e1cec commit f9da518

File tree

6 files changed

+52
-5
lines changed

6 files changed

+52
-5
lines changed

docs-source/content/security/certificates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Certificates"
33
date: 2019-03-06T21:14:18-05:00
44
weight: 1
5-
description: "SSL/TLS certificate handling for the WebLogic operator."
5+
description: "SSL/TLS certificate handling for the WebLogic Kubernetes Operator"
66
---
77

88
#### Updating operator external certificate
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
title: "OpenShift"
3+
date: 2019-10-04T08:08:08-05:00
4+
weight: 7
5+
description: "OpenShift information for the WebLogic Kubernetes Operator"
6+
---
7+
8+
#### OpenShift `anyuid` security context
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:
16+
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:
21+
22+
```bash
23+
$ oc adm policy add-scc-to-user anyuid -z default
24+
```
25+
26+
and to annotate the WebLogic containers, update the WebLogic `Domain` resource
27+
to include `annotations` for the `serverPod`. For example:
28+
29+
``` yaml
30+
kind: Domain
31+
metadata:
32+
name: domain1
33+
spec:
34+
domainUID: domain1
35+
serverPod:
36+
env:
37+
- name: var1
38+
value: value1
39+
annotations:
40+
openshift.io/scc: anyuid
41+
```
42+
43+
{{% notice note %}}
44+
For additional information about OpenShift requirements and the operator,
45+
see the [OpenShift]({{<relref "/userguide/introduction/introduction.md#openshift">}}) section in the User Guide.
46+
{{% /notice %}}

docs-source/content/security/rbac.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "RBAC"
33
date: 2019-02-23T17:15:36-05:00
44
weight: 5
5-
description: "Role based authorization for the WebLogic operator"
5+
description: "Role based authorization for the WebLogic Kubernetes Operator"
66
---
77

88
#### Contents

docs-source/content/security/secrets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Secrets"
33
date: 2019-02-23T17:36:33-05:00
44
weight: 6
5-
description: "Kubernetes secrets for the WebLogic operator"
5+
description: "Kubernetes secrets for the WebLogic Kubernetes Operator"
66
---
77

88
#### Contents

docs-source/content/security/service-accounts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Service accounts"
33
date: 2019-02-23T17:36:12-05:00
44
weight: 4
5-
description: "Kubernetes service accounts for the WebLogic operator"
5+
description: "Kubernetes service accounts for the WebLogic Kubernetes Operator"
66
---
77

88

docs-source/content/userguide/introduction/introduction.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ Detailed instructions are available [here]({{< relref "/userguide/managing-opera
3232

3333
Operator 2.0.1+ is certified for use on OpenShift 3.11.43+, with Kubernetes 1.11.5+. OpenShift 4 certification is currently in progress.
3434

35-
When using the operator in OpenShift, the anyuid security context constraint is required to ensure that WebLogic containers run with a UNIX UID that has the correct permissions on the domain filesystem.
35+
When using the operator in OpenShift, the `anyuid` security context constraint is required to ensure that WebLogic containers run with a UNIX UID that has the correct permissions on the domain filesystem.
36+
For more information, see [OpenShift]({{<relref "/security/openshift.md">}}) in the Security section.
3637

3738
### Operator Docker image
3839

0 commit comments

Comments
 (0)