Skip to content

[dashboards as code] white list control group references#245310

Merged
nreese merged 9 commits intoelastic:mainfrom
nreese:white_list_control_refs
Dec 29, 2025
Merged

[dashboards as code] white list control group references#245310
nreese merged 9 commits intoelastic:mainfrom
nreese:white_list_control_refs

Conversation

@nreese
Copy link
Copy Markdown
Contributor

@nreese nreese commented Dec 4, 2025

external team reviewers

With the closing of #222615, all embeddables inject and extract references in the server. As such, transformOutInjectsReferences flag is no longer needed and can be removed.

presentation team reviewers

This PR updates dashboard REST endpoint reference handling from black list to white list. Only control group references are white listed.

  • On write - fail request when passed non-white listed references.
  • On read - only return white listed references.

@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Dec 4, 2025

/ci

@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Dec 4, 2025

/ci

@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Dec 9, 2025

@elasticmachine merge upstream

@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Dec 9, 2025

/ci

@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Dec 11, 2025

@elasticmachine merge upstream

@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Dec 11, 2025

/ci

@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Dec 12, 2025

@elasticmachine merge upstream

@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Dec 16, 2025

@elasticmachine merge upstream

@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Dec 16, 2025

/ci

@nreese nreese added Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting Project:Dashboards API v9.4.0 labels Dec 16, 2025
@nreese nreese marked this pull request as ready for review December 16, 2025 20:06
@nreese nreese requested review from a team as code owners December 16, 2025 20:06
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

@botelastic botelastic bot added Feature:Embedding Embedding content via iFrame Team:obs-ux-management labels Dec 16, 2025
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

Copy link
Copy Markdown
Contributor

@AlexGPlay AlexGPlay left a comment

Choose a reason for hiding this comment

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

lgtm - code review only

Copy link
Copy Markdown
Contributor

@markov00 markov00 left a comment

Choose a reason for hiding this comment

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

LGTM, code review only

Copy link
Copy Markdown
Contributor

@nickpeihl nickpeihl left a comment

Choose a reason for hiding this comment

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

lgtm! code review and tested dashboard crud to ensure only controls references are permitted on create and update

@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Dec 29, 2025

@elasticmachine merge upstream

@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Dec 29, 2025

@elasticmachine merge upstream

@elasticmachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #22 / Core Analysis - Entity Store @ess Entity Store Engine APIs in non-default space get and list "before all" hook in "get and list"

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
discover 1.3MB 1.3MB -33.0B
lens 1.9MB 1.9MB -33.0B
total -66.0B
Unknown metric groups

ESLint disabled line counts

id before after diff
dashboard 27 25 -2

Total ESLint disabled count

id before after diff
dashboard 27 25 -2

History

@nreese nreese merged commit 87fd44a into elastic:main Dec 29, 2025
13 checks passed
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Jan 6, 2026
)

### external team reviewers
With the closing of elastic#222615, all
embeddables inject and extract references in the server. As such,
`transformOutInjectsReferences` flag is no longer needed and can be
removed.

### presentation team reviewers
This PR updates dashboard REST endpoint reference handling from black
list to white list. Only control group references are white listed.
* On `write` - fail request when passed non-white listed references.
* On `read` - only return white listed references.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Heenawter added a commit that referenced this pull request Jan 7, 2026
## Summary

When resolving merge conflicts with
#245310 in the [Controls Anywhere
PR](#245588), we accidentally
ended up with control references being spread twice. This PR undoes
that.
dej611 pushed a commit to dej611/kibana that referenced this pull request Jan 8, 2026
)

### external team reviewers
With the closing of elastic#222615, all
embeddables inject and extract references in the server. As such,
`transformOutInjectsReferences` flag is no longer needed and can be
removed.

### presentation team reviewers
This PR updates dashboard REST endpoint reference handling from black
list to white list. Only control group references are white listed.
* On `write` - fail request when passed non-white listed references.
* On `read` - only return white listed references.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
dej611 pushed a commit to dej611/kibana that referenced this pull request Jan 8, 2026
## Summary

When resolving merge conflicts with
elastic#245310 in the [Controls Anywhere
PR](elastic#245588), we accidentally
ended up with control references being spread twice. This PR undoes
that.
devamanv pushed a commit to devamanv/kibana that referenced this pull request Jan 12, 2026
## Summary

When resolving merge conflicts with
elastic#245310 in the [Controls Anywhere
PR](elastic#245588), we accidentally
ended up with control references being spread twice. This PR undoes
that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting Feature:Embedding Embedding content via iFrame Project:Dashboards API release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-management Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants