From 5da97dc829f00e8549ccf5617b434aa911578d8b Mon Sep 17 00:00:00 2001 From: Tomasz Wrobel Date: Fri, 13 May 2022 09:01:26 +0200 Subject: Make TLS connection optional Issue-ID: DCAEGEN2-3039 Signed-off-by: Tomasz Wrobel Change-Id: Id637ba17c655407009a4f40f6c93f518b99e45ff --- Changelog.md | 4 ++ README.md | 5 ++ datafile-app-server/pom.xml | 10 ++- .../datafile/configuration/AppConfig.java | 8 ++- .../datafile/configuration/CertificateConfig.java | 6 +- .../datafile/configuration/CloudConfigParser.java | 61 ++++++++++++++--- .../collectors/datafile/tasks/FileCollector.java | 10 ++- .../datafile/configuration/AppConfigTest.java | 24 ++++++- .../configuration/CloudConfigParserTest.java | 78 ++++++++++++++++++++++ .../datafile/tasks/FileCollectorTest.java | 37 +++++++++- ...datafile_test_config_incorrect_cert_config.json | 41 ++++++++++++ .../resources/datafile_test_config_no_tls.json | 37 ++++++++++ .../test/resources/datafile_test_config_tls.json | 40 +++++++++++ pom.xml | 4 +- version.properties | 4 +- 15 files changed, 344 insertions(+), 25 deletions(-) create mode 100644 datafile-app-server/src/test/java/org/onap/dcaegen2/collectors/datafile/configuration/CloudConfigParserTest.java create mode 100644 datafile-app-server/src/test/resources/datafile_test_config_incorrect_cert_config.json create mode 100644 datafile-app-server/src/test/resources/datafile_test_config_no_tls.json create mode 100644 datafile-app-server/src/test/resources/datafile_test_config_tls.json diff --git a/Changelog.md b/Changelog.md index cbbc4d43..ce4f0e08 100644 --- a/Changelog.md +++ b/Changelog.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [1.8.0] - 2022/06/24 +### Changed +- [DCAEGEN2-3039] Make certificate dependencies configurable + ## [1.7.1] - 2022/03/10 ### Changed - [DCAEGEN2-3104] Fix application startup diff --git a/README.md b/README.md index b8f8c1af..53aa43d1 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,11 @@ DFC is delivered as one **Docker container** which hosts application server and Whole project (top level of DFC directory) and each module (sub module directory) can be compiled using `mvn clean install` command. +## Build image +``` +mvn install docker:build +``` + ## Main API Endpoints Running with dev-mode of DFC diff --git a/datafile-app-server/pom.xml b/datafile-app-server/pom.xml index c8a0e648..14620ed1 100644 --- a/datafile-app-server/pom.xml +++ b/datafile-app-server/pom.xml @@ -1,7 +1,7 @@