fix: add self + westside-contracts ingress to basketball-api network policy (#270) #271
No reviewers
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/pal-e-platform!271
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "270-fix-basketball-api-netpol"
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?
Summary
The
netpol_basketball_apiNetworkPolicy only allowed ingress fromtailscaleandmonitoring. This blocked legitimate traffic fromwestside-contracts(contract signing callbacks),westside-ai-assistant(AI features), andbasketball-apiitself (intra-namespace pod communication).Changes
terraform/network-policies.tf-- Added three ingress rules tonetpol_basketball_api:basketball-api(self-namespace)westside-contractswestside-ai-assistanttofu plan Output
tofu validaterequirestofu initwhich needs cluster credentials not available in this agent environment.tofu fmtpassed cleanly (no formatting changes). The HCL follows the exact pattern of other netpol resources in the file (e.g.netpol_keycloakwith 4 ingress rules).Expected plan diff:
kubernetes_manifest.netpol_basketball_apiwill show an in-place update adding 3 ingress rules to the existing NetworkPolicy.Test Plan
tofu plan -lock=falseon archbox confirms onlynetpol_basketball_apichangestofu applydeploys updated NetworkPolicykubectl get networkpolicy -n basketball-api -o yamlshows all 5 ingress rulesReview Checklist
tofu fmtpassestofu plan -lock=falseshows expected diff (requires cluster access)Related
Closes #270
Related Notes
None.
QA Review
Scope: 1 file changed, 3 lines added, 0 deleted.
Diff Analysis
The change adds three namespace ingress rules to
netpol_basketball_apiinterraform/network-policies.tf:basketball-api(self-namespace intra-pod communication)westside-contracts(contract signing service)westside-ai-assistant(AI assistant service)Checks
{ from = [{ namespaceSelector = { matchLabels = { "kubernetes.io/metadata.name" = "..." } } }] }pattern used by every other netpol resource in the file. Matchesnetpol_keycloakwhich also allowsbasketball-apiandwestside-ai-assistant.basketball-apiappears innetpol_postgres(line 173) andnetpol_keycloak(line 149).westside-contractsappears innetpol_minio(line 127).westside-ai-assistantappears innetpol_keycloak(line 150) andnetpol_ollama(line 197). All namespace names are consistent with existing usage.tailscaleandmonitoring, keeping monitoring last. Consistent with the convention in other netpol blocks.270-fix-basketball-api-netpolfollows{issue}-{kebab-slug}convention.Closes #270.Nits
None.
VERDICT: APPROVED