Commit Graph

201 Commits

Author SHA1 Message Date
Takashi Kajinami d9b1b5ad8e Bump hacking
hacking 3.0.x is too old.

Change-Id: I21778b05eea73ac3c6b5a83727e8636d0bf4752e
2024-01-27 22:30:46 +09:00
Tobias Urdin 115a8282f6 Use new get_rpc_client API from oslo.messaging
Use the new API that is consistent with
the existing API instead of instantiating the client
class directly.

This was introduced in release 14.1.0 here [1] and
added into oslo.messaging here [2]

[1] https://review.opendev.org/c/openstack/requirements/+/869340
[2] https://review.opendev.org/c/openstack/oslo.messaging/+/862419

Change-Id: I515004d742ebb85034468a2901a3a887cd2b0480
2023-01-19 20:39:02 +00:00
Takashi Kajinami 6d34865522 Remove six
Python 2 is no longer supported, thus usage of six can be removed.

Also, This removes B314 test from documentation because its actual
implementation was already removed[1].

[1] 9dbeefb55e

Change-Id: Ib01714e6462470dd5c3f6f06b52a3afeff573696
2022-10-28 14:02:00 +02:00
Takashi Kajinami ffa7b113f9 Add audit middleware options to barbican.conf
The default api-paste.ini file maintained in the Barbican repo provides
a pipeline with the audit middleware. This change adds the option for
the middleware to the barbican.conf file generated by generator, so
that users can find the related options easily.

Depends-on: https://review.opendev.org/804316
Change-Id: I9f3ee9968f7558498c6fdb31d9103750ec248446
2022-09-26 16:15:27 +00:00
Grzegorz Grasza 0f74877c77 Implement microversions, bring back secret consumers API
The implementation follows nova and implements an is_supported
function, that can be used in controllers, to check the requested
version and take different code paths depending on the result.

This reverts commit 7b14d983e0.

Change-Id: I5651a69f93288ac1dfdc1c8b1ad0f904e370c127
2022-05-04 15:02:32 +00:00
Ghanshyam Mann d6c01bba59 [goal] Deprecate the JSON formatted policy file
As per the community goal of migrating the policy file
the format from JSON to YAML[1], we need to do two things:

1. Change the default value of '[oslo_policy] policy_file''
config option from 'policy.json' to 'policy.yaml' with
upgrade checks.

2. Deprecate the JSON formatted policy file on the project side
via warning in doc and releasenotes.

Also replace policy.json to policy.yaml ref from doc and tests.

[1]https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html

Change-Id: Idaa65dac1c97324d671b9a07a2f3d51bb128e8c2
2021-02-02 08:36:59 -06:00
Raildo Mascena de Sousa Filho 75b19cad76 Update requirements for secure RBAC work
This commit updates the versions of oslo.policy, keystonemiddleware, and
oslo.log to new versions that aid in implementing secure RBAC through
default roles and scope checking.

These dependencies will be used in a subsequent patch set to update
Barbican's default policies.

Change-Id: I5aa1ab349e6f6a65754b508e9181ef1f9a870ea3
2020-12-11 16:21:52 -03:00
Hervé Beraud 6f160e27f6 Cap jsonschema 3.2.0 as the minimal version
Previous versions of jsonschema (<3.2.0) doesn't support python 3.8 [1].
Python 3.8 is part of the victoria supported runtimes [2] so we now force
to use jsonschema version 3.2.0 to avoid issues, remove ambiguity and ensure
that everything works with python 3 in general.

[1] https://github.com/Julian/jsonschema/pull/627
[2] https://governance.openstack.org/tc/reference/runtimes/victoria.html#python-runtimes-for-victoria

Change-Id: I7efbf08e81177af3853f53cf26018094fe59f955
2020-05-26 21:46:01 +02:00
Andreas Jaeger e2f37f5e63 Remove install_cmd,lower-constraints
Move constraints into deps, remove install_cmd.

The default install_cmd is just fine to use.

Increase constraints since they are now finally tested, see
http://lists.openstack.org/pipermail/openstack-discuss/2020-April/014237.html
showed that they are broken. The lower-constraints job is optional,
remove it.

Change-Id: Ieda45ef624e0cd4e60216b740cc04aff0783e863
2020-04-30 15:22:29 +02:00
Andreas Jaeger 02b82e5a4c Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg
- Update classifiers
- Use newer openstackdocstheme and Sphinx versions
- Cleanup */source/conf.py to remove now obsolete content.
- Remove Babel from requirements, it's not needed for running.
- Sync docs deps in tox.ini

Change-Id: Ie1fccdc777be978075e4689eda6c62578bd463e4
2020-04-29 19:10:48 +02:00
Douglas Mendizábal a5c1ae6ace Update Castellan minimum version
Barbican added support for AppRole in the Vault backend
for Stein.  It requires at least version 1.2.1 to work.

Change-Id: I40f2a4932eaafa61fcdc3884c0d7e3f3470788c2
Story: 2005359
Task: 30329
2019-08-06 07:43:59 +00:00
Andreas Jaeger 80fc5511b8 Block bandit 1.6.0
Bandit 1.6.0 broke the -x command, block this release so that
pep8 tests pass again.

Sync with global requirements file to pass tests:
* update sphinx
* update jsonschema

Change-Id: If78421403ae188713820feb2071a8a889d9ccd7b
2019-05-13 15:37:57 +02:00
whoami-rajat d3280f18f3 Add barbican-status upgrade check command framework
This adds basic framework for barbican-status upgrade
check commands. For now it has only "check_placeholder"
check implemented.
Real checks can be added to this tool in the future.

Change-Id: I40bfcc0c8755e814c1b63fdf323c32fda967968e
Story: 2003657
Task: 26120
2019-01-15 06:16:53 +00:00
Nam Nguyen Hoai ef9a6f3867 Initial OVO for Barbican
Creating a initial patch set for OVO
in Barbican.

Partial Implements: blueprint rolling-upgrade

Change-Id: I13ae209bdafd8ed857925650fbe13b3b9ca78847
2018-06-05 13:21:18 +07:00
Ade Lee 54a11c6391 Remove pycrypto dependency
Change-Id: I3e34538872531409e5ced73c00828d864f7c8c67
2018-05-17 11:57:01 -04:00
Ade Lee 89cb777941 Castellan based secret store
This will provide a Castellan based secret store, which will
allow secret stores which have a castellan backend to be used
behind barbican.  The initial example of this is the Vault
backend.

Unit tests have been added.  In local tests,
most of the functional tests do in fact pass with a local Vault
backend, though this will need to be demonstrated with a later
review which establishes a Vault based gate.

Change-Id: Ib30fb79304014592bfc37938839d60a4c10c244d
2018-05-14 01:37:48 -04:00
Jeremy Liu 4051160c9b Add os-testr as test dependency
This is necessary for running functional tests.
Also fix unmatched requirements following [1][2].

[1] http://lists.openstack.org/pipermail/openstack-dev/2018-April/129056.html
[2] https://review.openstack.org/#/c/558610/

