Skip to content

Deprecate Short Urls for unsaved objects #12365

@stacey-gammon

Description

@stacey-gammon

We have an issue with our short url service in that they are kept around perpetually with no easy way to delete them (more details here: #10450). Short urls are stored in the .kibana index with only the original url and the short url - no connection to the original saved object (if indeed it was generated from a saved object).

If we want to continue to allow users to create short urls from unsaved objects, then I don't see any way to handle this situation, short of a new management screen to give control to the users for which urls to delete.

The other option is to stop allowing users to create short urls for unsaved objects. We have two ways to implement this:

  1. Remove short urls entirely, since the url for sharing saved objects with all saved edits, is already short enough.

  2. Allow sharing unsaved edits to a saved object, but the object will have to have an id associated with it.

I'm in favor of 2. because we'll have a way to cleaning up urls when their associated object is deleted, and I think 1 is too limiting (just see how many +1s there were on #1553)

There are still some cons with this route:

  • long urls can still be used to share unsaved urls, but users run into issues with sharing long urls:
    • Use more aggressive URL encoding #2815 Less aggresive url encoding means some applications can't interpret these urls.
    • IE url length limitations restricts users from opening long urls in IE, so there would no longer be a way around this by using short urls (for urls not associated with a saved object).
  • read only users won't be able to use short urls at all.

What this means for 6.0

If we decide to go the route of requiring short urls to be associated with a saved object, we need to do a couple things in 6.0:

  • Add a deprecation warning when a short url that is not associated with an object is used.
  • Adjust the kibana index to store the id of the object associated with the short url.
  • Adjust the UI to restrict short url generation when the object is unsaved.
  • Continue to support existing urls until some time in the future.

In addition we may want to see if we can fix #2815 with better encoding so sharing long urls is more stable.

cc @uboness @alexfrancoeur @kobelb @nreese

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions