Skip to content

Do not run auth interceptor for unregistered routes #45523

Description

@mshustov

Kibana version: master

Steps to reproduce:

  1. Run Kibana server
  2. Perform a request to an unregistered route /base-path/adasdfadasdf

Expected behavior:
The server returns 404 and doesn't run auth hook.

Actual behavior:
The server returns 404 and does run auth hook.

Current behavior may lead to unnecessary cookie invalidation. #44513 (comment)

Reason for this behavior is a logic for trailing-slash-url redirection https://github.com/restrry/kibana/blob/cdee299d0a58de9c5e98ee36a35bcd6e66265887/src/legacy/server/http/index.js#L96-L113 introduced in
mshustov@615f4c9

Activity

  1. added
    bugFixes for quality problems that affect the customer experience
    Team:CorePlatform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t//
    on Sep 12, 2019
  2. elasticmachine commented on Sep 12, 2019

    @elasticmachine
    Contributor

    Pinging @elastic/kibana-platform

  3. mshustov commented on Sep 12, 2019

    @mshustov
    ContributorAuthor

    related #45528

  4. added
    staleUsed to mark issues that were closed for being stale
    on Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature:New PlatformTeam:CorePlatform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t//bugFixes for quality problems that affect the customer experiencestaleUsed to mark issues that were closed for being stale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions