NetworkPolicy update in pal-e-platform #3
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
Standalone — scoped from westside-ai-assistant design spec (2026-03-28).
Repo
forgejo_admin/pal-e-platformUser Story
As Marcus (admin)
I want the AI assistant to reach Keycloak inside the cluster
So that it can authenticate via client credentials flow
Context
NetworkPolicies in pal-e-platform restrict cross-namespace traffic to platform services. The westside-ai-assistant pod needs to reach keycloak for client credentials token exchange. basketball-api does NOT have a NetworkPolicy (traffic to it is already unrestricted from all namespaces — confirmed by westside-app reaching it without any allowlist entry). Only the keycloak NetworkPolicy needs modification. The pattern is already established: basketball-api is already in the keycloak allowlist (see
netpol_keycloakresource in network-policies.tf, approx line 133-154).File Targets
Files the agent should modify:
terraform/network-policies.tf— addwestside-ai-assistantnamespace to the keycloak ingress NetworkPolicy (kubernetes_manifest.netpol_keycloak) namespaceSelector listFiles the agent should NOT touch:
Acceptance Criteria
westside-ai-assistantnamespace listed in keycloak NetworkPolicy namespaceSelector (same pattern as basketball-api entry)tofu plan -lock=falseshows only the keycloak NetworkPolicy changeTest Expectations
tofu validatepassestofu plan -lock=falseoutput in PR showing single resource changecd terraform && tofu validate && tofu plan -lock=falseConstraints
tofu applyChecklist
Related
project-westside-ai-assistant— parent projectservice-onboarding-sop— step 4: NetworkPolicyScope Review: NEEDS_REFINEMENT
Review note:
review-595-2026-03-28basketball-api has no NetworkPolicy in pal-e-platform. The file contains 9 policies for platform namespaces; basketball-api is an application namespace with no default-deny. Only the keycloak policy needs modification.
[BODY]Remove "basketball-api ingress policy" from File Targets — it does not exist. Only keycloak policy (netpol_keycloak, line ~148) needs the westside-ai-assistant entry.[BODY]Remove AC1 ("namespace listed in basketball-api NetworkPolicy allowlist") — untestable, policy doesn't exist. Replace with note that basketball-api is already reachable.[BODY]Update Context to clarify only keycloak needs modification.[SCOPE]Decision needed: should a default-deny NetworkPolicy be created for basketball-api? Currently accepts traffic from all namespaces. If yes, separate ticket.Scope refinement (review-595-2026-03-28):
Scope Review: READY
Review note:
review-595-2026-03-28-r2Re-review after refinement. All 4 recommendations from
review-595-2026-03-28have been addressed:File targets verified against codebase:
netpol_keycloakat lines 133-154, basketball-api pattern at line 149 confirmed as the template to follow. Single-line addition, ~2 min agent work. Ready for dispatch.