Skip to content

fix(configuration): treat empty secret as explicit clear#7756

Open
ehooi wants to merge 1 commit into
getredash:masterfrom
ehooi:fix/empty-secret-clear
Open

fix(configuration): treat empty secret as explicit clear#7756
ehooi wants to merge 1 commit into
getredash:masterfrom
ehooi:fix/empty-secret-clear

Conversation

@ehooi

@ehooi ehooi commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • Bug Fix

Description

When a user clears a password field in the UI and saves, the empty string is persisted to the data source options as-is. Downstream SDKs (e.g. boto3) then receive an explicit empty credential instead of falling back to the default credential chain, and authentication fails with empty keys (observed with the Athena data source's aws_secret_key).

Distinguish the placeholder ("--------", meaning "no change") from an empty string ("explicit clear") and drop the latter from the stored options.

How is this tested?

  • Unit tests (pytest, jest)
  • Manually

Related Tickets & Documents

N/A

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

N/A - backend-only change.

Review in cubic

When a user clears a password field in the UI and saves, the empty
string is persisted to the data source options as-is. Downstream SDKs
(e.g. boto3) then receive an explicit empty credential instead of
falling back to the default credential chain, and authentication fails
with empty keys (observed with the Athena data source's
aws_secret_key).

Distinguish the placeholder ("--------", meaning "no change") from an
empty string ("explicit clear") and drop the latter from the stored
options.

@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 2 files

Re-trigger cubic

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