This repository has been archived on 2026-05-26. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
irc/thelounge/ciliumnetworkpolicy.yaml
T
Chris Farhood 2308e1103a
Security Scan / Checkov PR Review (push) Has been skipped
Validate Manifests / Kubernetes Schema Validation (push) Successful in 6s
Best Practices / Polaris PR Review (push) Has been skipped
Best Practices / Resource Usage Analysis (push) Successful in 6s
Validate Manifests / Kustomize Build Test (push) Successful in 4s
Security Scan / Trivy PR Review (push) Has been skipped
Best Practices / Kube-score Analysis (push) Failing after 7s
Security Scan / Trivy Security Scan (push) Successful in 7s
Best Practices / Polaris Audit (push) Failing after 8s
Best Practices / PR Summary Report (push) Has been skipped
Validate Manifests / YAML Lint (push) Failing after 4s
Security Scan / Checkov IaC Scan (push) Failing after 30s
fix(thelounge): allow ingress from cilium gateway entity
The previous selector matched an Istio-style label that does not exist
on Cilium gateway pods, which caused default-deny ingress and blocked
access to thelounge. Use fromEntities: ingress to match Cilium's own
gateway/ingress pods, consistent with the cluster repo's webhook CNP.
2026-05-21 10:15:19 -04:00

53 lines
1.1 KiB
YAML

apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: thelounge
namespace: irc
spec:
endpointSelector:
matchLabels:
app.kubernetes.io/name: thelounge
ingress:
- fromEntities:
- ingress
- host
toPorts:
- ports:
- port: "9000"
protocol: TCP
egress:
- toEndpoints:
- matchLabels:
k8s:io.kubernetes.pod.namespace: kube-system
k8s:k8s-app: kube-dns
toPorts:
- ports:
- port: "53"
protocol: ANY
rules:
dns:
- matchPattern: "*"
- toEndpoints:
- matchLabels:
k8s:io.kubernetes.pod.namespace: auth
k8s:app.kubernetes.io/name: authentik-outpost-ldap
k8s:goauthentik.io/outpost-type: ldap
toPorts:
- ports:
- port: "389"
protocol: TCP
- toEndpoints:
- matchLabels:
k8s:io.kubernetes.pod.namespace: irc
k8s:app.kubernetes.io/name: znc
toPorts:
- ports:
- port: "6501"
protocol: TCP
- toFQDNs:
- matchName: "irc.passthepopcorn.me"
toPorts:
- ports:
- port: "6697"
protocol: TCP