Commit Graph

44 Commits

Author SHA1 Message Date
Zuul 718bde6e3f Merge "reno: Update master for unmaintained/xena" 2024-03-12 14:31:55 +00:00
Zuul 86a28d334e Merge "reno: Update master for unmaintained/wallaby" 2024-03-12 14:28:00 +00:00
Zuul 03b5caba88 Merge "reno: Update master for unmaintained/victoria" 2024-03-12 13:10:48 +00:00
OpenStack Release Bot 9558ccd6ff Update master for stable/2024.1
Add file to the reno documentation build to show release notes for
stable/2024.1.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2024.1.

Sem-Ver: feature
Change-Id: I3ed6662c2c6c440435eae5d6f05a8abb83dae142
2024-03-08 14:21:45 +00:00
OpenStack Release Bot ec6a49410c reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.

Change-Id: Iab48a01fca4c2f67cb81379ac59031038c9bfb08
2024-03-07 14:24:33 +00:00
OpenStack Release Bot ce2706ac53 reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.

Change-Id: Iffda7484b0b6fd3849301a93d9b177b0692b8a61
2024-03-07 14:20:20 +00:00
OpenStack Release Bot a6e6a0e5b2 reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.

Change-Id: If32844bcfaa61f0836ff73818f72073a5cfc9b80
2024-03-07 14:14:09 +00:00
Takashi Kajinami d578cbcce9 Add release note about new consumer interfaces
Since bc6d87b969 was merged, any
implementations inheriting the base KeyManager class should implement
the two new consumer interfaces. This documents that upgrade impact
so that the note appears in release note.

Change-Id: Id6ba2f3dff279371a13e319773b4579c82338774
2024-03-04 18:04:25 +09:00
OpenStack Release Bot 1d423e1bfa reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: Ic2c7f652bcec232b16249c1c6341cd86c07aae38
2024-02-06 14:27:03 +00:00
OpenStack Release Bot 7b19136668 Update master for stable/2023.2
Add file to the reno documentation build to show release notes for
stable/2023.2.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.2.

Sem-Ver: feature
Change-Id: I678310a4dcc6268263a7a42f4f425907f35079e4
2023-09-07 09:35:42 +00:00
OpenStack Release Bot cecdde7672 Update master for stable/2023.1
Add file to the reno documentation build to show release notes for
stable/2023.1.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.1.

Sem-Ver: feature
Change-Id: Ic3218dd69770273a5b4cae181bc21d015501378f
2023-02-24 15:15:14 +00:00
Grzegorz Grasza 365618a665 Add secret consumers documentation and release note
Change-Id: I6ef9c1307fb178158970182a6c69ca7f16d2b35d
2023-02-20 13:20:55 +01:00
OpenStack Release Bot c6ad6b9315 Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/zed.

Sem-Ver: feature
Change-Id: I3136f2dc8f4a6b2f9d15a12a880fa1a5c551343e
2022-09-09 09:15:41 +00:00
OpenStack Release Bot 3e0fad7783 Update master for stable/yoga
Add file to the reno documentation build to show release notes for
stable/yoga.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/yoga.

Sem-Ver: feature
Change-Id: I600b3e54f31a622862c178452ab68c1059f34036
2022-03-04 17:17:05 +00:00
LiZekun 86712360f3 remove unicode from code
Change-Id: I086d90b6f46e31582d412b8725e48cba5c21d6bc
2022-01-05 10:44:00 +08:00
Pavlo Shchelokovskyy ecf625b65c Add support for Vault Namespaces
Vault Namespaces [0] is a feature available in Vault Enterprise that
can be considered as a more advanced isolation feature on top of current
KV Mountpoint option in Castellan Vault plugin.

Passing a namespace in all request headers (including Auth) allows to organize
Vault-in-Vault style of isolation, with clients using the same simple URI path
but accessing separate sets of entities in Vault.

[0] https://www.vaultproject.io/docs/enterprise/namespaces

Change-Id: I627c20002bb2a0a1b346b57e824f87f856eca4c9
2021-10-07 12:12:51 +00:00
OpenStack Release Bot d9e2af2b2f Update master for stable/xena
Add file to the reno documentation build to show release notes for
stable/xena.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/xena.

Sem-Ver: feature
Change-Id: I1f1fdd54490efa1ca406c7e6b807ce643a73f613
2021-09-10 14:33:17 +00:00
Mark Goddard 162039467a barbican key manager: Add support for service user
This change adds support to the Barbican key manager for configuring a
service user. This can be used to provide additional security through
the combination of a user token and a service token, with appropriate
modifications to Barbican API policy.

Use of a service user is enabled via the [barbican]
send_service_user_token option, which defaults to False. When set to
True, the service user is configured via keystoneauth options in the
barbican_service_user group.

Change-Id: I143cb57c8534a8dc0a91e6e42917dd0c134170c0
2021-06-21 12:48:03 +00:00
Zuul 984ebb2bf8 Merge "Allow specifying region of barbican endpoint" 2021-03-30 17:21:40 +00:00
OpenStack Release Bot cec4584d70 Update master for stable/wallaby
Add file to the reno documentation build to show release notes for
stable/wallaby.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/wallaby.

Sem-Ver: feature
Change-Id: Ia9a6c82e840dc8cbd6d37aca394e718a03ba4c77
2021-03-18 11:11:13 +00:00
Takashi Kajinami 8c48341169 Allow specifying region of barbican endpoint
This change introduces a new option to define the region to which
the Barbican endpoint belongs. This is required if the deployment has
multiple regions and a single Keystone instance stores multiple
Barbican endpoints for different regions.
This change also ensures that the same interface and region are used
in endpoint detection and api version detection.

Change-Id: If2c0055d45922937e259a8f22f5879c9faa41e35
2021-02-03 12:11:09 +00:00
OpenStack Release Bot 70ee3292c3 Update master for stable/victoria
Add file to the reno documentation build to show release notes for
stable/victoria.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/victoria.

Change-Id: I575db9ce1ee0db31b48bf6e8cfd813807eba868c
Sem-Ver: feature
2020-09-11 20:54:53 +00:00
Ivan Kolodyazhny e63d813a70 Use 'barbican_endpoint_type'config option to get endpoint from catalog
_get_barbican_endpoint now uses barbican_endpoint_type config option to
retrieve a correct endpoint from catalog.

This config option is set to 'public' by default and it's a default
value for ServiceCatalog.endpoint_data_for method. It means that the
default behaviour will be the same as before this patch.

Change-Id: Idf4061fe3e35e3c47a993a56b23c0257c92e5cc3
2020-07-31 21:48:42 +00:00
Moisés Guimarães de Medeiros 883e9603fa Add to_dict and from_dict conversions to managed objects
This patch centralizes the managed objects conversion in order to be
used across multiple key_manager backends.

Change-Id: Ia2e15d46eb2e504b815a7f51173aecaf82978402
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-07-13 13:44:22 +02:00
Moisés Guimarães de Medeiros 68c1eb50a0 Replaces _get_api_version with config option
This patch fixes the issue when guessing the KV API version fails.
From now on, a configuration option should be used to set vault's API
version.

Change-Id: I962b29519c189dddf9723689e6aaeed2cac3ff2c
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-06-22 17:00:15 +02:00
Zuul f46613e8d0 Merge "add "verify_ssl_path" config for barbican key manager" 2020-05-25 12:47:25 +00:00
Andreas Jaeger 68b8f5327b Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

Disable openstackdocs_auto_name to use 'project' variable as name.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: If5b3ea5c50a91f623b0dd4d1dd347ee8a6b90290
2020-05-21 20:20:06 +02:00
ramboman 89f311dfbd add "verify_ssl_path" config for barbican key manager
Now we cann't use the verify_ssl if we set True, so we
add the "verify_ssl_path" config to solve it.

Closes-Bug: #1876102
Change-Id: I83bafe5b7e0c4cca67f773858007fb59d98a93a5
2020-05-06 21:31:27 +08:00
OpenStack Release Bot 57f5982083 Update master for stable/ussuri
Add file to the reno documentation build to show release notes for
stable/ussuri.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/ussuri.

Change-Id: I493a26372b6be92e6d02c342d8f699ef19cd7f59
Sem-Ver: feature
2020-04-14 10:11:44 +00:00
Moisés Guimarães de Medeiros 943150ee51 Implements KeyManager's option discovery.
The KeyManager itself should be responsible for advertising the
correct set of options for discovery, not relying on the global
option listing method to know which variable holds the options
and how are they grouped.

Change-Id: I1764c383206df835b7d654f2f776663bd6d4d25b
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-02-21 16:33:17 +01:00
Andreas Jaeger 141e7e4209 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Cleanup setup.cfg as well.

Increase requests version in lower-constraints:
requests>=2.18.0 is needed by oslo.config, which leads to some other
updates...

Change-Id: I09f0da9a59952739dd1575200aa47cc12026264f
2020-02-03 19:51:46 +01:00
OpenStack Release Bot e3fdc07578 Update master for stable/train
Add file to the reno documentation build to show release notes for
stable/train.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/train.

Change-Id: Id2b4e1d7910bfa8b4a482b1481a13cfc183a692f
Sem-Ver: feature
2019-09-20 16:19:38 +00:00
OpenStack Release Bot 0337ff3273 Update master for stable/stein
Add file to the reno documentation build to show release notes for
stable/stein.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/stein.

