3005 Commits

Author SHA1 Message Date
OpenStack Proposal Bot
4e5f526671 Updated from global requirements
Change-Id: I56c4d754864ba28479d4fc213720a11ef6217837
2017-05-17 03:46:08 +00:00
Jenkins
6eca39d353 Merge "Sub pycrypto with cryptography in simple_crypto" 2017-05-16 14:30:12 +00:00
Jenkins
cff0712d7f Merge "Add date filter functional tests" 2017-05-16 14:26:50 +00:00
OpenStack Proposal Bot
ae1019c878 Updated from global requirements
Change-Id: I20243dea573900ca994741b19418549d39432711
2017-05-15 00:41:57 +00:00
Juan Antonio Osorio Robles
bfa398f883 Remove python-requests and let it be installed via rpm
There is a bug [1] where installing requests via pip breaks the rpm
installation. So we remove it manually to address the dogtag gate
breakage.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1352554

Change-Id: I9cab4c579e6aab381394dc5ce1246906e0ac2a54
2017-05-12 14:33:24 -04:00
Kaitlin Farr
6dbbe11bec Add date filter functional tests
Add tests to ensure the date filter is working correctly.

Change-Id: Ifbbda5e8fd8616de778aae470b49002c83ac1140
2017-05-10 21:51:02 +00:00
Kaitlin Farr
76563b5608 Clean up a stray secret in the functional tests
The order_delete smoke test deleted the order, but not the secret.

Change-Id: I1ceb6ec025412af54ba21d78922063d12f188eb3
2017-05-10 14:13:05 -04:00
Jenkins
ee3675cfb1 Merge "Making iv generation configurable for pkcs11 plugin" 2017-05-05 20:08:11 +00:00
Jenkins
3535373352 Merge "Replace pycrypto with cryptography in translations" 2017-05-05 19:26:58 +00:00
Fernando Diaz
3f6c24a4ef Remove Certificate Orders and CAs from Documentation
Removes the documentation and links to domcumentation for
Certificate Orders and CAs.

Change-Id: I4cd3c21ac4f82eeb76d700426374cec898be4125
2017-05-04 05:02:23 +00:00
Arun Kant
a29e120965 Making iv generation configurable for pkcs11 plugin
Added configuration flag to enable or disable iv generation as part of
pkcs11 plugin logic.

In setup where HSM do not have FIPS enabled, in that case pkcs11 plugin
is expected to provide iv (initialization vector) for encrypt call. In
setup where HSM with FIPS enabled, HSM is going to generate iv and do
not need it from plugin side. So logic is updated to generate iv and
read returned data accordignly.

By default, flag is kept false to match existing behavior.

Closes-Bug: #1684997

Change-Id: Ic18d86861a3e51a4370f14c8f7eb39b3f30db2dc
2017-05-02 16:39:55 +00:00
Jenkins
23d064f134 Merge "Add 'rm -f .testrepository/times.dbm' command in testenv" 2017-05-02 09:20:28 +00:00
Michael Johnson
e0af278f9e Fix barbican devstack plugin for devstack systemd
Devstack moved to using systemd instead of screen by default[1],
but the barbican devstack plugin starts uwsgi without a full path.
This patch fixes that.

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

Change-Id: Ib12cc9ac5b7f2acbb94ccca1baf4200c47fc275f
2017-05-01 18:01:22 -07:00
Rohan Arora
64d3da6307 Sub pycrypto with cryptography in simple_crypto
pycrypto is no longer maintained [1]. This patch rewrites functions
using pycrypto and replaces them with the cryptography equivalent for
the simple_crypto plugin

[1] http://lists.openstack.org/pipermail/openstack-dev/2017-March/113568

Change-Id: I72b7148d9d863468dc71353c50f854557b6c87e4
2017-05-01 10:03:01 -05:00
OpenStack Proposal Bot
c6e289e0e7 Updated from global requirements
Change-Id: Iff196c0cbb1986ee6e18b059a4841516111bba1d
2017-05-01 13:17:09 +00:00
Nicholas Jones
91ec21d21e Replace pycrypto with cryptography in translations
pycrypto is no longer maintained [1]. This patch rewrites functions
using pycrypto and replaces them with the cryptography equivalent

[1] http://lists.openstack.org/pipermail/openstack-dev/2017-March/113568

Change-Id: Iff2ddccf0ff588599576a476fa3bace4715e2ea8
2017-05-01 08:09:22 -05:00
rajat29
2e655d90c2 Add 'rm -f .testrepository/times.dbm' command in testenv
Running py2* post py3* tests results in error. Add
'rm -f .testrepository/times.dbm' command in testenv to
resolve this.
Closes-Bug: #1565928

Change-Id: I876d2169fa6e3e1239056e891ad49c530d3a0c69
2017-05-01 10:43:55 +00:00
Jenkins
bd5b8e32f8 Merge "Set access_policy for messaging's dispatcher" 2017-04-29 22:27:25 +00:00
Jenkins
f60dcc9a4e Merge "Sub pycrypto with cryptography test_cert_resources" 2017-04-29 22:12:07 +00:00
Jenkins
7f9839707a Merge "Fixes for Running Functional Tests with Python 3.5" 2017-04-28 21:40:32 +00:00
Jenkins
302ea6ab5c Merge "Replace pycrypto with cryptography in test_rsa" 2017-04-28 16:27:07 +00:00
Jenkins
bab524532a Merge "Replace pycrypto with cryptography in snakeoil" 2017-04-28 16:27:01 +00:00
Jenkins
c4d8c3ef43 Merge "Use oslo.db create_engine instead of SQLAlchemy" 2017-04-28 16:26:48 +00:00
shubhendu
fac2c28ba0 Set access_policy for messaging's dispatcher
oslo.messaging allow dispatcher to restrict endpoint methods
since 5.11.0 in d3a8f280ebd6fd12865fd20c4d772774e39aefa2, set with
DefaultRPCAccessPolicy to fix FutureWarning like:

FutureWarning: The access_policy argument is changing its default
value to <class 'oslo_messaging.rpc.dispatcher.DefaultRPCAccessPolicy'>
in version '?', please update the code to explicitly set None as the
value: access_policy defaults to LegacyRPCAccessPolicy which exposes
private methods. Explicitly set access_policy to DefaultRPCAccessPolicy
or ExplicitRPCAccessPolicy.

Change-Id: I194187ec697ac0e0ecbc9fa98a1f8c0a6229a8ee
2017-04-28 20:17:41 +05:30
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
Dave McCowan
2909fda016 Fixes for Running Functional Tests with Python 3.5
Fixing the standard things when making code py27/p35 compatible.

Also, removing the logging of the passed value of an HTTP
header.  If the value could not be encoded to log, then there
are Tracebacks that showed up with Python 3.5.  Since the value
can be passed by a user, it should either be scrubbed before logging
or not logged, to prevent possible content injection in the log
stream.

Change-Id: I8df1553acb6c7e5f75a1b50f024dc032ca982a93
2017-04-27 13:06:14 -04:00
Jenkins
c2230f98b8 Merge "Add missing dogtag configurations from devstack plugin script" 2017-04-27 15:14:10 +00:00
Jenkins
4a4ee072f7 Merge "Change parent class for ListingSecretsTestCase" 2017-04-27 11:22:33 +00:00
Juan Antonio Osorio Robles
8a220595e6 Add missing dogtag configurations from devstack plugin script
We were relying on the dogtag configuration from the default
barbican.conf file. However, we have now moved away from using that. So
these configurations were lost. This enables them again setting them up
in the devstack script, like we should have done initially.

Change-Id: I0b91fac237af567f3afe87b6010680a3382236cb
2017-04-27 13:47:36 +03:00
Kaitlin Farr
5de09d5bf6 Change parent class for ListingSecretsTestCase
If ListingSecretsTestCase's parent class is SecretsTestCase, all
of the tests in SecretsTestCase are also run again, which is not
the intended behavior.

Also cleans up an unused method in SecretsTestCase.

Change-Id: Ia936577f6ef5485a45db0755ebe9dfd2bdabfdfe
2017-04-25 13:13:04 -04:00
Jenkins
66df51ecd5 Merge "Fix test cases expect Ubuntu specific assertion messages" 2017-04-24 18:45:54 +00:00
Nicholas Jones
8b9d901dc4 Replace pycrypto with cryptography in test_rsa
pycrypto is no longer maintained [1]. This patch rewrites functions using
pycrypto and replaces them with the cryptography equivalent

[1] http://lists.openstack.org/pipermail/openstack-dev/2017-March/113568

Change-Id: Ia7b11fcafa1b8eb5d101966a0a8445bced96b223
2017-04-21 10:28:38 -05:00
Rohan Arora
eef0d041f3 Sub pycrypto with cryptography test_cert_resources
pycrypto is no longer maintained [1]. This patch rewrites functions
using pycrypto and replaces them with the cryptography equivalent for
the test_cert_resources.py file

