Skip to content

fix(credentials): report a refused host as the user's input, persist normalized account ids, cap Databricks reads - #9859

Merged
waleedlatif1 merged 4 commits into
stagingfrom
fix/release-audit-1110-cleanups
Nov 11, 2026
Merged

waleedlatif1 merged 4 commits into
stagingfrom
fix/release-audit-1110-cleanups

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Saved-credential checks on a typed host (Grafana, GitLab, Infisical, Upstash and the other configuredEndpoint/selfHostedService checks) now validate the host and fetch in two steps. A host the egress policy refuses (private address, plain http where https is required) fails as invalid_credentials 400 instead of provider_unavailable, which rendered as a retryable 503 for a refusal that never clears. Unknown hosts stay site_not_found; transport failures and transient DNS failures stay provider_unavailable
  • The token secret stores the validator's normalized account id, the same way it already stores the normalized domain (every normalizer only trims today, so stored values don't change)
  • Databricks token and SCIM Me responses are read through the capped JSON reader like the other credential checks
  • Comparison data says Sim's code path is the REST API and CLI, not an SDK

Type of Change

  • Bug fix

Testing

  • bunx vitest run lib/credentials/ in apps/sim: 87 files, 772 tests pass, including new cases for a refused host (invalid_credentials) and an unreachable host (provider_unavailable)
  • biome, check:comment-hygiene, check:utils

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Nov 11, 2026 12:21am UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 8 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread apps/sim/lib/compare/data/sim.ts Resolved
@greptile-apps

greptile-apps Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] This PR appears safe to merge; no new actionable issues remain.

Summary

This PR corrects saved-credential errors and bounds Databricks response reads.

  • Typed-host checks tell a refused address from an outage.
  • Saved credentials keep the account ID that validation checked.
  • Databricks credential checks cap token and identity replies.
  • Sim’s comparison profile names the REST API and CLI as code interfaces.

Both earlier, unnumbered findings are fixed: oversized identity replies stop the save, and interrupted token reads report a read failure instead of a size failure. No new actionable issues were found.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Check typed host] --> B{URL and DNS result}
  B -->|Policy refuses host| C[invalid_credentials]
  B -->|Host does not exist| D[site_not_found]
  B -->|Temporary lookup failure| E[provider_unavailable]
  B -->|Allowed| F[Fetch using checked IP]
  F -->|Connection fails| E
  F -->|Provider replies| G[Check provider response]
Loading

Reviews (5) · Last reviewed commit: "fix(credentials): tell an interrupted Da..." · Reviewed by Greptile

waleedlatif1 added a commit that referenced this pull request Nov 10, 2026
Drops the response cap and crawl depth (landed in #9860), CONTRIBUTING (#9860), Firecrawl search sources (on hold), Databricks JSON caps (#9859), and the workflow middleware and route-policies cleanups (#9858). Drops the NO_PROXY entry-syntax docs line (owned by a separate NO_PROXY change). Generated files regenerated on current staging.
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 9 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1
waleedlatif1 force-pushed the fix/release-audit-1110-cleanups branch from 82cb3b7 to e7bfe31 Compare November 11, 2026 00:09
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 9 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

…normalized account ids, cap Databricks reads

- A saved-credential check whose typed host the egress policy refuses (private address, plain http where https is required) now fails as invalid_credentials instead of provider_unavailable, which rendered as a retryable 503
- The stored account id is the validator's normalized value, matching how the domain is stored
- Databricks token and identity responses are read through the capped JSON reader
- Comparison data no longer says Sim can be built in code via an SDK
@waleedlatif1
waleedlatif1 force-pushed the fix/release-audit-1110-cleanups branch from dac87b7 to cfdf4b7 Compare November 11, 2026 00:21
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 9 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

This branch was previously deployed

1 inactive deployment
Preview — cfdf4b74 Deployed Nov 11, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant