[Agent Builder] [Bug Bash] OAuth connector settings mention fields that are not there#264756
Merged
Merged
Conversation
Contributor
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
|
zacharyparikh
approved these changes
Apr 21, 2026
js-jankisalvi
approved these changes
Apr 22, 2026
Contributor
js-jankisalvi
left a comment
There was a problem hiding this comment.
verified locally, changes look good 👍
mbondyra
added a commit
to mbondyra/kibana
that referenced
this pull request
Apr 22, 2026
…sationChanges23 * commit '9a7b717c662d1c904052bc59f0e5a81daab87c7f': (145 commits) Upgrade EUI to v114.2.0 (elastic#264550) [Entity Analytics] Add missing OpenAPI descriptions and examples to p… (elastic#264778) [Entity Resolution] Clarify CSV upload result for already-linked entities (elastic#264689) [AI Infra] Fix failing GenAI Settings Scout tests (elastic#260496) [Agent Builder] [Bug Bash] OAuth connector settings mention fields that are not there (elastic#264756) [performance] process-wide cache for advanced settings lookup (elastic#262618) [CI] Update limits.yml for securitySolution (elastic#264946) [SLO] Fix APM embeddable ids (elastic#264750) [EDR Workflows] Unify artifacts empty state buttons (elastic#264389) [Alert Triage workflow] Adds security.buildAlertEntityGraph and security.renderAlertNarrative… (elastic#259159) [SigEvents] Add KI feature identification endpoints and refactor task to use shared service (elastic#263528) [Scout] Migrate Data Views API tests from FTR - Part5 (elastic#264088) [Cases] Apply shared extended_fields path util server side (elastic#264706) [Lens as code] Fix metric trendline (elastic#264777) [api-docs] 2026-04-22 Daily api_docs build (elastic#264882) [Scout] Update test config manifests (elastic#264575) [workflows_management] Lazy-load Zod connector schemas to cut idle memory (elastic#264283) [ES|QL] Fix ES|QL columns reset race during active fetch (elastic#263947) [Content List] Column layout props, sticky actions, and title click handlers (elastic#264203) [Lens as code] Validate `id` in route for new vis types (elastic#264480) ...
3 tasks
SoniaSanzV
pushed a commit
to SoniaSanzV/kibana
that referenced
this pull request
Apr 27, 2026
…at are not there (elastic#264756) closes - elastic/search-team#13839 ## Summary Fixes misleading copy in the connector **Encrypted fields** info callout when using OAuth 2.0 Authorization Code auth (e.g. Google Drive, Salesforce). The callout listed **Authorization URL**, **Token URL**, and **Scope** even though those inputs are hidden and only **Client ID** / **Client secret** are shown. ## Root cause `EncryptedFieldsCallout` builds its message from every registered `secrets.*` field that has a `label`. Hidden OAuth endpoint fields are still registered (so values submit correctly) but were registered with the default field type `text`, so they were indistinguishable from visible fields. ## Changes - **`encrypted_fields_callout.tsx`**: Ignore fields whose form field type is `hidden` when collecting labels for the callout. - **`hidden_widget.tsx`** (`@kbn/response-ops-form-generator`): Set `type: FIELD_TYPES.HIDDEN` on `UseField` config for hidden schema fields so the form registry matches UI behavior. - **Tests**: Assert hidden `secrets.*` fields are omitted from the create-connector callout copy. ## How to test 1. **Stack Management** (or **Alerts and Insights**) → **Connectors** → create **Google Drive** (or another spec connector with hidden OAuth defaults). 2. Choose **OAuth 2.0 Authorization Code** authentication. 3. Confirm the blue encrypted-fields callout only references **Client ID** and **Client secret** (not Authorization URL, Token URL, or Scope). <img width="686" height="856" alt="Screenshot 2026-04-21 at 16 30 43" src="https://github.com/user-attachments/assets/b8651d1a-5702-4407-96b9-d70ce5575711" />
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes - https://github.com/elastic/search-team/issues/13839
Summary
Fixes misleading copy in the connector Encrypted fields info callout when using OAuth 2.0 Authorization Code auth (e.g. Google Drive, Salesforce). The callout listed Authorization URL, Token URL, and Scope even though those inputs are hidden and only Client ID / Client secret are shown.
Root cause
EncryptedFieldsCalloutbuilds its message from every registeredsecrets.*field that has alabel. Hidden OAuth endpoint fields are still registered (so values submit correctly) but were registered with the default field typetext, so they were indistinguishable from visible fields.Changes
encrypted_fields_callout.tsx: Ignore fields whose form field type ishiddenwhen collecting labels for the callout.hidden_widget.tsx(@kbn/response-ops-form-generator): Settype: FIELD_TYPES.HIDDENonUseFieldconfig for hidden schema fields so the form registry matches UI behavior.secrets.*fields are omitted from the create-connector callout copy.How to test