Skip to content
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

Allow hidden saved-objects to be imported/exported #82089

Closed
kobelb opened this issue Oct 29, 2020 · 2 comments
Closed

Allow hidden saved-objects to be imported/exported #82089

kobelb opened this issue Oct 29, 2020 · 2 comments
Labels
discuss NeededFor:Alerting Services Project:RemoveLegacyMultitenancy Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc

Comments

@kobelb
Copy link
Contributor

kobelb commented Oct 29, 2020

It's becoming more and more common for developers to make saved-objects hidden and write a custom client that consumers must use when interacting with these saved-objects. This restricts consumers from using the standard SavedObjectsClient and HTTP APIs to interact with these saved-objects. This is currently being done for a number of reasons:

  • Implement custom authorization
  • Enforce validation on the saved-object's attributes
  • Create API Keys that are stored using encrypted saved-object attributes

However, there are drawbacks to doing so and these saved-objects can no longer be imported or exported using saved-object management's import/export.

Potential Solutions

Support custom-logic for import/export

This would allow the plugins that declare a saved-object as being hidden to write custom logic that would be executed for the saved-object to support import/export. I'm not exactly sure how this would work practically, and further exploration on the specifics of this are required

Use-case specific import/export

It's also possible for us to not try to solve this at that platform level, and require a use-case specific import/export. This would require that every time a saved-object is marked as hidden that a purpose-built import/export UI and API be implemented. This would create a rather fragmented experience, and make it difficult for end-users to import/export all of their saved-objects.

@kobelb kobelb added discuss Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc labels Oct 29, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-platform (Team:Platform)

@kobelb
Copy link
Contributor Author

kobelb commented Oct 29, 2020

Dupe of #82027

@kobelb kobelb closed this as completed Oct 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss NeededFor:Alerting Services Project:RemoveLegacyMultitenancy Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Projects
None yet
Development

No branches or pull requests

2 participants