[1] http://lists.openstack.org/pipermail/openstack-dev/2017-March/113568

Change-Id: I345c411abd2cf405cfc0a9163b4b60daca8d66c5
2017-04-20 16:21:06 -05:00
Nicholas Jones
a3dea80700 Replace pycrypto with cryptography in snakeoil
pycrypto is no longer maintained [1]. This patch rewrites functions using
pycrypto and replaces them with the cryptography equivalent

[1] http://lists.openstack.org/pipermail/openstack-dev/2017-March/113568

Change-Id: Icf89aa75ab701cca5b903345b6349b80c394a6c9
2017-04-20 08:55:43 -05:00
Colleen Murphy
07961c89a8 Update SUSE distro information in install guide
SUSE tests their OpenStack packages on openSUSE Leap 42.2 and SLES 12
SP2, so this patch updates the install guide to address those newer
releases.

Change-Id: I9b823900a1562485b8d0fd96c4c1a8c0b248f13f
2017-04-19 20:04:57 +00:00
Jeremy Liu
9ac0a0910e Fix gate devstack
A recent patch in devstack [1] forces the use of path access instead
of port for Keystone authentication, leading to connection error when
launching the devstack.

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

Change-Id: I47b8035782bf27ee47227063381bc7dc041944b3
2017-04-19 22:10:58 +08:00
Dave McCowan
f4fc902fdb Fix test cases expect Ubuntu specific assertion messages
Ubuntu and CentOS throw different exception messages for
SQL contraint checking.  The test cases can only assume
assertion messages created by Barbican.

Change-Id: Ic1ef76acbe178cfd5c6f2d3ab9ff97c652a3e604
Closes-bug: #1681988
2017-04-18 09:01:19 -04:00
Jenkins
42a2ec16a4 Merge "Updated from global requirements" 2017-04-13 05:21:04 +00:00
OpenStack Proposal Bot
9688010310 Updated from global requirements
Change-Id: Ia77b000d591840393bc674475e5025909e7f1d3f
2017-04-12 04:09:53 +00:00
Jeremy Liu
28eedcb04c Update .gitignore to ignore barbican.conf
etc/barbican/barbican.conf is generated when running tests with tox,
it's better to let repo ignore it.

Change-Id: I1f86cfd0bb20c678db62256203c48229a6380a6c
2017-04-12 10:26:34 +08:00
Jenkins
2948a004d6 Merge "Remove log translation related check" 5.0.0.0b1 2017-04-07 17:42:18 +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
Jenkins
e4ff8fe811 Merge "Debug with barbican-api" 2017-04-05 15:12:18 +00:00
Jenkins
3cef467ac7 Merge "Add sem-ver flag so pbr generates correct version" 2017-04-05 15:12:05 +00:00
Jenkins
0750dd884f Merge "Initial commit for Barbican api-ref" 2017-04-05 13:35:01 +00:00
Jenkins
455d6f88b7 Merge "Updates to Devstack Variables" 2017-04-05 13:34:50 +00:00
Jenkins
7991f8b485 Merge "Use oslo-config-generator to generate barbican.conf.sample" 2017-04-05 12:24:14 +00:00
Emilien Macchi
60294fdc07 Add sem-ver flag so pbr generates correct version
tl;dr : without this Ocata and Pike have the same version causing
packaging issues.


https://docs.openstack.org/developer/pbr/#version

Because projects don't push a tag before milestone 1 (pike-1 here),
downstream packages are still building packages by using the version
from Ocata and it causes problems to distros because they can't test
the upgrades from Ocata to Pike.

Bumping the semver will allow us to test packages upgrades.
Note: When your version is X.Y.Z, api-break will bump X, and feature
will bump Y. In this patch, we bump X because this is the way you
bump tags over releases.


Change-Id: Ica0e12b5e508875db038a3ede772138d42e1b73b
Sem-Ver: api-break
2017-04-05 11:38:47 +00:00
Thomas Bechtold
06b76aa6e8 Use oslo-config-generator to generate barbican.conf.sample
Currently etc/barbican/barbican.conf is maintained by hand and can not
be regenerated based on the config settings defined in the code.
A common pattern for OpenStack projects is to use oslo-config-generator
for that task.

Co-Authored-By: Randall Burt <randall.burt@rackspace.com>
Depends-On: I90870dcb49cd96f6bf0fe353fa6e779ffd87a5af
Closes-Bug: #1584789
Change-Id: I5f3dcd2fc982f1178ef7dd662c24d3166f91b266
2017-04-05 08:02:35 +02:00