Repository navigation
feat(helm): add autoHttps configuration for Caddy in gateway settings - #702
Conversation
There was a problem hiding this comment.
Important
gateway.autoHttps treats an absent key as false, so helm upgrade --reuse-values from a release created by an older chart silently switches the gateway to plain HTTP and drops the Service's 443 port. A missing key should fall back to the documented true default.
Reviewed changes
paca.gatewaySiteAddresshelper — selects:80wheningress.enabledis true orgateway.autoHttpsis false, otherwisepublicUrl's host.values.yaml/values.schema.json— addsgateway.autoHttps: truewith documentation and boolean validation.- Chart README — documents the new value in the gateway configuration table.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Absent-key default fixed —
paca.gatewaySiteAddressnow guardsautoHttpswithhasKey, so a missing key (e.g.helm upgrade --reuse-valuesfrom an older release) falls back to the documentedtruedefault instead of silently forcing:80and dropping the Service's 443 port. Verified with isolatedhelm templateruns: missing/truerenderpublicUrl's host, explicitfalserenders:80.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
…r improved HTTPS handling
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This run re-reviews the delta between 0543524 and 5442d48, on top of the earlier autoHttps review.
kindIs "bool"guard —paca.gatewaySiteAddressnow honors only a real booleanfalse, sonull, missing, or otherwise non-boolean values keep automatic HTTPS (safe forhelm upgrade --reuse-valuesfrom an older chart).- Gateway container port alignment —
templates/gateway/deployment.yamldeclarescontainerPort: 443(name: https) only whenSITE_ADDRESSis not:80, matching the pre-existing conditional 443 entry intemplates/gateway/service.yamlso the namedhttpstarget exists exactly when the Service uses it. - Documentation — clarified in the
_helpers.tplcomment and chart README that withautoHttps: falsethe external proxy must terminate TLS;publicUrlandapi.cookieSecurestay unchanged, so cookies remainSecure.
Verified with isolated helm template renders: default/true/null render SITE_ADDRESS = host and expose the 443 container port; autoHttps: false, ingress.enabled: true, and empty publicUrl render :80 and omit 443. No other chart files reference port 443 or the named https port.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

Summary
Adds a
gateway.autoHttpsHelm value (defaulttrue) so the Caddy gateway can serve plain HTTP behind external TLS termination (Istio VirtualService, Gateway API route, tunnel) without requiring a Kubernetes Ingress.Previously
paca.gatewaySiteAddressonly chose:80wheningress.enabledwas true. With an HTTPSpublicUrland no Ingress, Caddy switched to automatic HTTPS and redirected HTTP requests to the origin instead of serving them. Settinggateway.autoHttps: falsenow selects:80in that case.publicUrl,api.cookieSecureand all application URLs are unchanged.Closes #690
Changes
templates/_helpers.tpl:paca.gatewaySiteAddressreturns:80wheningress.enabledis true orgateway.autoHttpsis false. The other branches are unchanged.values.yaml: newgateway.autoHttps: truewith documentation.values.schema.json:gateway.autoHttpsmust be a boolean.README.md: documents the new value.Behavior
ingress.enabledgateway.autoHttpspublicUrlSITE_ADDRESShttps://paca.example.compaca.example.com(unchanged)https://paca.example.com:80:80(unchanged):80(unchanged)Testing
Checked with
helm template: the default renderspaca.example.com,gateway.autoHttps=falserenders:80,ingress.enabled=truerenders:80, and a non-booleangateway.autoHttpsis rejected by the schema. Not tested against a live Caddy or cluster.Type of Change