Skip to content

Out of the box, Kibana is unable to export and import all saved objects because of Canvas template #81560

@rudolf

Description

@rudolf

Kibana version: 7.9.0+

  1. Fresh install of Kibana
  2. Export all saved objects from Management -> Saved Objects -> Export
  3. Try to restore your export by importing those objects

Importing fails because the exported file is > 11MB which is bigger than our default of 10MB for savedObjects.maxImportPayloadBytes. Almost all of this comes from the Canvas pitch presentation template: #69438

Although we want to keep savedObjects.maxImportPayloadBytes relatively low for security reasons we can probably bump it higher. However, putting static image data into a saved object doesn't seem like a good fit and when a single saved object is this large it can have negative effects on other parts of Kibana (slowing down saved objects management UI, making migrations more likely to fail).

Can't we move these large images that come with the default templates into x-pack/plugins/canvas/public/assets and serve them from /plugins/canvas/assets/{path*}?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature:CanvasTeam:PresentationPresentation Team for Dashboard, Input Controls, and Canvas t//bugFixes for quality problems that affect the customer experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions