From: PatrikBuhr Date: Wed, 6 Nov 2019 12:31:57 +0000 (+0100) Subject: Disabling security by default X-Git-Tag: 1.7.3~18^2 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F01%2F1501%2F1;hp=1bcbf004b19e8486718550cddd7ae0d41561dd39;p=nonrtric.git Disabling security by default Enable by JVM property -Dspring.profiles.active=webSecurity Change-Id: I8cae7cb9aeb382e531e369bb3061e3ad9f982bff Issue-ID: NONRTRIC-61 Signed-off-by: PatrikBuhr --- diff --git a/dashboard/pom.xml b/dashboard/pom.xml index 7123fef9..1473449f 100644 --- a/dashboard/pom.xml +++ b/dashboard/pom.xml @@ -29,11 +29,11 @@ limitations under the License. 2.1.9.RELEASE - org.o-ran-sc.portal.ric-dashboard + org.o-ran-sc.nonrt.ric-dashboard ric-dash-parent - RIC Dashboard project + NonRT RIC Dashboard project pom - 1.2.5-SNAPSHOT + 1.0.0-SNAPSHOT 11 diff --git a/dashboard/webapp-backend/pom.xml b/dashboard/webapp-backend/pom.xml index ec4fdea5..a7100bed 100644 --- a/dashboard/webapp-backend/pom.xml +++ b/dashboard/webapp-backend/pom.xml @@ -23,12 +23,12 @@ limitations under the License. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.o-ran-sc.portal.ric-dashboard + org.o-ran-sc.nonrt.ric-dashboard ric-dash-parent - 1.2.5-SNAPSHOT + 1.0.0-SNAPSHOT ric-dash-be - RIC Dashboard Webapp backend + NonRT RIC Dashboard Webapp backend 2.9.2 diff --git a/dashboard/webapp-backend/src/main/resources/application.properties b/dashboard/webapp-backend/src/main/resources/application.properties index 585e795f..0cb9891b 100644 --- a/dashboard/webapp-backend/src/main/resources/application.properties +++ b/dashboard/webapp-backend/src/main/resources/application.properties @@ -30,7 +30,7 @@ server.port = 8080 userfile = users.json # boolean flag whether to enforce Portal user and roles on requests -portalapi.security = true +portalapi.security = false # class that decrypts ciphertext from Portal portalapi.decryptor = org.oransc.ric.portal.dashboard.portalapi.PortalSdkDecryptorAes # name of request cookie with user ID diff --git a/dashboard/webapp-backend/src/main/resources/key.properties b/dashboard/webapp-backend/src/main/resources/key.properties new file mode 100644 index 00000000..85a56895 --- /dev/null +++ b/dashboard/webapp-backend/src/main/resources/key.properties @@ -0,0 +1,22 @@ +# ========================LICENSE_START================================= +# O-RAN-SC +# %% +# Copyright (C) 2019 AT&T Intellectual Property +# %% +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ========================LICENSE_END=================================== + +# Test properties for the EPSDK-FW library. +# This file must be present on the Java classpath. + +cipher.enc.key = bogus diff --git a/dashboard/webapp-backend/src/main/resources/portal.properties b/dashboard/webapp-backend/src/main/resources/portal.properties new file mode 100644 index 00000000..8c7fec79 --- /dev/null +++ b/dashboard/webapp-backend/src/main/resources/portal.properties @@ -0,0 +1,34 @@ +# ========================LICENSE_START================================= +# O-RAN-SC +# %% +# Copyright (C) 2019 AT&T Intellectual Property +# %% +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ========================LICENSE_END=================================== + +# Template for the file that provides properties for the EPSDK-FW library. +# This file must be present on the Java classpath. + +# The following properties are the same in every deployment + +portal.api.impl.class = org.oransc.ric.portal.dashboard.portalapi.PortalRestCentralServiceImpl +role_access_centralized = remote + +# The following properties are DIFFERENT in every deployment + +# URL of portal login screen +ecomp_redirect_url = http://localhost/portal +# URL of portal API +ecomp_rest_url = http://localhost/portal +# Value assigned by portal instance +ueb_app_key = abcdef1234567890 diff --git a/dashboard/webapp-frontend/pom.xml b/dashboard/webapp-frontend/pom.xml index fd752419..2888f73b 100644 --- a/dashboard/webapp-frontend/pom.xml +++ b/dashboard/webapp-frontend/pom.xml @@ -23,12 +23,12 @@ limitations under the License. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.o-ran-sc.portal.ric-dashboard + org.o-ran-sc.nonrt.ric-dashboard ric-dash-parent - 1.2.5-SNAPSHOT + 1.0.0-SNAPSHOT ric-dash-fe - RIC Dashboard Webapp frontend + NonRT RIC Dashboard Webapp frontend