Skip to content

Conversation

@lovincyrus
Copy link
Contributor

@lovincyrus lovincyrus commented Nov 20, 2025

This PR strips the connector config from model YAML in multi-step flow (prevent GCS creds leak).

Root cause: Connector step values (e.g., google_application_credentials) were carried into the model step and used for model YAML generation; preview filtered them, but submission did not.

Closes https://linear.app/rilldata/issue/APP-587/regression-model-includes-plaintext-credentials-introduced-in-8142

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!
@lovincyrus lovincyrus self-assigned this Nov 20, 2025
@lovincyrus lovincyrus marked this pull request as ready for review November 20, 2025 16:55
@lovincyrus lovincyrus requested a review from royendo November 20, 2025 16:56
@lovincyrus lovincyrus force-pushed the cyrus/gcs-model-regression-fix branch from 47e29cb to c85a62e Compare November 20, 2025 17:05
Copy link
Contributor

@royendo royendo left a comment

Choose a reason for hiding this comment

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

UX pass good, adding EricG for code review (seems he's back soon based on Slack)

@royendo royendo requested a review from ericpgreen2 November 20, 2025 17:11
Copy link
Contributor

@ericpgreen2 ericpgreen2 left a comment

Choose a reason for hiding this comment

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

I'll approve so we can cherry-pick this ASAP, but we need to add tests for critical bugs like this that make it to production. Here's a Linear ticket.

@lovincyrus lovincyrus merged commit 6c98de4 into main Nov 21, 2025
15 checks passed
@lovincyrus lovincyrus deleted the cyrus/gcs-model-regression-fix branch November 21, 2025 04:23
lovincyrus added a commit that referenced this pull request Nov 21, 2025
…8372)

* inital

* strip connector values when transitioning to the model form

* wip

* exclude connector config in prepareSourceFormData to avoid secret leakage

* revert

* clean up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants