OpenSearch is already restricted to poimen-memory + opensearch-dashboards on 9200. The database had no NetworkPolicy at all, so any pod in any namespace could reach memory-db-rw:5432.
Neither is publicly exposed: all memory-db services are ClusterIP, no Ingress backs them, and opensearch.riotpiao.com / memory-db.riotpiao.com do not resolve. This change adds the in-cluster isolation that ClusterIP does not provide.
Allows 5432 from namespace poimen (all clients) and from cnpg-system (the operator, for switchover/failover).
OpenSearch is already restricted to poimen-memory + opensearch-dashboards on 9200. The database had no NetworkPolicy at all, so any pod in any namespace could reach memory-db-rw:5432.
Neither is publicly exposed: all memory-db services are ClusterIP, no Ingress backs them, and opensearch.riotpiao.com / memory-db.riotpiao.com do not resolve. This change adds the in-cluster isolation that ClusterIP does not provide.
Allows 5432 from namespace poimen (all clients) and from cnpg-system (the operator, for switchover/failover).
The database was already off the internet: every memory-db service is ClusterIP,
no Ingress backs one, and no public DNS name resolves to them.
That is not isolation. A ClusterIP service answers every pod in the cluster, so
any workload in any namespace could open 5432. Cilium enforces NetworkPolicy, so
stating the allowed sources is what closes it.
Two sources:
- namespace poimen, which holds every client (poimen-memory, poimen-graphql,
poimen-worker, poimen-workflows, the migration Job)
- namespace cnpg-system, where the CloudNativePG operator connects for switchover
and failover
Port 5432 only. The operator metrics port stays closed because no PodMonitor for
this cluster exists.
rock
merged commit 9e004ccb9b into main2026-11-03 21:34:05 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
OpenSearch is already restricted to poimen-memory + opensearch-dashboards on 9200. The database had no NetworkPolicy at all, so any pod in any namespace could reach memory-db-rw:5432.
Neither is publicly exposed: all memory-db services are ClusterIP, no Ingress backs them, and opensearch.riotpiao.com / memory-db.riotpiao.com do not resolve. This change adds the in-cluster isolation that ClusterIP does not provide.
Allows 5432 from namespace poimen (all clients) and from cnpg-system (the operator, for switchover/failover).