2950 Commits

Author SHA1 Message Date
a3bcbc854e Update reno for stable/queens
Change-Id: Ic17c24a104ac4375353de3f78acc648946e22ef4
2018-03-08 01:13:47 +00:00
Nam Nguyen Hoai
af4637bcf2 Updating time for functional tests
Currenlty, some gates is being failed with logs like this

"""
b'Response: {"description": "Provided object does not match schema
\'Secret\': \'expiration\' is before current time.
Invalid property: \'expiration\'", "title": "Bad Request", "code": 400}'
"""

So it is necessary to update the time to create secrets successfully.

Change-Id: I59707cdf21f6843dbd7db30978e21cff72756e67
2018-03-08 13:38:23 +07:00
Zuul
3799d7cacd Merge "Imported Translations from Zanata" 2018-02-27 07:48:34 +00:00
Zuul
84ebdbb3a1 Merge "Zuul: Remove project name" 2018-02-22 20:23:51 +00:00
Zuul
c3fd363220 Merge "Fix the grenade-devstack-barbican gate" 2018-02-22 16:35:57 +00:00
Kien Nguyen
a29f28245c Fix the grenade-devstack-barbican gate
This patch set is to update the command to
start the barbican-svc service after upgrade.

Co-Authored-By: Nam Nguyen Hoai <namnh@vn.fujitsu.com>

Change-Id: I237ef2df09b9fd60bc8b6eeca9ee36ce79052530
2018-02-23 13:07:47 +07:00
OpenStack Proposal Bot
0a6a25bb82 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I358a432957a820566569cfe27f7e13d1fa096392
2018-02-14 07:27:54 +00:00
Zuul
5b525f6b0a Merge "Update virtual_environment for genconfig and genpolicy" 2018-02-12 17:31:51 +00:00
Zuul
4cb1431557 Merge "Adding #nosec for pycrypto use" 2018-02-12 17:31:49 +00:00
Zuul
b4d47c851e Merge "Update link address" 2018-02-12 17:31:47 +00:00
Zuul
2d2ca5fe23 Merge "Authorites spelling error" 2018-02-12 17:31:46 +00:00
Zuul
01b3b98eec Merge "Add sample config and policy to documentation" 2018-02-12 14:27:04 +00:00
Zuul
498c8b1907 Merge "Updated from global requirements" 2018-02-12 14:24:38 +00:00
OpenStack Proposal Bot
bb9da32f0c Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I192ec6e711bb405dce6a62267d4c4d7e789b28ae
2018-02-10 06:37:14 +00:00
Zuul
482fa891d0 Merge "Correct link address in doc" 2018-02-09 16:51:52 +00:00
Zuul
24dd65f1ef Merge "Fix coverage job" 2018-02-09 15:57:03 +00:00
Zuul
a58b58bd57 Merge "Update doc to match our in-repo configuration file" 2018-02-09 15:30:01 +00:00
Zuul
4a1812ffe9 Merge "[DOC] Install client package before verification" 2018-02-09 15:30:00 +00:00
Jeremy Liu
73420137a6 Use default policy in code
Delete policy.json from repo since we can use policies registered
in code.

We can also change default policy rules through below steps:

  - generate policy.yaml and copy to /etc/barbican
  - configure `policy_file=policy.yaml` in `oslo_policy` section
  - uncomment rules in policy.yaml and make changes as we desire
  - restart barbican api service
  - test whether new rules take effect on corresponding API

Change-Id: Ia64eac1eb4e30457b323c6ab99d26d3d40c28060
2018-02-09 08:16:43 +00:00
Jeremy Liu
3d86d326f8 Update doc to match our in-repo configuration file
Change-Id: Ia43dd80164d91aa8bd71a215fd8aa4a8e5a9c77c
2018-02-09 08:16:31 +00:00
Jeremy Liu
ed0bb3f5fb Add sample config and policy to documentation
Change-Id: Ie21459821dbe654d5e097494efbfbd647c12044e
2018-02-09 08:16:03 +00:00
Jeremy Liu
198a08d35f Correct link address in doc
Change-Id: I2726b3509f0b774862077367e8c601b648385471
Closes-bug: #1746161
2018-02-09 08:15:46 +00:00
Jeremy Liu
c93fc17317 Fix coverage job
diff-cover compares HEAD with origin/master branch by default.
Zuul uses git operations to mirror the local prepared git repos
to the remote nodes. And all branch names are without 'origin',
so need to specify the branch name for coverage job.

