Skip to content

Network policy for the qtodo#126

Merged
sabre1041 merged 14 commits into
validatedpatterns:mainfrom
p-rog:network-policy
Apr 23, 2026
Merged

Network policy for the qtodo#126
sabre1041 merged 14 commits into
validatedpatterns:mainfrom
p-rog:network-policy

Conversation

@p-rog
Copy link
Copy Markdown
Collaborator

@p-rog p-rog commented Apr 23, 2026

Three NetworkPolicy objects for the qtodo namespace.
Together they implement a least-privilege, zero-trust network posture, which also satisfies the ACS custom network SecurityPolicy compliance checks for both ingress and egress.

Policy 1: qtodo-network-policy
Policy 2: qtodo-db-network-policy
Policy 3: default-deny-network-policy

Summary of Design Principles Applied
| Least-privilege ingress | qtodo: router only; qtodo-db: qtodo pod only |
| Least-privilege egress | Each pod allows only the specific ports and destinations it actually uses |
| Explicit policyTypes | Both Ingress and Egress declared on every policy — no implicit inference |
| Default-deny as safety net | Namespace-wide deny-all catches any pod not covered by a specific allow policy |
| Correct OVN-K label for router | policy-group.network.openshift.io/ingress: "" not network.openshift.io/policy-group: ingress |
| Correct DNS port | Port 5353 (CoreDNS pod port post-DNAT), not 53 (service port pre-DNAT) |
| Tight namespace selectors | Vault and DNS use namespaceSelector; Keycloak uses port-only|

Side note:
This PR includes the update from #125 in the charts/ztvp-certificates/values.yaml

proxyCA:
  enabled: true

If this PR is merged first, then #125 can be closed.

Copy link
Copy Markdown
Collaborator

@mlorenzofr mlorenzofr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on a fresh cluster
Both the default installation and the supply-chain UC work properly with these changes
Well done

LGTM

Copy link
Copy Markdown
Collaborator

@sabre1041 sabre1041 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sabre1041 sabre1041 merged commit 66b2766 into validatedpatterns:main Apr 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants