Fix 413 on Docker push, add palinks to postgres NetworkPolicy #382
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!382
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/harbor-body-size"
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
client_max_body_size 0on Harbor portal proxy nginx — the missing limit defaulted to 1MB, blocking Kaniko image pushes through the Tailscale funnelChanges
terraform/modules/harbor/main.tf: Addedclient_max_body_size 0to portal proxy nginx server blockterraform/network-policies.tf: Added palinks namespace to postgres NetworkPolicy ingress rulesTest Plan
tofu applysucceeded (targeted apply on cluster)tofu planshows no driftReview Checklist
Related Notes
PR #382 Review
DOMAIN REVIEW
Tech stack: OpenTofu/Terraform managing Kubernetes resources (ConfigMap for nginx, NetworkPolicy manifests).
Change 1 --
terraform/modules/harbor/main.tf: Addsclient_max_body_size 0;to the Harbor portal proxy nginx server block. This removes the default 1MB body size limit that was blocking Kaniko image pushes through the Tailscale funnel. Setting to0disables the limit entirely, which is the standard nginx approach for container registries where image layers can be arbitrarily large. Correct fix for 413 errors on Docker push.Change 2 --
terraform/network-policies.tf: Addspalinksnamespace to the postgres NetworkPolicy ingress rules. Follows the exact same pattern as the existing entries forpal-e-docs,pal-e-ror, andlandscaping-assistant. Consistent with the namespace-selector approach used throughout this file. This is a well-established pattern in this repo (see prior PRs #376, #378, #366 for identical-pattern changes).Terraform-specific checks:
tofu apply.k8s-specific checks:
client_max_body_size 0is appropriate for a container registry proxy. Upstream Harbor components enforce their own limits, so this nginx proxy layer is not the right place to restrict body size.matchLabelson the standardkubernetes.io/metadata.namelabel -- correct and least-privilege.BLOCKERS
None.
This is a 2-line infrastructure fix. No new functionality requiring tests -- these are declarative Terraform resource modifications validated by
tofu applyand pipeline runs. The test plan (tofu apply succeeded, pipelines #16 and #17 green) is appropriate for infrastructure changes of this scope.NITS
None. Both additions are minimal, follow established patterns, and are correctly placed.
SOP COMPLIANCE
fix/harbor-body-size, not381-harbor-body-size-palinks-netpol. Convention calls for{issue-number}-{kebab-case-purpose}.PROCESS OBSERVATIONS
tofu apply+ green pipelines. The post-mergetofu plancheck (unchecked in the test plan) is the correct follow-up to confirm no drift.fix/prefix convention diverges from the{issue-number}-{kebab-case}SOP. Non-blocking for a 2-line fix, but worth maintaining consistency.VERDICT: APPROVED