Change-Id: Iaba21de10f6cf705e110cd60cb004502bb37515d
2018-02-09 08:15:22 +00:00
Jeremy Liu
70b6269ab2 [DOC] Install client package before verification
Change-Id: I18b5924b7381ebc31cbf98f83227c4abc3df024b
Closes-bug: #1748026
2018-02-09 08:15:06 +00:00
Gage Hugo
48f50a0868 Make grenade-devstack-barbican job nonvoting
While this issue is being resolved, have the job become nonvoting
for now in order to not hold up any changes that may need to get
merged.

Change-Id: Ia4f3ed72fc4a8a2699be71e5ddd7f9eb55c97b67
2018-02-09 02:38:50 +00:00
Tin Lam
09caab6c2c Adding #nosec for pycrypto use
As the pycrypto library is being replaced by the cryptography module,
the bandit library would like to warn the use of pycrypto in [0]. Currently,
barbican still use pycrypto and work is being done to update that in [1],
this patch set proposes to #nosec the outstanding pycrypto use for the
bandit patch to pass - the #nosec should be consequently removed in [1].

[0] https://review.openstack.org/#/c/530287/
[1] https://review.openstack.org/#/c/458196/

Change-Id: I0b1a90c3a47ad6d3b18597e5315e9f017854a146
2018-02-04 10:00:28 -06:00
Zuul
b17013e6bd Merge "Modify simple_crypto init message" 2018-01-31 07:51:19 +00:00
Zuul
cb1ca0e500 Merge "Remove Simple Crypto plugin production warning" 2018-01-29 23:09:12 +00:00
Ade Lee
1a312bab28 Modify simple_crypto init message
Remove warning on started and replace with a message that the
instance has initialized.

Change-Id: I47d11e67928e530dc8e6c44ad07cfa4c158defc2
2018-01-29 16:34:30 -05:00
Juan Antonio Osorio Robles
b4c06c978b Remove Simple Crypto plugin production warning
Folks are using this for production, and in reality, even though the
plugin is not ideal, one can take measures to secure this backend enough
that it will be fine for most use-cases. Taking this into account, I'm
removing this warning that's putting users/deployers off.

Change-Id: I35ba3f78da6c77e2812fc7ec259cf149ab825caa
2018-01-29 19:11:53 +02:00
James E. Blair
985fb8e449 Zuul: Remove project name
Zuul no longer requires the project-name for in-repo configuration.
Omitting it makes forking or renaming projects easier.

Change-Id: I4be5a907f06b8b0f4675f2c68149bae754d87c51
2018-01-29 07:10:31 -08:00
Ade Lee
33283a9eab Add secret store sync functionality to barbican-manage
Change-Id: Ie5841de328c07d8c6c0a9fb80bb56a7d218f0da2
2018-01-26 14:06:39 -05:00
Nam Nguyen Hoai
d6b25aeb1a Update virtual_environment for genconfig and genpolicy
It is not necessary to create two new virtual environments
when run tox with genconfig and genpolicy. We can use pep8
virtual_environment for those tox., it will reduce time to
run tox.

Change-Id: Ia07d325ed9550c8a201039754d96341f051c63f0
2018-01-24 10:05:05 +07:00
OpenStack Proposal Bot
ab90a1ef69 Updated from global requirements
Change-Id: I4d8a15b2084e8f6702b634dc5ba5b25bb3931078
2018-01-24 00:49:11 +00:00
chenjiao
d594751587 Authorites spelling error
Authorites should be Authorities

Change-Id: I48a7417630c748dddd46d0671543ade16bf1d971
2018-01-23 18:40:34 +08:00
Zuul
3d3ea33e8b Merge "Remove Certificate Orders and CAs from API" 2018-01-23 04:43:05 +00:00
zhangdebo
263050337e Update link address
Change-Id: Ic089698a27f1c1ac6d908788c19ec93526759c75
2018-01-18 18:16:29 +08:00
OpenStack Proposal Bot
10ef7adcff Updated from global requirements
Change-Id: Ice3881f6be7ff7d328c716b2cfdd8bab48689a3e
2018-01-17 20:28:07 +00:00
Ade Lee
0539a28ee9 Ensure only api app initializes secret store
Right now, the multiple secret store initialization code is run
whenever the db is initialized - whether it be running the clean
db script, starting the worker, starting the keystone listener
or manage db script.  This periodically causes deadlocks when
the worker,listener and app are started soon after each other.

