Commit Graph

15 Commits

Author SHA1 Message Date
Takashi Kajinami d95528c4bf Accept system scope credentials for Keystone API request
This change is the first step to support secure RBAC and allows usage
of system scope credentials for Keystone API request.

This change covers the following two items.
 - assignment of system scope roles to system user
 - credential parameters for authtoken middleware

Depends-on: https://review.opendev.org/804325
Change-Id: Id0ba4c95005d148477a313f0aa5edddc3c681e15
2021-11-25 20:41:09 +09:00
Takashi Kajinami 1552e1a5a7 Do not test authtoken parameters directly
The authtoken parameters are not managed directly but managed by
the keystone::resource::authtoken class. Thus we should avoid testing
parameters directly otherwise any change in the resource type can
cause test failures.

Change-Id: I4f52c018c1252cff58a144eb542a195ff44664bd
2021-08-27 14:37:28 +09:00
Takashi Kajinami c83d9a8985 Use a 'params' hash for authtoken parameters
This change adds the 'params' hash in authtoken class, to implement
the same functionality as the one recently introduced into
puppet-nova[1].

[1] 5c38281e1b698f157f03bf1815733277c541c30b

Change-Id: I8708bd573340107b3e974a3c6ef3a80b528628f5
2021-08-26 22:38:59 +09:00
Christopher Brown 248035fa43 Add support for the keystone_authtoken/service_type parameter
Change-Id: I5c353d174fc5aeaf9602cb7df1dd2fcbae71f12b
2020-10-25 23:49:12 +00:00
Lewis Denny 02f935237d Add support for the interface parameter in authtoken middleware
This patch adds support for [keystone_authtoken] interface parameter,
so that operators can define which endpoint should be used by authtoken
middleware.

Change-Id: I494c1e25c98a57b78c779bcd0bf30c92fe70ff0a
2020-07-15 16:19:23 +10:00
Takashi Kajinami 7eae76e496 Configure keystone_authtoken/service_token_roles
This patch introduces a new hieradata to configure service_token_roles
in keystone authtoken middleware configuration, so that we can use
a customized role for user who uses service token feature.

Change-Id: Iad16376047628bd16470dd4fd17fd260b927aa6c
2020-01-20 09:59:57 +00:00
ZhongShengping 4055441565 Service_token_roles_required missing in the server config file
Service_token_roles_required missing in the server config file which
allows backwards compatibility to ensure that the service tokens are
compared against a list of possible roles for validity.

Change-Id: I83d3b7ef866e2fb576edb866e60121a0789ef14d
Closes-Bug: 1778198
2019-02-15 10:12:48 +08:00
ZhongShengping abb9ba6f35 Deprecate pki related options
check_revocations_for_cached and hash_algorithms are deprecated for
removel because of PKI token format is no longer supported.
Update warning message and add a release note.

Change-Id: I6d7b74c6a21943953f8de5dd0ed0ec59835cd05d
Closes-Bug: #1804562
Closes-Bug: #1804720
2018-11-23 10:21:45 +08:00
ZhijunWei 1823d64da9 Replace port 35357 with 5000
Now that the v2.0 API has been removed, we don't have a reason to
include deployment instructions for two separate applications on
different ports.

Change-Id: I3546eb7cd596ae7a0894d42961d183ef842f7cb4
2018-05-13 15:08:52 +08:00
ZhongShengping 550af1d282 Deprecate auth_uri option
Option auth_uri from group keystone_authtoken is deprecated[1].
Use option www_authenticate_uri from group keystone_authtoken.

[1]https://review.openstack.org/#/c/508522/

Change-Id: Ie9c4c339374af50f5d1a8b3dbf6bf632c5bf06ef
Depends-On: I4c82a63baabd6b9304b302c97cd751a0103d8316
Closes-Bug: #1759098
2018-04-03 16:54:59 +08:00
ZhongShengping d18f3f8150 Set *_domain_name vars to 'Default' by default
Keystone v2 api's are removed in [1], so it's required
to set user_domain_name and project_domain_name otherwise
all requests fallbacks to keystone v2.0 and fails.

[1] https://review.openstack.org/#/c/499783/

Change-Id: If52cd4cea4d3fceb7e272366d20276a209b4dc5b
Closes-Bug: #1723838
2017-10-23 09:21:01 +00:00
ZhongShengping 3f069cd0f4 Deprecate revocation_cache_time option
The revocation_cache_time is deprecated for removel because of PKI
token format is no longer supported.
Update warning message and add a release note.

Change-Id: I899960c95b068858568155539aa0fa48bed99200
Closes-Bug: #1717144
2017-09-14 11:10:02 +08:00
Matthew J. Black 39603d4a2f Allow python-memcache install from authtoken class
The python-memcache package is required if using memcached. By
default the package is not installed and the define has it set to
false. This change allows managing the python-memcache package
install from the authtoken class.

Change-Id: I644d57b938497c374cb6f08a894fe21fab10eb41
2017-01-11 17:45:01 -05:00
ZhongShengping a72acd22de Deprecate signing_dir option
The signing_dir is deprecated for removel because of PKI token format
is no longer supported.
Update warning message and release note.

Change-Id: I902f75a284a571360aa859f76d8602cd8a177720
Closes-Bug: #1652700
2016-12-27 17:07:29 +08:00
Alex Schultz d9b8080925 Update keystone authtoken configuration pattern
This change updates our previous implementation of the keystone
authtoken setting to use the new designate::keystone::authtoken class to
do the configuration for the api.

Change-Id: Ib2a1d20d4e29353fc139835ce1c010a801506b9c
Closes-Bug: #1604463
2016-08-10 00:04:15 -03:00