Deprecate Cetificate Resources
Begins the deprecation process for Barbican CAs API, and Barbican Certificate Orders Resource. This is done through logging deprecation schedule on API, as well as adding a warning to the documentation. Change-Id: Idbe6307fa45527aa225e61b3b1ac9ca86e7660c5
This commit is contained in:
parent
d85be13550
commit
140a8182e2
@ -2,6 +2,11 @@
|
||||
Certificates API - User Guide
|
||||
******************************
|
||||
|
||||
.. warning::
|
||||
|
||||
DEPRECATION WARNING: The Certificates API has been deprecated and will
|
||||
be removed in the P release.
|
||||
|
||||
Barbican will be used to manage the lifecycle of x509 certificates covering
|
||||
operations such as initial certificate issuance, certificate re-issuance,
|
||||
certificate renewal and certificate revocation. At present, only the issuance of
|
||||
|
@ -11,6 +11,11 @@ The orders resource supports the following types:
|
||||
* asymmetric keys
|
||||
* certificates
|
||||
|
||||
.. warning::
|
||||
|
||||
DEPRECATION WARNING: The Certificates Order resource has been deprecated
|
||||
and will be removed in the P release.
|
||||
|
||||
This user guide provides high level examples of the orders resource.
|
||||
It will assume you will be using a local running development environment of barbican.
|
||||
If you need assistance with getting set up, please reference the
|
||||
|
@ -12,6 +12,7 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from oslo_log import versionutils
|
||||
import pecan
|
||||
from six.moves.urllib import parse
|
||||
|
||||
@ -30,6 +31,9 @@ from barbican.tasks import certificate_resources as cert_resources
|
||||
|
||||
LOG = utils.getLogger(__name__)
|
||||
|
||||
_DEPRECATION_MSG = u._LW('%s has been deprecated in the Newton release. It '
|
||||
'will be removed in the Pike release.')
|
||||
|
||||
|
||||
def _certificate_authority_not_found():
|
||||
"""Throw exception indicating certificate authority not found."""
|
||||
@ -67,6 +71,8 @@ class CertificateAuthorityController(controllers.ACLMixin):
|
||||
|
||||
def __init__(self, ca):
|
||||
LOG.debug('=== Creating CertificateAuthorityController ===')
|
||||
msg = _DEPRECATION_MSG % "Certificate Authorities API"
|
||||
versionutils.report_deprecated_feature(LOG, msg)
|
||||
self.ca = ca
|
||||
self.ca_repo = repo.get_ca_repository()
|
||||
self.project_ca_repo = repo.get_project_ca_repository()
|
||||
@ -256,6 +262,8 @@ class CertificateAuthoritiesController(controllers.ACLMixin):
|
||||
|
||||
def __init__(self):
|
||||
LOG.debug('Creating CertificateAuthoritiesController')
|
||||
msg = _DEPRECATION_MSG % "Certificate Authorities API"
|
||||
versionutils.report_deprecated_feature(LOG, msg)
|
||||
self.ca_repo = repo.get_ca_repository()
|
||||
self.project_ca_repo = repo.get_project_ca_repository()
|
||||
self.preferred_ca_repo = repo.get_preferred_ca_repository()
|
||||
|
@ -10,6 +10,7 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from oslo_log import versionutils
|
||||
import pecan
|
||||
|
||||
from barbican import api
|
||||
@ -26,6 +27,9 @@ from barbican.queue import client as async_client
|
||||
|
||||
LOG = utils.getLogger(__name__)
|
||||
|
||||
_DEPRECATION_MSG = u._LW('%s has been deprecated in the Newton release. It '
|
||||
'will be removed in the Pike release.')
|
||||
|
||||
|
||||
def _order_not_found():
|
||||
"""Throw exception indicating order not found."""
|
||||
@ -211,6 +215,8 @@ class OrdersController(controllers.ACLMixin):
|
||||
'request_type': request_type})
|
||||
|
||||
if order_type == models.OrderType.CERTIFICATE:
|
||||
msg = _DEPRECATION_MSG % "Certificate Order Resource"
|
||||
versionutils.report_deprecated_feature(LOG, msg)
|
||||
validators.validate_ca_id(project.id, body.get('meta'))
|
||||
if request_type == 'stored-key':
|
||||
container_ref = order_meta.get('container_ref')
|
||||
|
@ -2,6 +2,11 @@
|
||||
Certificates Authorities API - Reference
|
||||
****************************************
|
||||
|
||||
.. warning::
|
||||
|
||||
DEPRECATION WARNING: The Certificates Authorities API has been deprecated
|
||||
and will be removed in the P release.
|
||||
|
||||
Barbican provides an API to interact with certificate authorities (CAs). For
|
||||
an introduction to CAs and how Barbican manages them, see the
|
||||
`Certificate Authorities User's Guide <http://developer.openstack.org/api-guide/key-manager/cas.html>`__.
|
||||
|
@ -2,6 +2,11 @@
|
||||
Certificates API - Reference
|
||||
****************************
|
||||
|
||||
.. warning::
|
||||
|
||||
DEPRECATION WARNING: The Certificates API has been deprecated and will
|
||||
be removed in the P release.
|
||||
|
||||
.. _reference_post_certificate_orders:
|
||||
|
||||
POST /v1/orders
|
||||
@ -149,4 +154,3 @@ HTTP Status Codes
|
||||
+------+-----------------------------------------------------------------------------+
|
||||
| 415 | Unsupported media type |
|
||||
+------+-----------------------------------------------------------------------------+
|
||||
|
||||
|
@ -2,6 +2,11 @@
|
||||
Orders API - Reference
|
||||
**********************
|
||||
|
||||
.. warning::
|
||||
|
||||
DEPRECATION WARNING: The Certificates Order resource has been deprecated
|
||||
and will be removed in the P release.
|
||||
|
||||
.. _get_orders:
|
||||
|
||||
GET /v1/orders
|
||||
|
@ -4,6 +4,11 @@
|
||||
Certificate Plugin Development
|
||||
==============================
|
||||
|
||||
.. warning::
|
||||
|
||||
DEPRECATION WARNING: The Certificates Plugin has been deprecated and will
|
||||
be removed in the P release.
|
||||
|
||||
This guide describes how to develop a custom certificate plugin for use by
|
||||
Barbican.
|
||||
|
||||
@ -23,8 +28,6 @@ plugins:
|
||||
similar interactions as with Symantec.
|
||||
|
||||
|
||||
|
||||
|
||||
``certificate_manager`` Module
|
||||
==============================
|
||||
|
||||
|
@ -1,6 +1,11 @@
|
||||
Setting up Certificate Plugins
|
||||
==============================
|
||||
|
||||
.. warning::
|
||||
|
||||
DEPRECATION WARNING: The Certificates Plugin has been deprecated and will
|
||||
be removed in the P release.
|
||||
|
||||
Using the SnakeOil CA plugin
|
||||
----------------------------
|
||||
|
||||
|
@ -322,6 +322,10 @@ ca_certs = '/path/to/certs/LocalCA.crt'
|
||||
|
||||
|
||||
# ================= Certificate plugin ===================
|
||||
|
||||
# DEPRECATION WARNING: The Certificates Plugin has been deprecated
|
||||
# and will be removed in the P release.
|
||||
|
||||
[certificate]
|
||||
namespace = barbican.certificate.plugin
|
||||
enabled_certificate_plugins = simple_certificate
|
||||
@ -338,6 +342,8 @@ ca_cert_chain_path = /etc/barbican/snakeoil-ca.chain
|
||||
ca_cert_pkcs7_path = /etc/barbican/snakeoil-ca.p7b
|
||||
subca_cert_key_directory=/etc/barbican/snakeoil-cas
|
||||
|
||||
# ========================================================
|
||||
|
||||
[cors]
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user