Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

fix(assembler): accept http source URLs, signed against the in-cluster Supabase gateway in BYOC

Sidwebworks0a1bd961b2c6
diff --git a/apps/assembler/src/config.rs b/apps/assembler/src/config.rs
index 703dbee264..1d3628a0ee 100644
--- a/apps/assembler/src/config.rs
+++ b/apps/assembler/src/config.rs
@@ -119,9 +119,9 @@ pub fn verify_tls() -> bool {
pub fn validate_url(url: &str) -> Result<(), ApiError> {
let parsed = reqwest::Url::parse(url).map_err(|_| ApiError::invalid("invalid URL"))?;
let scheme = parsed.scheme();
- if require_https() && scheme != "https" {
- return Err(ApiError::invalid("URLs must use https"));
- }
+ // http is allowed: in a BYOC cluster the jobs layer signs storage URLs
+ // against the in-cluster Supabase gateway (SUPABASE_INTERNAL_URL), which
+ // is plain http and never leaves the namespace.
if scheme != "http" && scheme != "https" {
return Err(ApiError::invalid(format!(
"unsupported URL scheme: {scheme}"