Skip to content

Instantly share code, notes, and snippets.

@raif-ahmed
Last active November 8, 2023 13:07
Show Gist options
  • Save raif-ahmed/55fac0f2382fbf9feb8f7a0b7d37b503 to your computer and use it in GitHub Desktop.
Save raif-ahmed/55fac0f2382fbf9feb8f7a0b7d37b503 to your computer and use it in GitHub Desktop.
apiVersion: v1
items:
- apiVersion: neuvector.com/v1
kind: NvSecurityRule
metadata:
name: nv.httpd.sample1
namespace: sample1
spec:
dlp:
settings: []
status: true
egress:
- action: allow
applications:
- HTTP
- SSL
name: nv.ip.httpd.sample1-egress-0
ports: any
priority: 0
selector:
comment: ""
criteria:
- key: domain
op: =
value: sample1
- key: label
op: =
value: deployment=httpd
name: nv.ip.httpd.sample1
original_name: ""
- action: allow
applications:
- DNS
name: nv.ip.dns-default.openshift-dns-egress-1
ports: any
priority: 0
selector:
comment: ""
criteria:
- key: domain
op: =
value: openshift-dns
- key: label
op: =
value: dns.operator.openshift.io/daemonset-dns=default
name: nv.ip.dns-default.openshift-dns
original_name: ""
- action: allow
applications:
- SSL
- HTTP
name: nv.external-egress-2
ports: any
priority: 0
selector:
comment: ""
criteria: []
name: external
original_name: ""
file: []
ingress:
- action: allow
applications:
- any
ports: tcp/8080
name: nv.httpd.sample1-ingress-0
priority: 0
selector:
comment: ""
criteria:
- key: domain
op: =
value: openshift-ingress
- key: service
op: =
value: router-default.openshift-ingress
name: nv.router-default.openshift-ingress
original_name: ""
- action: allow
applications:
- any
name: nv.httpd.sample1-ingress-1
ports: any
priority: 0
selector:
comment: ""
criteria:
- key: domain
op: =
value: openshift-monitoring
- key: service
op: =
value: prometheus-k8s.openshift-monitoring
name: nv.prometheus-k8s.openshift-monitoring
original_name: ""
- action: allow
applications:
- HTTP
- SSL
name: nv.httpd.sample1-ingress-2
ports: any
priority: 0
selector:
comment: ""
criteria: []
name: external
original_name: ""
process:
- action: allow
allow_update: false
name: cat
path: /usr/bin/coreutils
- action: allow
allow_update: false
name: sh
path: /usr/bin/bash
- action: allow
allow_update: false
name: curl
path: '*'
- action: allow
allow_update: false
name: httpd
path: /usr/sbin/httpd
process_profile:
baseline: zero-drift
target:
policymode: Protect
selector:
comment: ""
criteria:
- key: domain
op: =
value: sample1
- key: service
op: =
value: httpd.sample1
name: nv.httpd.sample1
original_name: ""
waf:
settings: []
status: true
- apiVersion: neuvector.com/v1
kind: NvSecurityRule
metadata:
name: nv.ip.httpd.sample1
namespace: sample1
spec:
egress: []
file: []
ingress:
- action: allow
applications:
- HTTP
- SSL
name: nv.ip.httpd.sample1-ingress-0
ports: any
priority: 0
selector:
comment: ""
criteria:
- key: domain
op: =
value: sample1
- key: service
op: =
value: httpd.sample1
name: nv.httpd.sample1
original_name: ""
- action: deny
applications:
- any
name: nv.ip.httpd.sample1-ingress-1
ports: any
priority: 0
selector:
comment: ""
criteria:
- key: container
op: =
value: '*'
name: containers
original_name: ""
process: []
target:
policymode: N/A
selector:
comment: ""
criteria:
- key: domain
op: =
value: sample1
- key: label
op: =
value: deployment=httpd
name: nv.ip.httpd.sample1
original_name: ""
kind: List
metadata: null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment