Skip to content

Commit be38e7f

Browse files
authored
update the reverse-proxy yaml to support privilege and access control settings for a Container (neo4j#1459)
1 parent f92190f commit be38e7f

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

modules/ROOT/pages/kubernetes/accessing-neo4j-ingress.adoc

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ image::reverse-proxy.svg[title="Reverse proxy flow diagram"]
1616
The Reverse proxy Helm chart creates an HTTP server, which routes requests to either the Bolt reverse proxy or HTTP reverse proxy based on the request headers.
1717
Upon receiving a response, the Bolt reverse proxy updates the response to replace the Bolt port with either `:80` or `:443`.
1818

19+
From version 5.17.0, the Reverse proxy Helm chart supports defining privilege and access control settings for a Container.
20+
Make sure that you do not run Neo4j as a root user.
21+
1922
== Configuration options
2023

2124
To see all configurable options, run the following command:
@@ -36,8 +39,7 @@ fullnameOverride: ""
3639
3740
# Parameters for reverse proxy
3841
reverseProxy:
39-
image: "neo4j/helm-charts-reverse-proxy:5.12.0"
40-
42+
image: "neo4j/helm-charts-reverse-proxy:5.17.0"
4143
# Name of the kubernetes service. This service should have the ports 7474 and 7687 open.
4244
# This could be the admin service ex: "standalone-admin" or the loadbalancer service ex: "standalone" created via the neo4j helm chart
4345
# serviceName , namespace , domain together will form the complete k8s service url. Ex: standalone-admin.default.svc.cluster.local
@@ -47,6 +49,24 @@ reverseProxy:
4749
# default is set to cluster.local
4850
domain: "cluster.local"
4951
52+
# securityContext defines privilege and access control settings for a Container. Making sure that we dont run Neo4j as root user.
53+
containerSecurityContext:
54+
allowPrivilegeEscalation: false
55+
runAsNonRoot: true
56+
runAsUser: 7474
57+
runAsGroup: 7474
58+
capabilities:
59+
drop:
60+
- all
61+
62+
podSecurityContext:
63+
runAsNonRoot: true
64+
runAsUser: 7474
65+
runAsGroup: 7474
66+
fsGroup: 7474
67+
fsGroupChangePolicy: "Always"
68+
69+
5070
# This assumes ingress-nginx controller or haproxy-ingress-controller is already installed in your kubernetes cluster.
5171
# You can install ingress-nginx by following instructions on this link https://github.com/kubernetes/ingress-nginx/blob/main/docs/deploy/index.md#quick-start
5272
# You can install haproxy-ingress by following instructions on this link https://haproxy-ingress.github.io/docs/getting-started/
@@ -57,6 +77,7 @@ reverseProxy:
5777
annotations: {}
5878
# "demo": "value"
5979
# "demo2": "value2"
80+
host: ""
6081
tls:
6182
enabled: false
6283
config: []

0 commit comments

Comments
 (0)