Add basic authentication security 73/118773/13
authorBruno Sakoto <bruno.sakoto@bell.ca>
Wed, 3 Mar 2021 23:27:54 +0000 (18:27 -0500)
committerRishi Chail <rishi.chail@est.tech>
Fri, 5 Mar 2021 08:56:30 +0000 (08:56 +0000)
commitf05a5032d369a9cf9052bf82ed62bad5cc4ee68b
tree15f73f5fe81b4a69f43b487b8d87d6a0ab74130d
parent50130c04626e0c5b09b344b2e11bb99c62dbf926
Add basic authentication security

Endpoints exposed outside from the cluster require
basic authentication except actuator health and info endpoints.

Default user credentials are embedded in the application,
they can be overridden with system environment properties.

Issue-ID: CPS-175
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
Change-Id: I3dfa0e49e5f4538c923e6bbe9bef976d30359fe6
cps-rest/pom.xml
cps-rest/src/main/java/org/onap/cps/config/WebSecurityConfig.java [new file with mode: 0644]
cps-rest/src/test/groovy/org/onap/cps/rest/controller/AdminRestControllerSpec.groovy
cps-rest/src/test/groovy/org/onap/cps/rest/controller/DataRestControllerSpec.groovy
cps-rest/src/test/groovy/org/onap/cps/rest/controller/QueryRestControllerSpec.groovy
cps-rest/src/test/groovy/org/onap/cps/rest/controller/RestControllerSpecification.groovy [new file with mode: 0644]
cps-rest/src/test/groovy/org/onap/cps/rest/exceptions/CpsRestExceptionHandlerSpec.groovy
csit/tests/cps-admin/cps-admin.robot
csit/tests/cps-data/cps-data.robot
docker-compose/docker-compose.yml