Skip to content

Commit

Permalink
fix: '0 NR filter_chain_not_found' by removing mTLS
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeHCQ1 committed Aug 13, 2024
1 parent 41c20dc commit aa5d290
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 3 deletions.
3 changes: 1 addition & 2 deletions bundle/uds-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ packages:
- name: dev-namespace
path: ../
ref: 0.1.0

- name: postgres-operator
repository: ghcr.io/defenseunicorns/packages/uds/postgres-operator
ref: 1.10.1-uds.4-upstream
ref: 1.12.2-uds.2-upstream
overrides:
postgres-operator:
uds-postgres-config:
Expand Down
15 changes: 15 additions & 0 deletions chart/templates/peerauth-exception.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
apiVersion: security.istio.io/v1beta1
kind: PeerAuthentication
metadata:
name: "confluence"
namespace: {{ .Release.Namespace }}

Check failure on line 6 in chart/templates/peerauth-exception.yaml

View workflow job for this annotation

GitHub Actions / Lint

6:16 [braces] too many spaces inside braces

Check failure on line 6 in chart/templates/peerauth-exception.yaml

View workflow job for this annotation

GitHub Actions / Lint

6:35 [braces] too many spaces inside braces
spec:
mtls:
mode: STRICT
portLevelMtls:
5701:
mode: PERMISSIVE
selector:
matchLabels:
app.kubernetes.io/name: confluence
2 changes: 1 addition & 1 deletion chart/templates/uds-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ spec:
remoteGenerated: KubeAPI
description: "Provides Hazelcast with access to K8s API"

- direction: Egress
- direction: Ingress
selector:
app.kubernetes.io/name: confluence
remoteSelector:
Expand Down
5 changes: 5 additions & 0 deletions src/namespace/confluence-ns.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---
# Namespace must be created ahead of time so postgre-operator
# can put the secret in an existing namespace.
kind: Namespace
apiVersion: v1
metadata:
name: confluence
labels:
istio-injection: enabled
9 changes: 9 additions & 0 deletions values/common-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,12 @@ confluence:
- "--add-opens java.base/sun.nio.ch=ALL-UNNAMED"
- "--add-opens java.management/sun.management=ALL-UNNAMED"
- "--add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED"

openshift:
# -- When set to true, the containers will run with a restricted Security Context Constraint (SCC).
# See: https://docs.openshift.com/container-platform/4.14/authentication/managing-security-context-constraints.html
# This configuration property unsets pod's SecurityContext, nfs-fixer init container (which runs as root), and mounts server
# configuration files as ConfigMaps.
#
# Lesson Learned: DO NOT ENABLE THIS - it is DOA
runWithRestrictedSCC: false

0 comments on commit aa5d290

Please sign in to comment.