Skip to content

fix(dashboard): stop autofill on connector credential fields - #3086

Open
yftx293 wants to merge 2 commits into
TencentCloud:developfrom
yftx293:fix/connector-autofill
Open

yftx293 wants to merge 2 commits into
TencentCloud:developfrom
yftx293:fix/connector-autofill

Conversation

@yftx293

@yftx293 yftx293 commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Credential inputs in the dashboard had no autoComplete hints, so browsers treated config forms as a login form:

  • App ID / SdkId text fields were filled with the saved login username,
  • App Secret / Secret / API-key password fields were filled with the saved login password.

Fixes #3079. After review feedback, this now covers the remaining 21 config password inputs, not only the connector drawer.

Changes

  • Connector drawer (Agent/Connectors/index.tsx): the original four fields plus the remaining 8 <Input.Password> fields → autoComplete="new-password".
  • Channel drawer (Agent/Channels/components/ChannelDrawer.tsx): the shared field renderer sets new-password for password fields and off for the other channel fields (covers all 14 channel config fields in one place).
  • Model provider modals: ProviderConfigModal, CustomProviderModal, PresetProviderModal API keys.
  • Settings: Voice (3 secrets + the AppID text field), Embedding, Vector Search, Observability, octop/Providers.
  • Admin Storage backend modal (access key / secret key, 2) and Setup DatabaseStep.

Login, setup password, and user-management password inputs are unchanged: there current-password / password-manager behavior is intentional.

Verification

cd dashboard
npx tsc -b                     # pass
npx eslint <changed files>     # 0 errors (20 pre-existing warnings)
npx prettier --check <changed files>
npx vitest run src/pages/Agent/Connectors src/pages/Agent/Channels \
  src/pages/Settings/Voice src/pages/Settings/Embedding src/pages/Admin/Storage
# 14 test files, 71 tests passed

The full dashboard build runs in CI (Build dashboard job). Autofill behavior itself is browser-driven; the attributes are the supported opt-out mechanism, matching CustomMcpServerCard.tsx.

Notes

No behavior logic changed; only form attributes plus formatting of the touched JSX.

@balabommablock-cpu balabommablock-cpu left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The 4 changed fields look right, and they match the CustomMcpServerCard.tsx pattern (off for IDs, new-password for secrets). I didn't repeat the browser autofill check.

One thing before this closes #3079: it fixes 2 of the issue's spots, and Fixes #3079 would close all of it. I scanned the PR head for <Input.Password tags without autoComplete (whole JSX tag, not one line). 21 of 52 still have none, including:

  • Settings/Models/.../ProviderConfigModal.tsx:1165: the API Key field from the issue's repro steps
  • CustomProviderModal.tsx:341, PresetProviderModal.tsx:437
  • 8 more in this same file, Agent/Connectors/index.tsx (1705, 1770, 1795, 1962, 1993, 2103, 2141, 2194)
  • Voice (3), Embedding, VectorSearchConfig, Observability, octop/Providers.tsx, Storage (2), Setup/DatabaseStep.tsx

Also the ChannelDrawer.tsx renderer (~L210), which covers all 14 channel password fields in one place.

Two easy options: change it to Part of #3079 so the issue stays open, or add the remaining ones here. The Connectors file and ChannelDrawer would be the cheapest, since one line in the renderer fixes every channel.

@yftx293

yftx293 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

Extended in e31e9e8e to cover the 21 config password inputs you listed, plus the ChannelDrawer renderer (password → new-password, other channel fields → off) and the Voice AppID text field. Login / setup / user-management password inputs are intentionally unchanged.

Verified on the new head: tsc -b pass, eslint 0 errors (20 pre-existing warnings), prettier clean, and 71 tests across the affected pages pass (14 files). Fixes #3079 now matches the scope.

This branch has not been deployed

No deployments
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.

2 participants