Skip to content

Commit

Permalink
Fixed Data Mapper Host (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
1AhmedYasser authored Oct 9, 2024
1 parent 0983f48 commit 9e77417
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions DSL/Ruuter/TEMPLATES/check-user-authority.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ declaration:
get_tara_info:
template: tara
requestType: templates
result: TARA
headers:
cookie: ${incoming.headers.cookie}
result: tara_res

check_user_authority:
switch:
- condition: ${TARA.response.body.authorities.includes("ROLE_ADMINISTRATOR")}
- condition: ${tara_res.authorities.includes("ROLE_ADMINISTRATOR")}
next: return_authorized
- condition: ${TARA.response.body.authorities.includes("ROLE_SERVICE_MANAGER")}
- condition: ${tara_res.authorities.includes("ROLE_SERVICE_MANAGER")}
next: return_authorized

return_unauthorized:
Expand All @@ -25,4 +27,4 @@ return_unauthorized:
next: end

return_authorized:
return: ${TARA.response.body}
return: ${tara_res}
2 changes: 1 addition & 1 deletion constants.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SERVICE_DOCKER_INT=http://host.docker.internal:8080

SERVICE_OPENSEARCH=http://opensearch:9200

SERVICE_DMAPPER=http://data_mapper:3005
SERVICE_DMAPPER=http://data-mapper:3005

SERVICE_TIM=http://tim:8085

Expand Down
8 changes: 5 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ services:
- application.DSL.processedFiletypes=.yml,.yaml,.tmp
- application.openSearchConfiguration.url=http://host.docker.internal:9200
- application.openSearchConfiguration.index=ruuterlog
- application.logging.printStackTrace=true
- application.internalRequests.disabled=true
- application.internalRequests.allowedIPs=127.0.0.1
volumes:
- ./DSL/Ruuter:/DSL
- ./constants.ini:/app/constants.ini
Expand Down Expand Up @@ -95,8 +98,8 @@ services:
networks:
- bykstack

data_mapper:
container_name: data_mapper
data-mapper:
container_name: data-mapper
image: data-mapper
environment:
- PORT=3005
Expand All @@ -105,7 +108,6 @@ services:
- ./DSL:/data
- ./DSL/DMapper/hbs:/workspace/app/views/services
- ./DSL/DMapper/js:/workspace/app/js/services
- ./DSL/DMapper/lib/helpers.js:/workspace/app/lib/helpers.js
- ./secrets:/data/secrets
ports:
- 3005:3005
Expand Down

0 comments on commit 9e77417

Please sign in to comment.