Modify docker-compose configuration 29/7629/1
authordemx8as6 <martin.skorupski@highstreet-technologies.com>
Sat, 29 Jan 2022 15:24:57 +0000 (16:24 +0100)
committerdemx8as6 <martin.skorupski@highstreet-technologies.com>
Sat, 29 Jan 2022 15:25:54 +0000 (16:25 +0100)
- ensure https to identity using external port 8463

IssueID: OAM-246
Change-Id: I7f04ac00d9f68024dfbcf019c2d18c54d9a64a35
Signed-off-by: demx8as6 <martin.skorupski@highstreet-technologies.com>
solution/integration/smo/common/.env
solution/integration/smo/common/docker-compose.yml
solution/integration/smo/common/identity/config.py
solution/integration/smo/common/identity/o-ran-sc-realm.json
solution/integration/smo/oam/.env
solution/integration/smo/oam/sdnr/oauth-provider.config.json

index ae91017..f0168b0 100644 (file)
@@ -29,8 +29,8 @@ NETWORK_GATEWAY_SMO=2001:db8:1:40::1
 
 # Identity server
 IDENTITY_IMAGE=quay.io/keycloak/keycloak:12.0.4
-IDENTITY_PORT=8081
-IDENTITY_PROVIDER_URL=http://identity:8081
+IDENTITY_PORT=8463
+IDENTITY_PROVIDER_URL=https://identity:8463
 
 # Topology server
 TOPOLOGY_IMAGE=docker.io/hightec/smo-topology-api-v2:2.0.2-SNAPSHOT-20210315T160448Z
index e3088fd..0e85bf9 100755 (executable)
@@ -19,11 +19,12 @@ services:
     image: ${IDENTITY_IMAGE}
     container_name: identity
     ports: 
-      - ${IDENTITY_PORT}:${IDENTITY_PORT}
+      - ${IDENTITY_PORT}:8443
     environment: 
       - KEYCLOAK_USER=${ADMIN_USERNAME}
       - KEYCLOAK_PASSWORD=${ADMIN_PASSWORD}
-      - JAVA_OPTS=-Djboss.http.port=${IDENTITY_PORT}
+      - JAVA_OPTS=-Djboss.bind.address.private=[::1] -Djboss.bind.address=[::1] -Djava.net.preferIPv6Addresses=true -Djava.net.preferIPv4Stack=false
+      - DB_VENDOR=h2
     networks:
       dmz:
               
index 65d0d45..9c1ec28 100644 (file)
@@ -24,7 +24,7 @@ import getpass
 
 # global configurations
 # TODO: read from ../.env
-base = 'http://localhost:8081'
+base = 'https://identity:8463'
 username = 'admin'
 password = 'Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U'
 realmFile = os.path.dirname(os.path.abspath(__file__)) + '/o-ran-sc-realm.json'
index c7621d7..97d7b30 100644 (file)
       "clientAuthenticatorType": "client-secret",
       "secret": "2a64fdca-c205-4b52-9f58-195ccc142ddb",
       "redirectUris": [
-        "http://localhost:8081/*",
         "https://sdnc-web:8453/*"
       ],
       "webOrigins": [],
   },
   "keycloakVersion": "12.0.4",
   "userManagedAccessAllowed": false
-}
+}
\ No newline at end of file
index c21df2b..d049b01 100644 (file)
@@ -28,7 +28,7 @@ NETWORK_SUBNET_OAM_IPv6=2001:db8:1:50::/96
 NETWORK_GATEWAY_OAM_IPv6=2001:db8:1:50::1
 
 # Identity server
-IDENTITY_PROVIDER_URL=http://identity:8081
+IDENTITY_PROVIDER_URL=https://identity:8463
 
 # SDN Controller
 SDNC_IMAGE=nexus3.onap.org:10001/onap/sdnc-image:2.2.3
index 9f608f5..7f17f68 100644 (file)
@@ -1,23 +1,24 @@
 {
-       "tokenSecret": "my-secret",
-       "tokenIssuer": "ONAP-SDNC",
-       "publicUrl": "${SDNC_WEB_URL}",
-       "redirectUri": "/odlux/index.html#/oauth?token=",
-       "supportOdlUsers": "true",
-       "providers": [
-               {
-                       "id": "identity",
-                       "type": "KEYCLOAK",
-                       "url": "http://identity:8081",
-                       "clientId": "odlux.app",
-                       "secret": "2a64fdca-c205-4b52-9f58-195ccc142ddb",
-                       "scope": "openid",
-                       "title": "ONAP-IDENTITY",
-                       "roleMapping": {
-                               "administration": "admin"
-                       },
-                       "realmName": "onap",
-            "trustAll": "true"
+  "tokenSecret": "my-secret",
+  "tokenIssuer": "ONAP-SDNC",
+  "publicUrl": "https://sdnc-web:8453",
+  "redirectUri": "/odlux/index.html#/oauth?token=",
+  "supportOdlUsers": "true",
+  "providers": [
+    {
+      "id": "identity",
+      "type": "KEYCLOAK",
+      "url": "https://identity:8463",
+      "internalUrl": "https://identity:8443",
+      "clientId": "odlux.app",
+      "secret": "2a64fdca-c205-4b52-9f58-195ccc142ddb",
+      "scope": "openid",
+      "title": "ONAP-IDENTITY",
+      "roleMapping": {
+        "administration": "admin"
+      },
+      "realmName": "onap",
+      "trustAll": "true"
                }
        ]
-}
+}
\ No newline at end of file