Commit Graph

41 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
Rajesh Tailor d425d2ed73 Fix typos in parameter descriptions and tests
Change-Id: I23cf4500b147770f0863a2e73c94f4bbff22d37f
2022-06-17 18:40:22 +05:30
Takashi Kajinami 19149dda5d Simplify definition to ensure keystone resource creation
Use the whole resource type instead of its individual resources, to
rely on interface instead of implementation of the dependent module.

Change-Id: If969163b4b1df813341569ca7c626a35253cefd5
2022-02-07 00:03:40 +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 e1cba4a002 Use consistent spelling, OpenStack, instead of Openstack
Change-Id: I4b9b3143de783c70bf8019875980a31825b3004f
2021-11-18 14:31:00 +00: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
Takashi Kajinami a5d78457d6 Fix leftovers about removed v1 API
Designate has already removed its v1 API, so we should deprecate
and remove all parameters for it.
This change also fixes the outdated default value for keystone endpoint
url, which still includes '/v1'.

Change-Id: I645af15a9825ad000fc951d6c8334e715e645c8a
2020-12-15 20:26:36 +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
ZhongShengping e18521569a Cleanup documentation
Make sure documentation is the same and follow
the standard which we are trying to enforce on
all modules.

Change-Id: I47f55d8e608509ee9f42a00edb7acfe59ca87983
2018-12-13 17:10:01 +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
Jenkins f395489471 Merge "Add user & user_role parameters in auth manifest and related tests" 2016-06-23 10:12:48 +00:00
Venkata Mahesh Jonnalagadda 656e08cb98 Add user & user_role parameters in auth manifest and related tests
Add configure_user & configure_user_role parameters in auth manifest
and so that users can disable if required. By default, these are
set to true.

And add related tests for disable user & user_role params.

Change-Id: Ic45e636d2b8e6b8c2684389d1d4836900d7e8911
Closes-Bug: #1587859
2016-06-16 09:49:52 -04:00
Venkata Mahesh Jonnalagadda d645b1ed88 Provide default service_name for keystone endpoint
This change updates the designate::keystone::auth class to include a default
service_name of 'designate' so that if a user changes the auth_name, the
service is still created as being related to 'designate'. This improves the
user experiance when they want to customize the usernames for services.

Closes-bug: #1590040

Change-Id: I58658de33ba90d2f8d6fbc1aaa0099f1ad024aa6
2016-06-10 07:20:54 -04:00
Iury Gregory Melo Ferreira 2dacd96def Remove deprecated keystone::auth options
Change-Id: I6737d69bb886d6a27ecb91b8b2ef7e09dddfd49f
2016-06-03 01:49:42 -03:00
Sebastien Badia 3f4a5903f4 keystone/auth: make service description configurable
This commit adds the service description as a class parameter in order to allow
users to update from a previous version if the service description is changed
(incorrectly spelled or wrong description)

Closes-Bug: #1468407
Change-Id: Id7bb7c9a26c8e4938ede0f3963303a50668b6e99
2015-06-30 00:01:26 +02:00
Mathieu Gagné 7f053f0846 Introduce public_url, internal_url and admin_url
This change deprecates the following parameters:
- version (replaced by public/internal/admin_url)
- port (replaced by public/internal/admin_url)
- public_protocol (replaced by public_url)
- public_address (replaced by public_url)
- internal_protocol (replaced by internal_url)
- internal_address (replaced by internal_url)
- admin_protocol (replaced by admin_url)
- admin_address (replaced by admin_url)

Add deprecation warnings if any of those values are provided
while maintaining full backward compatibility.

Change-Id: Iae590b71d5447d19e5e2e64daed49237156e0991
Closes-bug: #1274979
2015-06-26 14:28:02 -04:00
Rico Lin 3aba7229b2 Adds ability to override service name for service catalog
Instead of forcing the name of the service in the service catalog to
match auth_name, this allows the ability to explicitly set the service
name, spearately from auth_name.
If service_name is not specified, it's value defaults to the value
of auth_name (which maintains the current behavior.)

Change-Id: Ibd44ddf46478a19f92c98e721a3fa04804d0d40d
Closes-bug: #1359755
2015-03-23 10:16:29 +08:00
Clayton O'Neill c0650b1d7b Add puppet-lint param docs check
This ensures that all parameters are documented and includes fixes to
existing undocumented parameters or incorrectly formatted docs.

Change-Id: I14c093214e45ad3b14123e16ee8ccf309ba45978
2015-02-17 16:03:46 +00:00
Sebastien Badia 63fd5ad01e Re-factorise Keystone resources management
Re-factorise the code of Keystone resources management with backward
compatibility since we don't modify the unit tests.

Change-Id: I83e858765c35c81a381ec6ad407b9ce55305ddcb
Implements: blueprint common-openstack-identity-resource
2014-11-27 01:06:55 +01:00
Sebastien Badia d229b0f2bd Introduce Debian OS support, various fixes
* Fix designate package name require, openstack-designate is the final
  package name, designate-common name is override by params class.
* Remove designate-common dependency on central/sink/api services.
* Fix designate::api/keystone_user default user.

Change-Id: I441565d39ba5d425c6b93db071237a85f1eb4b1f
2014-11-02 17:42:04 +01:00
Xingchao Yu 82fc880757 Add keystone::auth 2013-09-26 09:39:20 +08:00