-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SOM] Add visibleInManagement
option to management metadata
#112073
[SOM] Add visibleInManagement
option to management metadata
#112073
Conversation
.getImportableAndExportableTypes() | ||
.filter((type) => type.management!.visibleInManagement ?? true) | ||
.map((type) => type.name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: I could have added the same filtering in other SOM routes (e.g find
, scroll_count
), but I think it's not worth it because:
- The list of type from the
_allowed_types
endpoint is the source of truth for the UI regarding the types the user can search for or list in the SOM - Even if the user was to manually call the SOM endpoint while specifying types that are exportable but not visible in management, it's not a vulnerability or a privilege escalation, as it would have been allowed to do the same using the public SO apis)
Pinging @elastic/kibana-core (Team:Core) |
|
||
describe('types with `visibleInManagement` ', () => { | ||
before(async () => { | ||
await esArchiver.load( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…sibleInManagement
💚 Build SucceededMetrics [docs]History
To update your PR or re-run it, just comment with: |
…c#112073) * implement SavedObjectsTypeManagementDefinition.visibleInManagement * update generated doc * improve FTR tests * fix FTR test
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
… (#112639) * implement SavedObjectsTypeManagementDefinition.visibleInManagement * update generated doc * improve FTR tests * fix FTR test Co-authored-by: Pierre Gayvallet <[email protected]>
Summary
Fix #110146
Introduce a new
visibleInManagement
configuration option inSavedObjectType.management
to allow type owners to define a type as exportable while hiding it from the SOM user interface.Refer to #110146 for more functional details.
Checklist