Discovered scope: basketball-api default-deny NetworkPolicy #9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Feature
Lineage
Discovered during review-595-2026-03-28 scope review. basketball-api currently has no NetworkPolicy — traffic from all namespaces is unrestricted.
Repo
forgejo_admin/pal-e-platformUser Story
As a platform operator
I want basketball-api to have a default-deny ingress NetworkPolicy
So that only authorized namespaces can reach it
Context
During the westside-ai-assistant NetworkPolicy review, it was discovered that basketball-api has no ingress NetworkPolicy in network-policies.tf. All platform services (monitoring, forgejo, woodpecker, harbor, minio, keycloak, postgres, ollama, cnpg-system) have NetworkPolicies, but application namespaces do not. This means any pod in any namespace can reach basketball-api. Not urgent for V1 but should be addressed for security posture.
File Targets
Files the agent should modify:
terraform/network-policies.tf— add default-deny ingress + allowlist for basketball-api namespace (allow from: westsidekingsandqueens, westside-ai-assistant, monitoring)Files the agent should NOT touch:
Acceptance Criteria
tofu plan -lock=falseshows only basketball-api NetworkPolicy additionTest Expectations
tofu validatepassestofu plan -lock=falseoutput in PRcd terraform && tofu validate && tofu plan -lock=falseConstraints
tofu applyChecklist
Related
project-westside-ai-assistant— discovered during this projectproject-pal-e-platform— target repoScope Review: NEEDS_REFINEMENT
Review note:
review-605-2026-03-28Wrong repo and wrong layer. The ticket targets
terraform/network-policies.tfin pal-e-platform, but basketball-api is an application namespace managed by pal-e-deployments (kustomize/ArgoCD), not a platform namespace managed by terraform. A commented-out NetworkPolicy base and overlay patch already exist in pal-e-deployments.Key issues:
pal-e-deployments, notpal-e-platform. The work is uncommenting existing code + adding westside-ai-assistant to the allowlist.networkpolicy.yamlenables NetworkPolicies for ALL 8 app namespaces, not just basketball-api. Needs a scoping decision on per-app vs platform-wide enablement.kustomize build, nottofu plan.Two decisions needed before refinement: