{"record":{"id":"385c711ce66f8654","repo":"santifer/career-ops","slug":"breezy-url-must-use-https-url","errorCode":null,"errorMessage":"breezy: URL must use HTTPS: ${url}","messagePattern":"breezy: URL must use HTTPS: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"providers/breezy.mjs","lineNumber":26,"sourceCode":"// approach as the recruitee / bamboohr providers).\n//\n// Breezy boards expose every published position as a public JSON array at\n// `<tenant>.breezy.hr/json` — title, absolute url, location, and a published\n// date, all in the list payload at zero token cost (no per-job request, so the\n// scanner stays zero-token). Breezy's authenticated REST API (api.breezy.hr) is\n// intentionally NOT used; only the public board feed.\n\nconst BREEZY_HOST_RE = /^[a-z0-9][a-z0-9-]*\\.breezy\\.hr$/;\n\n/** @param {string} url */\nfunction assertBreezyUrl(url) {\n  let parsed;\n  try {\n    parsed = new URL(url);\n  } catch {\n    throw new Error(`breezy: invalid URL: ${url}`);\n  }\n  if (parsed.protocol !== 'https:') throw new Error(`breezy: URL must use HTTPS: ${url}`);\n  if (!BREEZY_HOST_RE.test(parsed.hostname)) {\n    throw new Error(`breezy: untrusted hostname \"${parsed.hostname}\" — must match <tenant>.breezy.hr`);\n  }\n  return url;\n}\n\n/**\n * Resolve the tenant origin (`https://<tenant>.breezy.hr`) from an entry.\n * Honours an explicit `api:` URL, else parses `careers_url`.\n * @param {import('./_types.js').PortalEntry} entry\n * @returns {string | null}\n */\nfunction resolveOrigin(entry) {\n  const rawApi = typeof entry.api === 'string' ? entry.api : '';\n  const rawCareers = typeof entry.careers_url === 'string' ? entry.careers_url : '';\n  const raw = (rawApi || rawCareers).trim();\n  if (!raw) return null;\n  let parsed;","sourceCodeStart":8,"sourceCodeEnd":44,"githubUrl":"https://github.com/santifer/career-ops/blob/9b17a8ac97b398a496b38e423ae24e433b43254f/providers/breezy.mjs#L8-L44","documentation":"The HTTPS-enforcement step of Breezy's SSRF guard. After the URL parses, any scheme other than `https:` is rejected, enforcing transport security to the Breezy tenant.","triggerScenarios":"`parsed.protocol !== 'https:'` for an otherwise-parseable URL — typically an `http://<tenant>.breezy.hr` value.","commonSituations":"A careers_url copied from an insecure source, a local proxy URL left in config, or a tool that downgraded the scheme.","solutions":["Use `https://<tenant>.breezy.hr` for `api:` and `careers_url`.","Remove http:// overrides from config/environment.","Terminate TLS on any local test proxy rather than weakening the check."],"exampleFix":"# before\n- name: Acme\n  api: http://acme.breezy.hr\n\n# after\n- name: Acme\n  api: https://acme.breezy.hr","handlingStrategy":"validation","validationCode":"function ensureHttpsField(entry, field) {\n  if (!entry[field]) return;\n  if (new URL(entry[field]).protocol !== 'https:') {\n    throw new Error(`breezy: ${field} must be https: ${entry[field]}`);\n  }\n}\nensureHttpsField(entry, 'api');\nensureHttpsField(entry, 'careers_url');","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Normalize provider URLs to https at config load.","Reject http:// values with a startup error.","Terminate TLS on local test proxies rather than disabling the check."],"tags":["breezy","url-validation","https","ssrf"],"backgroundTag":null,"analyzedSha":"9b17a8ac97b398a496b38e423ae24e433b43254f","analyzedAt":"2026-08-13T00:48:39.135Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}