Add paldocs to Postgres NetworkPolicy allowlist (#397) #398
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!398
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "397-add-paldocs-to-postgres-networkpolicy-al"
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
Adds the
paldocsnamespace to the Postgres NetworkPolicy ingress allowlist so the paldocs service can reach the database.Changes
terraform/network-policies.tf: Addedpaldocsnamespace selector tonetpol_postgresingress rules, after the existingpalinksentry.Test Plan
tofu apply, verify paldocs pods can connect to Postgres.kubectl get networkpolicy -n postgres -o yaml.Review Checklist
tofu planincluded per instructions (not run)Related Notes
None.
Related
Closes #397
QA Review
Scope: 1 file changed, 1 line added, 0 deleted.
Findings
No issues found. The change is a single-line addition that exactly follows the established pattern for all other namespace entries in the
netpol_postgresingress list:{ from = [{ namespaceSelector = { matchLabels = { ... } } }] }paldocspalinksis logical (alphabetical-ish ordering maintained)VERDICT: APPROVE
PR #398 Review
DOMAIN REVIEW
Tech stack: Terraform / Kubernetes (NetworkPolicy manifest via
kubernetes_manifestresource)This is a single-line addition to the Postgres NetworkPolicy ingress allowlist in
terraform/network-policies.tf. The change adds apaldocsnamespace selector following the exact same HCL structure used by every other entry in the list (pal-e-ror,landscaping-assistant,palinks).Terraform/k8s checks:
namespaceSelectorwithmatchLabelsonkubernetes.io/metadata.name. Correct.palinks, maintaining alphabetical-ish ordering. Acceptable.tofu planwould show an in-place update to the existingkubernetes_manifestresource. No migration needed.paldocs) to the Postgres namespace. This is the correct, least-privilege approach -- namespace-scoped selectors rather than broad CIDR rules.Historical precedent: This repo has a well-established pattern for this exact change. PRs #376, #378, #382, and #384 all added namespaces to NetworkPolicy allowlists in the same file using the same structure. This PR follows that pattern faithfully.
BLOCKERS
None.
BLOCKER criteria evaluation:
tofu plan+ runtime connectivity checks, not unit tests. The test plan (verify paldocs pods can connect post-apply, inspect the NetworkPolicy YAML) is appropriate for this domain. No new application code to unit test.NITS
None. The change is minimal, correctly scoped, and follows the established pattern precisely.
SOP COMPLIANCE
397-add-paldocs-to-postgres-networkpolicy-alfollows{issue-number}-{kebab-case-purpose}convention (truncated but acceptable)Related: Closes #397which is correct for issue linkage, but no plan slug was provided (caller confirmed "No plan slug"). Acceptable for a single-line infra fix.PROCESS OBSERVATIONS
VERDICT: APPROVED