Skip to content

SK-3201 require https for v2 vault and connection URLs - #222

Merged
skyflow-himanshupal merged 2 commits into
mainfrom
release/26.11.3
Nov 20, 2026
Merged

skyflow-himanshupal merged 2 commits into
mainfrom
release/26.11.3

Conversation

@skyflow-himanshupal

Copy link
Copy Markdown
Collaborator

Why

AppSecure finding: v2 accepted http:// for BaseVaultUrl and ConnectionUrl, so the bearer token and PII could be sent in cleartext. The connection URL scheme check was commented out.

What

  • common: one shared rule, CheckSecureUrl. Plain http is rejected for every host, localhost included. The vault URL check uses it. Removes WithInsecureVaultUrl and Validator.AllowInsecureVaultUrl.
  • common: timeout transports now copy http.DefaultTransport, so an application's proxy and TLS settings apply to them.
  • v2: vault and connection URLs use the shared rule. v2's own copy is removed. SDK_VERSION is now v2.2.1.
  • flowvault: vault URLs reject localhost http through the shared rule. README updated.
  • v2 and flowvault are pinned to the new common commit, ee737e4.
  • Tests that call a local server now use TLS test servers.

Verification

  • common: all tests pass with 100% coverage.
  • flowvault: all tests pass against the pinned common.
  • v2: no test failures compared with main. The validation package has 100% coverage.
  • Lint is clean in all three modules, and all 50 samples vet.

Contract tests (needs api-break-approved)

  • common: WithInsecureVaultUrl and AllowInsecureVaultUrl removed. Nothing in the repo uses them.
  • v2: 339 message constants change only in their version prefix, from v2.2.0 to v2.2.1.

Impact

Any http:// vault or connection URL, including localhost, now fails at client initialization. This needs release notes for v2.2.1 and the next flowvault release.

* SK-3201 require https for v2 vault and connection URLs

* SK-3201 bump v2 SDK_VERSION to v2.2.1

* SK-3201 reject plain http for v2 URLs on every host, localhost included

* SK-3201 common: one https-only URL check, no localhost exception

* SK-3201 v2, flowvault: use common's https-only URL check
@github-actions

Copy link
Copy Markdown

✅ Gitleaks Findings: No secrets detected. Safe to proceed!

@github-actions

Copy link
Copy Markdown

Semgrep Findings: Issues with Error level severity are found (Error is Highest severity in Semgrep), Please resolve the issues before merging.

@github-actions

Copy link
Copy Markdown

GoSec Findings: High Severity Vulnerabilities are found in the code. Please address them before merging.

@skyflow-himanshupal skyflow-himanshupal added the api-break-approved SDK code owner approved a public API break label Nov 19, 2026
@github-actions

Copy link
Copy Markdown

✅ Gitleaks Findings: No secrets detected. Safe to proceed!

@github-actions

Copy link
Copy Markdown

Semgrep Findings: Issues with Error level severity are found (Error is Highest severity in Semgrep), Please resolve the issues before merging.

@github-actions

Copy link
Copy Markdown

GoSec Findings: High Severity Vulnerabilities are found in the code. Please address them before merging.

@skyflow-himanshupal
skyflow-himanshupal merged commit 7217a47 into main Nov 20, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-break-approved SDK code owner approved a public API break

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants