feat: allow westside-contracts namespace ingress to MinIO #150
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
forgejo_admin/pal-e-platform!150
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "149-minio-westside-contracts-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
Add
westside-contractsnamespace to the MinIO NetworkPolicy ingress allow list so the contracts service can reach MinIO for document storage.Changes
terraform/network-policies.tf-- added one ingress rule tonetpol_minioallowing traffic fromwestside-contractsnamespaceTest Plan
tofu fmt-- no formatting changes neededtofu validate-- passedtofu plan -lock=false-- cannot run from worktree (Kubernetes backend requires cluster access); will run on archbox after mergeReview Checklist
Related
Review complete. No issues found.
netpol_minio, following the exact pattern of the 6 existing entriestofu fmtandtofu validateboth passedPR #150 Review
DOMAIN REVIEW
Tech stack: Terraform (OpenTofu) / Kubernetes NetworkPolicy
This is a single-line addition to
terraform/network-policies.tfaddingwestside-contractsto thenetpol_minioingress allow list. The change follows the exact structural pattern used by all other entries in this resource (tailscale, postgres, woodpecker, monitoring, tofu-state, pal-e-mail).Terraform/k8s checklist:
namespaceSelectoruseskubernetes.io/metadata.namewhich is an immutable label auto-applied by Kubernetes. This is the correct and secure pattern -- it cannot be spoofed by workloads. Least-privilege principle is maintained: only the specific namespace is granted ingress, not a broad selector.westside-contractsis not a namespace managed by this repo, which is consistent with the pattern --basketball-api,pal-e-docs, andtofu-stateare also referenced as external namespaces in other NetworkPolicies here. The selector will match once the namespace exists in the cluster.No domain concerns.
BLOCKERS
None.
This is a one-line additive NetworkPolicy change. No new functionality requiring tests (infrastructure NetworkPolicy rules are validated by
tofu validate+ post-apply verification). No user input. No secrets. No auth logic.NITS
tofu plan output missing from PR body: PR conventions say "Include
tofu planoutput for any Terraform changes." The PR body explains this cannot be run from the worktree (requires cluster access), which is a known constraint. Acceptable given the circumstances, but worth noting the convention gap.Related section does not reference plan slug: The Related section references the parent issue (#149) and the pattern precedent, but does not include a reference to
plan-pal-e-platform. For a standalone board-level ticket this is minor.SOP COMPLIANCE
149-minio-westside-contracts-netpolreferences issue #149plan-pal-e-platformreference (minor -- standalone ticket)PROCESS OBSERVATIONS
westside-contractsnamespace not existing yet at apply time, which would be a no-op (selector matches nothing) rather than an error.VERDICT: APPROVED