Skip to content

Trim pasted API keys before submit (CL-6682) - #332

Merged
TheGreatAxios merged 2 commits into
mainfrom
cl-6682-trim-pasted-keys
Aug 22, 2026
Merged

Trim pasted API keys before submit (CL-6682)#332
TheGreatAxios merged 2 commits into
mainfrom
cl-6682-trim-pasted-keys

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

All three credential forms gated their submit on key.trim() !== "" but sent the raw value; a key copied from a provider console with a trailing newline gets 401'd and reported as invalid.

Trim at the two request boundaries every form goes through: completeConnectorCredential (settings + plugin connect panels) and postOnboarding (onboarding wizard).

  • Tests first: red on untrimmed bodies, green after.

Closes CL-6682.

@TheGreatAxios
TheGreatAxios merged commit 7fe51ee into main Aug 22, 2026
5 checks passed
@TheGreatAxios
TheGreatAxios deleted the cl-6682-trim-pasted-keys branch August 22, 2026 17:04
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