Skip to content

Commit

Permalink
Merge pull request #16 from jujaga/sec/ingress
Browse files Browse the repository at this point in the history
Implement more specific openshift ingress network policy
  • Loading branch information
kyle1morel authored Jan 17, 2024
2 parents 3a47f79 + 066ab44 commit 302f43a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions openshift/app.dc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,22 @@ labels:
app.openshift.io/runtime: golang
template: "${REPO_NAME}-app-template"
objects:
- apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: "allow-openshift-ingress-to-${APP_NAME}-app"
spec:
podSelector:
matchLabels:
app: "${APP_NAME}-app"
role: app
ingress:
- from:
- namespaceSelector:
matchLabels:
network.openshift.io/policy-group: ingress
policyTypes:
- Ingress
- apiVersion: v1
kind: ConfigMap
metadata:
Expand Down

0 comments on commit 302f43a

Please sign in to comment.