Add allowedCallbackURLs parameter for queue-worker#1253
Conversation
1ddcfbe to
9cf03c3
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
9cf03c3 to
f4b4a05
Compare
This comment has been minimized.
This comment has been minimized.
f4b4a05 to
f4df0bd
Compare
This comment has been minimized.
This comment has been minimized.
f4df0bd to
78d7d00
Compare
Allow users to restrict which URLs receive async function callbacks via a list of glob patterns. Defaults to ["*"] for backwards compatibility (allow all). Set to an empty list to deny all. Signed-off-by: Han Verstraete (OpenFaaS Ltd) <han@openfaas.com>
78d7d00 to
5d0ff4c
Compare
This comment has been minimized.
This comment has been minimized.
AI Pull Request OverviewDisclaimer: This review was generated by automated AI and may contain errors. Do not trust its outputs without human verification. Summary
Approval rating (1-10)7/10. The implementation is small and consistent, but chart release metadata appears incomplete for a publishable Helm chart change. Summary per fileSummary per file
Overall AssessmentThe chart value wiring is straightforward and consistent across the bundled OpenFaaS chart and the standalone queue-worker chart. The new defaults preserve existing behavior, and an empty list renders as an empty environment value, matching the documented deny-all intent if the worker treats an empty list that way. Before merging, the chart release metadata should be updated so these chart changes can be published and consumed through the Helm repository. Detailed ReviewDetailed ReviewFinding: Helm chart changes are not versioned for releaseThe PR changes published chart behavior in both This repository publishes Helm charts as versioned artifacts. If the chart versions remain unchanged, consumers of the Helm repository can continue to resolve the existing chart versions and never receive the new Update the OpenFaaS and queue-worker chart release metadata for this change, and regenerate the packaged chart/index artifacts if that is part of this repository's release flow. AI agent details. |
Description
Allow users to restrict which hosts receive async function callbacks via a list of glob patterns. The
allowedCallbackURLsparameter is added to both the main openfaas chart and the standalone queue-worker chart.["*"]for backwards compatibility (allow all)[]to deny all callbacks*.example.comorapi.internalWhy is this needed?
Prevents SSRF-style attacks where malicious callback URLs could be used to reach internal services. Users can now restrict callbacks to trusted domains only.
How Has This Been Tested?
This chart was used and validated during E2E testing.
Types of changes
Checklist:
git commit -s