Skip to content

Commit 0f75a8e

Browse files
authored
Merge pull request #848 from Cosmo-Tech/DSE/update_config_PROD-14136
Dse/update config prod 14136
2 parents b1b063f + d774b55 commit 0f75a8e

File tree

3 files changed

+109
-44
lines changed

3 files changed

+109
-44
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ If you use another Identity Provider like Okta, you must set the gradle property
153153
./gradlew :cosmotech-api:bootRun -PidentityProvider=okta
154154
```
155155

156-
If you need to call endpoints that require access to a kubernetes cluster, it will use the current context from your kurnetes local config file.
156+
If you need to call endpoints that require access to a kubernetes cluster, it will use the current context from your kubernetes local config file.
157157
If you want to use a different context/cluster without changing your default settings, you may pass the `useKubernetesContext` property to the JVM:
158158
```shell
159159
./gradlew :cosmotech-api:bootRun -PjvmArgs=-DuseKubernetesContext=<MY_CONTEXT>

api/src/main/resources/application-keycloak.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ csm:
1616
platform:
1717
authorization:
1818
mail-jwt-claim: "email"
19-
roles-jwt-claim: "customRoles"
19+
roles-jwt-claim: "userRoles"
2020
principal-jwt-claim: "sub"
21+
application-id-jwt-claim: "sub"
2122
tenant-id-jwt-claim: "iss"
2223
allowed-tenants: ${csm.platform.authorization.allowedTenants}
2324

config/application-dev.sample.yml

Lines changed: 106 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@ logging:
1111
com.cosmotech: DEBUG
1212
web: INFO
1313
org.springframework: WARN
14+
org.springframework.security: INFO
15+
com.redis: INFO
1416

1517
server:
18+
port: 8080
1619
error:
1720
whitelabel:
1821
enabled: true
@@ -28,53 +31,114 @@ management:
2831
exposure:
2932
include: "*"
3033
server:
31-
port: 8080
34+
port: 8081
35+
36+
spring:
37+
ssl:
38+
bundle:
39+
pem:
40+
keycloak:
41+
truststore:
42+
certificate: "classpath:[fill-this-value].pem" # certificate file
3243

