magnum/magnum/objects
Madhuri cefc5a9ac3 Add Certificate controller for TLS support.
The Certificate controller has 2 operations:

1. POST

Generate X509 certificate using bay's CA cert.
Below is an example of Certificate POST API request using magnum command:

Example Request:

    curl -X POST -H 'Content-Type: application/json' \
        -d '{"bay_uuid": "<bay_uuid>", "csr": "<csr>"}' \
        http://localhost:9511/v1/certificates

This creates a X509 certificate signed by the given bay's CA and returns
it. No database information is stored in Magnum against it. For each POST
request, a new certificate is generated.

Example Response:

    {"bay_uuid": "<bay_uuid>", "csr": "<csr>",
     "pem": "<pem encoded certifiacte>"}

2. GET
Fetches the CA cert associated with a bay. Below is an example of CA GET
API request using magnum command:

Example Request:

    curl -X GET http://localhost:9511/v1/certificates/<bay_uuid>

This fetches stored CA cert for the given Bay, which can be used to validate
any client and node certificates signed by the Bay's CA. The value for each
is fetched from Barbican or Magnum db based on the different configuration
for storage of certificates.

Example Response:

    {"bay_uuid": "<bay_uuid>", "pem": "<pem encoded certifiacte>"}

Co-Authored-By: Andrew Melton <andrew.melton@rackspace.com>

Change-Id: I4b72cc1e1bddc7a7c7eeb0ab22d3769a666ccb2b
Partially-Implements: bp secure-kubernetes
2015-09-05 13:45:43 +00:00
..
__init__.py Add Certificate controller for TLS support. 2015-09-05 13:45:43 +00:00
base.py Fix ignored E121 to E125 pep 8 rules 2015-06-08 10:55:34 +00:00
bay.py Change bay.*_cert_uuid to bay.*_cert_ref 2015-09-01 16:16:36 +09:00
baylock.py Move VersionedObject registration to the new scheme 2015-05-11 12:05:15 +02:00
baymodel.py proxy-blue print for docker swarm 2015-08-25 18:36:42 -04:00
certificate.py Add Certificate controller for TLS support. 2015-09-05 13:45:43 +00:00
container.py Add field for container status 2015-08-28 19:00:18 +00:00
fields.py Add field for container status 2015-08-28 19:00:18 +00:00
node.py Move VersionedObject registration to the new scheme 2015-05-11 12:05:15 +02:00
pod.py Add 'host' field to Pod object. 2015-06-25 17:37:35 -04:00
replicationcontroller.py Fix unit test for replication controller 2015-08-25 11:16:21 -07:00
service.py Correct exception raised in few db APIs 2015-08-27 14:04:41 -07:00
utils.py Setup for translation 2015-05-24 03:13:55 +00:00
x509keypair.py Move 'all_tenants' options to context 2015-08-27 18:22:35 -04:00