Skip to content

Commit 48e651d

Browse files
Brad Pokornylin-hua-cheng
authored andcommitted
Configurable token hashing
Provide info on the option for operators to turn off token hashing to be performed by horizon. In some deployments where PKI token format is used for keystone, token hashing causes 401 errors in horizon. Depends-On: I187b1486db2e453fd49298e1478e30abe97e54fe Change-Id: I5ebc07850b14b2f2f52fc659831d6cd4aa9f83c3 Closes-Bug: #1473588
1 parent 55d8878 commit 48e651d

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

doc/source/topics/settings.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -964,6 +964,19 @@ are using. Allowed values are the algorithms supported by Python's hashlib
964964
library.
965965

966966

967+
``OPENSTACK_TOKEN_HASH_ENABLED``
968+
--------------------------------
969+
970+
.. versionadded:: 8.0.0(Liberty)
971+
972+
Default: ``True``
973+
974+
Hashing tokens from Keystone keeps the Horizon session data smaller, but it
975+
doesn't work in some cases when using PKI tokens. Uncomment this value and
976+
set it to False if using PKI tokens and there are 401 errors due to token
977+
hashing.
978+
979+
967980
``POLICY_FILES``
968981
----------------
969982

openstack_dashboard/local/local_settings.py.example

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,12 @@ SECURITY_GROUP_RULES = {
619619
# algorithms supported by Python's hashlib library.
620620
#OPENSTACK_TOKEN_HASH_ALGORITHM = 'md5'
621621

622+
# Hashing tokens from Keystone keeps the Horizon session data smaller, but it
623+
# doesn't work in some cases when using PKI tokens. Uncomment this value and
624+
# set it to False if using PKI tokens and there are 401 errors due to token
625+
# hashing.
626+
#OPENSTACK_TOKEN_HASH_ENABLED = True
627+
622628
# AngularJS requires some settings to be made available to
623629
# the client side. Some settings are required by in-tree / built-in horizon
624630
# features. These settings must be added to REST_API_REQUIRED_SETTINGS in the

0 commit comments

Comments
 (0)