Commit Graph

25 Commits

Author SHA1 Message Date
Takashi Kajinami da507fc631 Refactor resource dependencies
This refactors resource dependencies to improve the following points.

 - Avoid unnecessary dependencies across services. For example aodh
   service does not require cinder db.

 - Restart only api service when config files like paste.ini, which
   are used only be api service is changed.

Change-Id: If2cbbc392bd54d906c7a4f51f1c7cfca69463aaf
2024-03-01 13:12:01 +09:00
Takashi Kajinami 5518d822e6 authtoken: Make password required
The password parameter is not really optional. This makes it
a required parameter to give more sensible validation error.

Change-Id: I879e4c6cb072892a2e143702c876b22dc9ae526e
2023-07-12 21:59:21 +09:00
Takashi Kajinami dd44ce031e Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: Ica6edbc7077c0bb2021cc737f44f3ced84cd5f83
2023-03-01 16:49:01 +09:00
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 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
Tobias Urdin b7f73b35c5 Convert all class usage to relative names
Change-Id: Iae69aff79cc231336b14d65305fff9c64cbd27e0
2019-12-08 23:04:25 +01:00
ZhongShengping d4c44694e5 Remove deprecated pki related options
The deprecated pki related options check_revocations_for_cached and
hash_algorithms option has been removed.

Change-Id: I99d92bbc92f5801fae4332b3daf546be2e7c196d
2019-08-15 11:51:37 +08: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
Tobias Urdin 51b04b9ce9 Remove auth_uri
Change-Id: If3ab8b82cf2249ce0eb359227b1432b1797b07be
2018-11-30 13:55:49 +01: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
zhubingbing 732a222103 neat: missing : in $::os_service_default
Change-Id: I63433bd62a7d0e50f80f5e89795f2fcad1033305
2018-05-11 14:02:39 +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 32eac5b22e Remove deprecated keystone authtoken revocation_cache_time option
Change-Id: I47ec15a2331a540badfa2c27ebc9d409867e498c
2018-03-27 10:33:21 +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
ZhongShengping b103dd458e Remove deprecated keystone authtoken signing_dir option
Change-Id: Ia76c4500e324b3c59e732e922e2532f32d0df1d0
2017-07-07 09:58:40 +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
ZhongShengping 1e95f32a6f Add hooks for external install & svc management
This adds defined anchor points for external modules to hook into the
software install, config and service dependency chain.  This allows
external modules to manage software installation (virtualenv,
containers, etc) and service management (pacemaker) without needing rely
on resources that may change or be renamed.

Change-Id: If9fa188b7dca47e6724a737d66e34c0c85668c36
2016-12-01 08:44:02 +08:00
Iury Gregory Melo Ferreira 05d0fc5ce4 Remove old authtoken options
Since we are in ocata lets remove all old parameters in api
to configure the keystone_authtoken section

Change-Id: Idd1bc92b6a68e93911042784d9edb366f85547a6
2016-11-05 16:20:37 -03: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