Change-Id: I5ef039b5cfeeae24f7f48e5fde2155ca77f81563
Sem-Ver: feature
2019-03-18 14:38:16 +00:00
Moisés Guimarães de Medeiros 9ecd30081a Fix length usage in VaultKeyManager.create_key.
Previous code was considering length as bytes, but the API contract
considers the length param to be bits so that the considering `km`
as a VaultKeyManager, the call `km.create_key(ctx, 'AES', 256)` should
generate a 256 bit AES key and not a 2048 bit AES key instead.

Closes-Bug: #1817248
Change-Id: I5815cb74394e18b6058f4c5cf69b656d7cc2c43b
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2019-02-22 15:46:35 +01:00
James Page afb539f748 vault: support configuration of KV mountpoint
Support end user configuration of KV store in Vault to use for
key storage allowing more flexibility in Vault configuration.

Change-Id: I625a819c2b9b542677258de709a9c520fb86858b
Closes-Bug: 1797148
2018-10-12 10:05:50 +01:00
James Page bc7f7a4c36 vault: add AppRole support
Add support for use of AppRole's for authentication to Vault; this
feature provides a more application centric approach to managing
long term access to Vault.

The functional tests exercise this integration with a restricted
policy which only allows access to the default 'secret' backend.

Change-Id: I59dfe31adb72712c53d49f66d9ac894e43e8bbad
Closes-Bug: 1796851
2018-10-12 10:03:21 +01:00
OpenStack Release Bot e464f9bc06 Update reno for stable/rocky
Change-Id: I4592e5ab654c6997d2a8dea5ea1f8a557f3931b5
2018-07-26 12:32:44 +00:00
OpenStack Release Bot ece2d0e27d Update reno for stable/queens
Change-Id: I62da507e4212817cdbbb3e5c082c0bee0ca0d49c
2018-01-24 17:59:09 +00:00
Zuul d3446f51b0 Merge "Support handling legacy all-zeros key ID" 2017-11-28 03:31:10 +00:00
Alan Bishop fc0fc79eb6 Support handling legacy all-zeros key ID
This patch addresses a specific use case, where a user has encrypted
volumes based on the fixed_key used by Cinder's and Nova's
ConfKeyManager. The user wishes to switch to Barbican, but existing
volumes must continue to function during the migration period.

The code conditionally adds a shim around the backend KeyManager when
both of these conditions are met:

1) The configuration contains a fixed_key value. This essentially
   signals the ConfKeyManager has been in use at one time
2) The current backend is *not* the ConfKeyManager

When the shim is active, a MigrationKeyManager class is dynamically
created that extends the backend's KeyManager class. The
MigrationKeyManager exists solely to override two functions:

o The KeyManager.get() function detects requests for the secret
  associated with the fixed_key, which is identified by an all-zeros
  key ID.

  - Requests for the all-zeros key ID are handled by mimicing the
    ConfKeyManager's response, which is a secret derived from the
    fixed_key.
  - Requests for any other key ID are passed on to the real backend.

o The KeyManager.delete() function is similar:

  - Requests to delete the all-zeros key ID are essentially ignored,
    just as is done by the ConfKeyManager.
  - Requests to delete any other key ID are passed on to the real
    backend.

All other KeyManager functions are not overridden, and will therefore be
handled directly by the real backend.

SecurityImpact
Change-Id: Ia5316490201c33e23a4206838d5a4fb3dd00f527
2017-11-21 09:23:09 -05:00
Andreas Jaeger 261ec29ae1 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: Id70a728eedb6121784333e8fed0e608834f98d84
2017-11-17 10:08:21 +01:00
Davanum Srinivas a972da32a9 Vault based key manager
* Uses https://www.vaultproject.io/ to store/fetch secrets
* All we need is the URL and a Token to talk to the vault server
* tox target "functional-vault" sets up a server in development mode
  and runs functional tests
* Supports both http:// and https:// url(s)
* the https support was tested by setting up a vault server by hand
  (https://gist.github.com/dims/47674cf2c3b0a953df69246c2ea1ff78)
* create_key_pair is the only API that is not implemented

Change-Id: I6436e5841c8e77a7262b4d5aa39201b40a985255
2017-11-13 20:56:34 -05:00
Jeremy Liu 5d946f0855 Add releasenotes for castellan
Change-Id: I668815f3b353e15b72b88a62ea098fef66a94ae0
2017-09-05 13:40:42 +08:00
Paul Bourke 17e8b29067 Fix retrieving barbican endpoint from service catalog
The context wrapper classes under castellan.common.credentials were
missing an auth_url property resulting in calls to get_endpoint()
failing with 'Could not determine a suitable URL for the plugin' unless
users set barbican/auth_endpoint.

Change-Id: I1be3a1e11e3f4c2170062927ad359bf679eb25d9
Closes-Bug: #1497993
2017-07-19 09:40:25 +00:00