Change-Id: I67de85cf24d40ef5066e0a4668071e890eb65087
Closes-bug: #1762646
2018-04-11 18:29:56 +08:00
OpenStack Proposal Bot 835a48dd9d Updated from global requirements
Change-Id: If31f7a41686205c5202c533e5bae1ad6cbcb8e02
2018-03-23 03:56:30 +00:00
OpenStack Proposal Bot 2d58f23543 Updated from global requirements
Change-Id: I4c80c758983a60d237b93670dbcfc347640119a2
2018-03-13 06:47:20 +00:00
OpenStack Proposal Bot 10ef7adcff Updated from global requirements
Change-Id: Ice3881f6be7ff7d328c716b2cfdd8bab48689a3e
2018-01-17 20:28:07 +00:00
OpenStack Proposal Bot 6647eb9276 Updated from global requirements
Change-Id: I6ad527a1e5308da1eecbe35aedc0e25266678be3
2017-12-10 06:57:00 +00:00
OpenStack Proposal Bot f00254cb09 Updated from global requirements
Change-Id: I3d0907321507dc30cb4c502aebe7dcd501d1ff94
2017-11-14 03:54:11 +00:00
OpenStack Proposal Bot 3538f51ef7 Updated from global requirements
Change-Id: I50a1f78ad4ba85815cb8916ccd14b6b38c838509
2017-11-09 13:03:33 +00:00
OpenStack Proposal Bot 94693c7545 Updated from global requirements
Change-Id: I3460c7eae52ca7c3040759be95ba4c85cefa4aba
2017-10-26 05:21:33 +00:00
OpenStack Proposal Bot 80f17e8de0 Updated from global requirements
Change-Id: Ib464e3b5324a60d690ef805b47ddf4a9d24143a2
2017-10-05 13:39:08 +00:00
OpenStack Proposal Bot 4b3f66535e Updated from global requirements
Change-Id: I4162774392873fd379a2e9004753382d33323d3a
2017-09-16 23:10:08 +00:00
OpenStack Proposal Bot f3bec31d42 Updated from global requirements
Change-Id: I81880d786e75b465a14c505f0df9c528576b7bf7
2017-09-12 21:46:48 +00:00
OpenStack Proposal Bot 2a4732af4d Updated from global requirements
Change-Id: I92cf74109c3af636cd6a3868aa91e0f8a33cb1a1
2017-09-12 13:58:59 +00:00
OpenStack Proposal Bot 5c615d187b Updated from global requirements
Change-Id: Ic0e54a83e8383655fb4a84dd21a608f4400093a3
2017-08-26 11:30:47 +00:00
OpenStack Proposal Bot d36cca91df Updated from global requirements
Change-Id: I3e9b3a5dd0ad0d33fd0de1346c03da436192ea43
2017-07-27 19:07:39 +00:00
OpenStack Proposal Bot 4a23687adc Updated from global requirements
Change-Id: Id634cfff5af2b3d76b578371f8c7407fc8cc966a
2017-07-18 01:44:19 +00:00
OpenStack Proposal Bot f79a2b2a0b Updated from global requirements
Change-Id: I73accbeb60da194c454d96a646beb960d0574924
2017-06-19 21:00:51 +00:00
OpenStack Proposal Bot bc963d55aa Updated from global requirements
Change-Id: I7fa5bb31eb5fca18f58ba8e85e7915cca53e685c
2017-06-10 21:35:15 +00:00
OpenStack Proposal Bot 6bd3ff3558 Updated from global requirements
Change-Id: I61c73160ced945a3637e4dd8d64b305f7e5b660d
2017-06-06 05:59:55 +00:00
OpenStack Proposal Bot f661f0e177 Updated from global requirements
Change-Id: Ifaf7c3d1a9a59c28eadef42d450d6a26cdcd70cb
2017-05-26 17:17:27 +00:00
OpenStack Proposal Bot e7a58c7486 Updated from global requirements
Change-Id: I5cdf05ecb9ad9ea87a7920ca941adfbf247ea673
2017-05-24 03:34:29 +00:00
OpenStack Proposal Bot 68aacd5310 Updated from global requirements
Change-Id: Icbe08ddd462542acaeccf8cc6b6e9eb82aa45536
2017-05-23 11:47:59 +00:00
OpenStack Proposal Bot 475b6e0d6a Updated from global requirements
Change-Id: Ie49bba95f21a2a067f2f14808f107de54c5d1a20
2017-05-17 13:37:28 +00:00
OpenStack Proposal Bot c6e289e0e7 Updated from global requirements
Change-Id: Iff196c0cbb1986ee6e18b059a4841516111bba1d
2017-05-01 13:17:09 +00:00
Jeremy Liu 314a204600 Use oslo.db create_engine instead of SQLAlchemy
Change-Id: I327c40bcebe8d40cd515038dcf59a1926486f45e
Closes-Bug: #1589673
2017-04-28 03:13:28 +00:00
OpenStack Proposal Bot 9688010310 Updated from global requirements
Change-Id: Ia77b000d591840393bc674475e5025909e7f1d3f
2017-04-12 04:09:53 +00:00
OpenStack Proposal Bot 366d32f409 Updated from global requirements
Change-Id: I6417d3e14988626c6f02b1622f597c99a91a9cf8
2017-04-07 06:02:35 +00:00
OpenStack Proposal Bot 09b52194d5 Updated from global requirements
Change-Id: Ibd5881b85319ee80697c9a7cc31fe2ef043feb3e
2017-04-05 21:00:01 +00:00
OpenStack Proposal Bot 65c017cbeb Updated from global requirements
Change-Id: I8ba0289c160ada618383b65a53b5cd1fabfe54a6
2017-04-01 15:22:06 +00:00
OpenStack Proposal Bot 7d8074fddb Updated from global requirements
Change-Id: I77b1bd0650779ecffe2e2b7b48170792afe7cce8
2017-03-29 02:37:01 +00:00
OpenStack Proposal Bot ebded8e53b Updated from global requirements
Change-Id: I4f8928df09b548490aa4c83c58a35df07a80a3c5
2017-03-16 12:24:52 +00:00
OpenStack Proposal Bot 4cf69189b7 Updated from global requirements
Change-Id: I6477e2866d7f03f26e34feaab563c1379366bf89
2017-03-13 19:29:23 +00:00
OpenStack Proposal Bot 9b117db44a Updated from global requirements
Change-Id: I733aba7882f7ef7c966c26ee9b0f8a3c49249355
2017-03-06 01:07:50 +00:00
OpenStack Proposal Bot c5a4462b5f Updated from global requirements
Change-Id: I7b62231bd862406eae40db50abe02b3713c9e228
2017-02-27 10:53:32 +00:00
OpenStack Proposal Bot 9a5cdd02ad Updated from global requirements
Change-Id: I2231d3412942094663742c8c5f967e7bed45ca26
2017-02-10 09:38:26 +00:00