3344
csm:
3445
platform:
46+
containerRegistry:
47+
checkSolutionImage : false
48+
api:
49+
base-path: /
50+
base-url: "[fill-this-value]" # e.g for running it locally http://localhost:8080
51+
version: latest
52+
id-generator:
53+
type: hashid
54+
event-publisher:
55+
type: in_process
56+
allowedTenants:
57+
- "[fill-this-value]" # NAMESPACE
3558
identityProvider:
36-
code: azure
37-
# Use to overwrite openAPI configuration
38-
authorizationUrl: "[fill-this-value]"
39-
tokenUrl: "[fill-this-value]"
59+
tls:
60+
enabled: true
61+
bundle: "keycloak"
62+
audience: account
63+
authorizationUrl: "[fill-this-value]" # keycloak auth endpoint
64+
code: keycloak
4065
defaultScopes:
41-
"[fill-this-value]": "[fill-this-value]"
42-
containerScopes:
43-
"[fill-this-value]": "[fill-this-value]"
44-
# Here you can set custom user and admin groups
45-
# - adminGroup will have same rights that Platform.Admin
46-
# - userGroup will have same rights that Organization.User
47-
# - viewerGroup will have same rights that Organization.Viewer
48-
# adminGroup : "myCustomAdminGroup"
49-
# userGroup : "myCustomUserGroup"
50-
# userGroup : "myCustomViewerGroup"
51-
storage:
52-
host: "localhost"
53-
reader:
54-
username: "storage_reader_username"
55-
password: "storage_reader_password"
56-
admin:
57-
username: "storage_admin_username"
58-
password: "storage_admin_password"
59-
eventbus:
60-
host: "localhost"
61-
username: "eventbus_admin_username"
62-
password: "eventbus_admin_password"
63-
blobPersistence:
64-
path: /tmp/cosmotech-api-data-dev
65-
argo:
66-
base-uri: "http://localhost:2746"
67-
azure:
68-
credentials:
69-
# TODO Fill these values or reach out to the Cosmo Tech Platform Team for support
70-
tenantId: "e413b834-8be8-4822-a370-be619545cb49"
66+
openid: OpenId Scope
67+
identity:
7168
clientId: "[fill-this-value]"
7269
clientSecret: "[fill-this-value]"
73-
dataWarehouseCluster:
74-
baseUri: "https://phoenixdev.westeurope.kusto.windows.net"
75-
options:
76-
ingestionUri: "https://ingest-phoenixdev.westeurope.kusto.windows.net"
70+
tenantId: "[fill-this-value]" # NAMESPACE
71+
serverBaseUrl: "[fill-this-value]" # e.g https://kubernetes.cosmotech.com/keycloak
72+
tokenUrl: "[fill-this-value]" # eg. https://kubernetes.cosmotech.com/keycloak/realms/brewery/protocol/openid-connect/token
73+
metrics:
74+
enabled: false
75+
argo:
76+
base-uri: "http://localhost:2746"
77+
workflows:
78+
namespace: "[fill-this-value]" # NAMESPACE
79+
service-account-name: "[fill-this-value]" # e.g argo-workflows-$NAMESPACE-service-account
80+
nodePoolLabel: ""
81+
loki:
82+
# base Url of Loki where to query logs
83+
baseUrl: http://localhost:3100
84+
containerRegistry:
85+
host: "[fill-this-value]"
86+
password: "[fill-this-value]"
87+
provider: "[fill-this-value]"
88+
registryPassword: "[fill-this-value]"
89+
registryUrl: "[fill-this-value]"
90+
registryUserName: "[fill-this-value]"
91+
scheme: https
92+
username: "[fill-this-value]"
93+
images:
94+
scenario-fetch-parameters: cosmo-tech/fetch-scenario-parameters
95+
send-datawarehouse: cosmo-tech/azure-data-explorer-connector
96+
scenario-data-upload: cosmo-tech/azure-storage-publish:latest
97+
containers:
98+
- name: "ADTTwingraphImport"
99+
imageRegistry: "ghcr.io"
100+
imageName: "cosmo-tech/adt-twincache-connector"
101+
imageVersion: "0.3.0"
102+
- name: "AzureStorageTwingraphImport"
103+
imageRegistry: "ghcr.io"
104+
imageName: "cosmo-tech/azstorage-twincache-connector"
105+
imageVersion: "1.2.0"
106+
- name: "TwincacheConnector"
107+
imageRegistry: "ghcr.io"
108+
imageName: "cosmo-tech/twincache-connector"
109+
imageVersion: "0.4.1"
110+
twincache:
111+
host: "localhost"
112+
password: "[fill-this-value]"
113+
port: 6379
114+
tls:
115+
enabled: false
116+
username: default
117+
internalResultServices:
118+
enabled: false
77119
eventBus:
78-
baseUri: "amqps://phoenixdev.servicebus.windows.net"
79-
containerRegistries:
80-
solutions: "localhost:5000"
120+
enabled: false
121+
host: "[fill-this-value]" #e.g rabbitmq-NAMESPACE.NAMESPACE.svc.cluster.local
122+
listener:
123+
password: "[fill-this-value]"
124+
username: "[fill-this-value]"
125+
port: 5672
126+
sender:
127+
password: "[fill-this-value]"
128+
username: "[fill-this-value]"
129+
tls:
130+
enabled: false
131+
storage:
132+
admin:
133+
password: "[fill-this-value]"
134+
username: "[fill-this-value]"
135+
host: "[fill-this-value]" # postgresql-NAMESPACE.NAMESPACE.svc.cluster.local
136+
port: 5432
137+
reader:
138+
password: "[fill-this-value]"
139+
username: cosmotech_api_reader
140+
writer:
141+
password: "[fill-this-value]"
142+
username: cosmotech_api_writer
143+
144+

0 commit comments

Comments
 (0)