feat: allow basketball-api → keycloak ingress in NetworkPolicy #119
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
forgejo_admin/pal-e-platform#119
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
plan-wkq→ Phase 2 (NetworkPolicy — Allow basketball-api → Keycloak)Repo
forgejo_admin/pal-e-platformUser Story
As basketball-api
I want to reach Keycloak via internal cluster URL
So that auto-account creation works without routing through the external Tailscale funnel
Context
basketball-api needs to call Keycloak's admin API to auto-create accounts on paid registration. The
default-deny-ingressNetworkPolicy in the keycloak namespace currently only allows ingress from thetailscalenamespace. basketball-api pods in thebasketball-apinamespace are blocked. The external Tailscale funnel URL (keycloak.tail5b443a.ts.net) TLS-EOFs when accessed from inside the cluster — a known pattern already fixed for Woodpecker→Forgejo.File Targets
Files to modify:
terraform/network-policies.tf— addbasketball-apito keycloak ingress allowlist (line ~131)Files NOT to touch:
Acceptance Criteria
tofu planshows keycloak NetworkPolicy updated with basketball-api ingress ruletofu applysucceedskubectl exec -n basketball-api deploy/basketball-api -- python3 -c "import httpx; print(httpx.get('http://keycloak.keycloak.svc.cluster.local/', timeout=5).status_code)"returns 200 or 303Test Expectations
tofu fmtpassestofu validatepassestofu plan -lock=falseshows expected changecd terraform && tofu fmt -check && tofu validateConstraints
fromentry (not combined selectors)tofu plan -lock=falseto avoid blocking CIChecklist
Related
westside-basketball— project