Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bundle/cso.catalogsource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ metadata:
name: container-security-operator
spec:
sourceType: grpc
image: quay.io/projectquay/cso-catalog@sha256:406ffb9f47d39ccadfff0852b1a0d2430888692e8a53f93208f11eb25e13a84a
image: quay.io/projectquay/cso-index@sha256:406ffb9f47d39ccadfff0852b1a0d2430888692e8a53f93208f11eb25e13a84a
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,4 @@ spec:
alm-owner-container-security-operator: container-security-operator
operated-by: container-security-operator
version: 1.0.6
replaces: container-security-operator.v1.0.5
# replaces: container-security-operator.v1.0.5
86 changes: 86 additions & 0 deletions bundle/manifests/container-security-operator.networkpolicy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: container-security-operator
namespace: placeholder
labels:
app.kubernetes.io/name: container-security-operator
app.kubernetes.io/component: operator
app.kubernetes.io/part-of: container-security-operator
spec:
podSelector:
matchLabels:
name: container-security-operator-alm-owned
policyTypes:
- Ingress
- Egress
ingress:
# Allow Prometheus scraping on metrics port
- from:
- namespaceSelector:
matchLabels:
name: openshift-monitoring
- namespaceSelector:
matchLabels:
name: monitoring
- namespaceSelector:
matchLabels:
name: prometheus
ports:
- protocol: TCP
port: 8081
# Allow Kubernetes API server communication
- from:
- namespaceSelector: {}
ports:
- protocol: TCP
port: 443
- protocol: TCP
port: 6443
egress:
# Allow DNS resolution
- to: []
ports:
- protocol: UDP
port: 53
- protocol: TCP
port: 53
# Allow HTTPS connections to container registries and external services
- to: []
ports:
- protocol: TCP
port: 443
# Allow HTTP connections for well-known endpoint discovery (fallback)
- to: []
ports:
- protocol: TCP
port: 80
# Allow Kubernetes API server communication
- to:
- namespaceSelector:
matchLabels:
name: kube-system
- namespaceSelector:
matchLabels:
name: openshift-kube-apiserver
- namespaceSelector:
matchLabels:
name: openshift-apiserver
ports:
- protocol: TCP
port: 443
- protocol: TCP
port: 6443
# Allow communication with OpenShift operator APIs
- to:
- namespaceSelector:
matchLabels:
name: openshift-operator-lifecycle-manager
- namespaceSelector:
matchLabels:
name: openshift-marketplace
ports:
- protocol: TCP
port: 443
- protocol: TCP
port: 6443
Loading