Update CertService Introduction Documentation
authorAleksandra Maciaga <aleksandra.maciaga@nokia.com>
Wed, 6 May 2020 13:19:19 +0000 (15:19 +0200)
committerBartosz Gardziejewski <bartosz.gardziejewski@nokia.com>
Fri, 8 May 2020 08:09:56 +0000 (10:09 +0200)
Issue-ID: AAF-1091
Signed-off-by: Aleksandra Maciaga <aleksandra.maciaga@nokia.com>
Change-Id: Ica4596e08648b49782316be48769395223a15397

docs/index.rst
docs/sections/architecture.rst
docs/sections/configuration.rst
docs/sections/introduction.rst [new file with mode: 0644]
docs/sections/release-notes.rst
docs/sections/resources/certService_cert_enrollment_flow.png [new file with mode: 0644]
docs/sections/resources/certservice_high_level.jpg [deleted file]
docs/sections/resources/certservice_high_level.png [new file with mode: 0644]
docs/sections/resources/cmpv2_context_view.png [new file with mode: 0644]

index d85e365..1d86fe7 100644 (file)
@@ -10,6 +10,7 @@ AAF Certification Service
    :maxdepth: 2
    :caption: Contents:
 
+   sections/introduction.rst
    sections/architecture.rst
    sections/build.rst
    sections/offeredapis.rst
index c70dd56..1a5b368 100644 (file)
@@ -6,14 +6,24 @@
 Architecture
 ============
 
-The micro-service called CertService is designed for requesting certificates
-signed by external Certificate Authority (CA) using CMP over HTTP protocol. It uses CMPv2 client to send and receive CMPv2 messages.
-CertService's client will be also provided so other ONAP components (aka end components) can easily get certificate from CertService.
-End component is an ONAP component (e.g. DCAE collector or controller) which requires certificate from CMPv2 server
-to protect external traffic and uses CertService's client to get it.
-CertService's client communicates with CertService via REST API over HTTPS, while CertService with CMPv2 server via CMP over HTTP.
-
-.. image:: resources/certservice_high_level.jpg
+Interaction between components
+------------------------------
+
+.. image:: resources/certservice_high_level.png
    :width: 855px
-   :height: 178px
+   :height: 223px
    :alt: Interaction between components
+
+
+Simplified certificate enrollment flow
+--------------------------------------
+
+.. image:: resources/certService_cert_enrollment_flow.png
+   :width: 1191px
+   :height: 893px
+   :alt: Simplified certificate enrollment flow
+
+Security considerations
+-----------------------
+
+CertService's REST API is protected by mutual HTTPS, meaning server requests client's certificate and **authenticate** only requests with trusted certificate. After ONAP default installation only certificate from CertService's client is trusted. **Authorization** isn't supported in Frankfurt release.
\ No newline at end of file
index fc75d11..43de0e4 100644 (file)
@@ -154,7 +154,7 @@ Generating certificates for CertService and CertService Client
 CertService and CertService client use mutual TLS for communication. Certificates are generated during CertService installation.
 
 Docker mode:
-^^^^^^
+^^^^^^^^^^^^
 
 Certificates are mounted to containers by docker volumes:
 
@@ -168,7 +168,7 @@ All certificates are stored in *certservice/certs* directory. To recreate certif
 This will clear existing certs and generate new ones.
 
 ONAP OOM installation:
-^^^^
+^^^^^^^^^^^^^^^^^^^^^^
 
 Certificates are stored in secrets, which are mounted to pods as volumes. Both secrets are stored in *kubernetes/aaf/charts/aaf-cert-service/templates/secret.yaml*.
 Secrets take certificates from *kubernetes/aaf/charts/aaf-cert-service/resources* directory. Certificates are generated automatically during building (using Make) OOM repository.
diff --git a/docs/sections/introduction.rst b/docs/sections/introduction.rst
new file mode 100644 (file)
index 0000000..0b7e8d1
--- /dev/null
@@ -0,0 +1,33 @@
+.. This work is licensed under a Creative Commons Attribution 4.0 International License.
+.. http://creativecommons.org/licenses/by/4.0
+.. Copyright 2020 NOKIA
+.. _introduction:
+
+
+Introduction
+============
+
+Overview
+--------
+The micro-service called CertService is designed for requesting certificates signed by external Certificate Authority (CA) using CMP over HTTP protocol. It uses CMPv2 client to send and receive CMPv2 messages.
+
+CertService's client is also provided so other ONAP components (aka end components) can easily get certificate from CertService. End component is an ONAP component (e.g. DCAE collector or controller) which requires certificate from CMPv2 server to protect external traffic and uses CertService's client to get it.
+
+CertService's client communicates with CertService via REST API over HTTPS, while CertService with CMPv2 server via CMP over HTTP.
+
+To proof that CertService works Open Source CMPv2 server (EJBCA) is deployed and used in E2E tests.
+
+It is planned that Network Functions (aka xNFs) will get certificates from the same CMPv2 server and the same CA hierarchy, but will use own means to get such certificates. Cause xNFs and ONAP will get certificates signed by the same root CA and will trust such root CA, both parties will automatically trust each other and can communicate with each other.
+
+
+Context View
+------------
+
+.. image:: resources/cmpv2_context_view.png
+   :width: 533px
+   :height: 315px
+   :alt: CMPV2 Context View
+
+
+In Frankfurt release only `Initialization Request <https://tools.ietf.org/html/rfc4210#section-5.3.1>`_ with `ImplicitConfirm <https://tools.ietf.org/html/rfc4210#section-5.1.1.1>`_ is supported.
+Request sent to CMPv2 server is authenticated by secret value (initial authentication key) and reference value (used to identify the secret value) as described in `RFC-4210 <https://tools.ietf.org/html/rfc4210#section-4.2.1.2>`_.
index 00b9e08..d01a84a 100644 (file)
@@ -15,6 +15,7 @@ Version: 1.0.1
 
 The Frankfurt Release is the first release of the Certification Service.
 
+
 **Bug Fixes**
 
         - `AAF-1132 <https://jira.onap.org/browse/AAF-1132>`_ - CertService Client returns exit status 5 when TLS configuration fails
diff --git a/docs/sections/resources/certService_cert_enrollment_flow.png b/docs/sections/resources/certService_cert_enrollment_flow.png
new file mode 100644 (file)
index 0000000..6e070bf
Binary files /dev/null and b/docs/sections/resources/certService_cert_enrollment_flow.png differ
diff --git a/docs/sections/resources/certservice_high_level.jpg b/docs/sections/resources/certservice_high_level.jpg
deleted file mode 100644 (file)
index 1146698..0000000
Binary files a/docs/sections/resources/certservice_high_level.jpg and /dev/null differ
diff --git a/docs/sections/resources/certservice_high_level.png b/docs/sections/resources/certservice_high_level.png
new file mode 100644 (file)
index 0000000..7cab5e8
Binary files /dev/null and b/docs/sections/resources/certservice_high_level.png differ
diff --git a/docs/sections/resources/cmpv2_context_view.png b/docs/sections/resources/cmpv2_context_view.png
new file mode 100644 (file)
index 0000000..85570cb
Binary files /dev/null and b/docs/sections/resources/cmpv2_context_view.png differ