Its not altogether clear why the deadlock happens, but the only
table that is being written to is the secret_store table, which
has no foreign keys etc.  In any case, though, it was never the
intention that anything other than the app itself initialize the
secret stores from its config file.

This patch makes sure that happens.

Change-Id: I711b91b19b9d65260a21b41d6f9e18b9e282138a
Closes-bug: 1738863
2017-12-20 10:54:43 -05:00
Zuul
a74f898752 Merge "Use assertRegex instead of assertRegexpMatches" 2017-12-15 22:06:54 +00:00
Fernando Diaz
8561bc339f Remove Certificate Orders and CAs from API
Removes Certificate Orders and CAs from the Barbican
API Controller. This patch also removes any tests associated
with those controllers.

Co-Authored-By: Nam Nguyen Hoai <namnh@vn.fujitsu.com>
Change-Id: Iead0336a19ce58b8b2bb1f9af5e6dd3688fe91fc
2017-12-13 10:40:28 +07:00
OpenStack Proposal Bot
6647eb9276 Updated from global requirements
Change-Id: I6ad527a1e5308da1eecbe35aedc0e25266678be3
2017-12-10 06:57:00 +00:00
Nam Nguyen Hoai
21deca8a4b Remove redundancy code
When we pass secret_mode and kek_datum_model to
EndcryptedDatum [1], the __init__ function of
the class set secret_id attribute [2]. So no need
to have the line of code #346 [3]

[1] https://github.com/openstack/barbican/blob/master/barbican/plugin/store_crypto.py#L312
[2] https://github.com/openstack/barbican/blob/master/barbican/model/models.py#L457
[3] https://github.com/openstack/barbican/blob/master/barbican/plugin/store_crypto.py#L316

Change-Id: Ia419dccfc73aba88d4e00384a0a11926781bfeb3
2017-12-02 11:14:42 +07:00
Zuul
128cdd1e80 Merge "Remove setting of version/release from releasenotes" 2017-11-30 17:36:56 +00:00
Zuul
a523635c1f Merge "Add defaults for Dogtag backend plugin" 2017-11-30 10:24:48 +00:00
Ade Lee
0861657fc1 Fix Dogtag mode on key generation
Dogtag doesn't actually need the mode parameter to be
stored in metadata.  We remove it from the generation case
because passing back a None value for the metadata breaks
metadata validation.

Added a functional test for no value passed in for the mode
in the order request.

Change-Id: I216f887875b1306604dd370301ac463cccbb2fa9
2017-11-29 14:14:09 -05:00
Ade Lee
93141ca2da Add defaults for Dogtag backend plugin
Change-Id: Icac1031f256963694e8b72882895e68af63ae897
2017-11-28 16:14:00 -05:00
Zuul
5425d684c0 Merge "Delete python bytecode including pyo" 2017-11-28 02:31:53 +00:00
Emilien Macchi
5617d605f2 zuul: run tripleo-scenario002 job
Like before with legacy jobs, change the zuul v3 layout to run tripleo
scenario002 as non voting, that deploys Barbican.

Change-Id: I92f7d32218685e38ba2637b9a46f4843d9b5fe6d
2017-11-18 12:34:13 -08:00
deepakmourya
6011b8c40c Remove setting of version/release from releasenotes
Release notes are version independent, so remove version/release
values. We've found that projects now require the service package
to be installed in order to build release notes, and this is entirely
due to the current convention of pulling in the version information.

Release notes should not need installation in order to build, so this
unnecessary version setting needs to be removed.

This is needed for new release notes publishing, see
I56909152975f731a9d2c21b2825b972195e48ee8 and the discussion starting
at
http://lists.openstack.org/pipermail/openstack-dev/2017-November/124480.html
.

Change-Id: I7246147a649e836a7ce70518fee256bc20fe0d30
2017-11-17 05:18:49 +00:00