Rework Keycloak auth token validation with auth server public key

Bug #1857871 reported by Renat Akhmerov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
Fix Released
High
Renat Akhmerov

Bug Description

Currently, when Mistral is configured with to authenticate requests with Keycloak, every time when an HTTP request arrives Mistral extracts an access token from the 'X-Auth-Token' header and sends a request to Keycloak to check if it's valid. However, Mistral can validate it w/o sending a request. It's possible to validate a token on the Mistral side using Keycloak public key.

For more information read this article: https://blog.miguelgrinberg.com/post/json-web-tokens-with-public-key-signatures

Changed in mistral:
milestone: none → ussuri-2
assignee: nobody → Renat Akhmerov (rakhmerov)
importance: Undecided → High
status: New → Confirmed
Changed in mistral:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to mistral (master)

Reviewed: https://review.opendev.org/700695
Committed: https://git.openstack.org/cgit/openstack/mistral/commit/?id=c888a46ccc46346deee8d483a706918341bc0a7f
Submitter: Zuul
Branch: master

commit c888a46ccc46346deee8d483a706918341bc0a7f
Author: Renat Akhmerov <email address hidden>
Date: Fri Dec 27 16:20:19 2019 +0700

    Fix keycloak authentication

    * Implement offline access token validation using Keycloak public key.

    Closes-bug: #1857871
    Change-Id: I0eecec4b4e64381cac005622b16c6d9e4bed4df6

Changed in mistral:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/mistral 10.0.0.0b2

This issue was fixed in the openstack/mistral 10.0.0.0b2 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.