-
Notifications
You must be signed in to change notification settings - Fork 3
Add workload.yaml descriptors for OpenChoreo source builds #431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| apiVersion: openchoreo.dev/v1alpha1 | ||
|
|
||
| metadata: | ||
| name: ndx-audit-service | ||
|
|
||
| endpoints: | ||
| - name: api | ||
| port: 3001 | ||
| type: REST | ||
|
|
||
| configurations: | ||
| env: | ||
| - name: PORT | ||
| value: "3001" | ||
| - name: DB_TYPE | ||
| value: postgres | ||
| - name: DB_HOST | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: ndx-db-secrets | ||
| key: host | ||
| - name: DB_PORT | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: ndx-db-secrets | ||
| key: port | ||
| - name: DB_USERNAME | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: ndx-db-secrets | ||
| key: username | ||
| - name: DB_PASSWORD | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: ndx-db-secrets | ||
| key: password | ||
| - name: DB_NAME | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: ndx-db-secrets | ||
| key: database | ||
| - name: LOG_LEVEL | ||
| value: info |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| apiVersion: openchoreo.dev/v1alpha1 | ||
|
|
||
| metadata: | ||
| name: ndx-consent-engine | ||
|
|
||
| endpoints: | ||
| - name: api | ||
| port: 8081 | ||
| type: REST | ||
|
|
||
| connections: | ||
| - component: ndx-audit-service | ||
| endpoint: api | ||
| visibility: project | ||
| envBindings: | ||
| address: AUDIT_SERVICE_URL | ||
|
|
||
| configurations: | ||
| env: | ||
| - name: PORT | ||
| value: "8081" | ||
| - name: ENVIRONMENT | ||
| value: production | ||
| - name: LOG_LEVEL | ||
| value: info | ||
| - name: LOG_FORMAT | ||
| value: json | ||
| - name: DB_HOST | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: ndx-db-secrets | ||
| key: host | ||
| - name: DB_PORT | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: ndx-db-secrets | ||
| key: port | ||
| - name: DB_USERNAME | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: ndx-db-secrets | ||
| key: username | ||
| - name: DB_PASSWORD | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: ndx-db-secrets | ||
| key: password | ||
| - name: DB_NAME | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: ndx-db-secrets | ||
| key: database | ||
| - name: DB_SSLMODE | ||
| value: disable | ||
| - name: RUN_MIGRATION | ||
| value: "false" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| apiVersion: openchoreo.dev/v1alpha1 | ||
|
|
||
| metadata: | ||
| name: ndx-orchestration-engine | ||
|
|
||
| endpoints: | ||
| - name: api | ||
| port: 4000 | ||
| type: GraphQL | ||
| visibility: | ||
| - external | ||
|
|
||
| connections: | ||
| - component: ndx-consent-engine | ||
| endpoint: api | ||
| visibility: project | ||
| envBindings: | ||
| address: CONSENT_ENGINE_URL | ||
| - component: ndx-pdp | ||
| endpoint: api | ||
| visibility: project | ||
| envBindings: | ||
| address: PDP_URL | ||
| - component: ndx-audit-service | ||
| endpoint: api | ||
| visibility: project | ||
| envBindings: | ||
| address: AUDIT_SERVICE_URL | ||
|
|
||
| configurations: | ||
| env: | ||
| - name: SERVER_PORT | ||
| value: "4000" | ||
| - name: SERVER_HOST | ||
| value: 0.0.0.0 | ||
| - name: LOG_LEVEL | ||
| value: info | ||
| - name: ENVIRONMENT | ||
| value: production | ||
| files: | ||
| - name: config.json | ||
| mountPath: /app | ||
| value: | | ||
| { | ||
| "environment": "production", | ||
| "ceUrl": "http://ndx-consent-engine:8081/internal/api/v1", | ||
| "pdpUrl": "http://ndx-pdp:8082", | ||
| "auditConfig": { | ||
| "serviceUrl": "http://ndx-audit-service:3001", | ||
| "actorType": "SERVICE", | ||
| "actorId": "orchestration-engine" | ||
| }, | ||
| "providers": [], | ||
| "trustUpstream": true | ||
| } | ||
|
Comment on lines
+43
to
+55
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The mounted |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| apiVersion: openchoreo.dev/v1alpha1 | ||
|
|
||
| metadata: | ||
| name: ndx-pdp | ||
|
|
||
| endpoints: | ||
| - name: api | ||
| port: 8082 | ||
| type: REST | ||
|
|
||
| configurations: | ||
| env: | ||
| - name: PORT | ||
| value: "8082" | ||
| - name: ENVIRONMENT | ||
| value: production | ||
| - name: LOG_LEVEL | ||
| value: info | ||
| - name: LOG_FORMAT | ||
| value: json | ||
| - name: SERVICE_NAME | ||
| value: policy-decision-point | ||
| - name: DB_HOST | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: ndx-db-secrets | ||
| key: host | ||
| - name: DB_PORT | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: ndx-db-secrets | ||
| key: port | ||
| - name: DB_USERNAME | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: ndx-db-secrets | ||
| key: username | ||
| - name: DB_PASSWORD | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: ndx-db-secrets | ||
| key: password | ||
| - name: DB_NAME | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: ndx-db-secrets | ||
| key: database | ||
| - name: DB_SSLMODE | ||
| value: disable | ||
|
Comment on lines
+48
to
+49
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| - name: RUN_MIGRATION | ||
| value: "true" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| apiVersion: openchoreo.dev/v1alpha1 | ||
|
|
||
| metadata: | ||
| name: ndx-portal-backend | ||
|
|
||
| endpoints: | ||
| - name: api | ||
| port: 3000 | ||
| type: REST | ||
| visibility: | ||
| - external | ||
|
|
||
| connections: | ||
| - component: ndx-pdp | ||
| endpoint: api | ||
| visibility: project | ||
| envBindings: | ||
| address: CHOREO_PDP_CONNECTION_SERVICEURL | ||
| - component: ndx-audit-service | ||
| endpoint: api | ||
| visibility: project | ||
| envBindings: | ||
| address: CHOREO_AUDIT_CONNECTION_SERVICEURL | ||
|
|
||
| configurations: | ||
| env: | ||
| - name: PORT | ||
| value: "3000" | ||
| - name: CHOREO_OPENDIF_DB_HOSTNAME | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: ndx-db-secrets | ||
| key: host | ||
| - name: CHOREO_OPENDIF_DB_PORT | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: ndx-db-secrets | ||
| key: port | ||
| - name: CHOREO_OPENDIF_DB_USERNAME | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: ndx-db-secrets | ||
| key: username | ||
| - name: CHOREO_OPENDIF_DB_PASSWORD | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: ndx-db-secrets | ||
| key: password | ||
| - name: CHOREO_OPENDIF_DB_DATABASENAME | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: ndx-db-secrets | ||
| key: database | ||
| - name: DB_SSLMODE | ||
| value: disable | ||
|
Comment on lines
+54
to
+55
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The database SSL mode is explicitly disabled ( value: require |
||
| - name: RUN_MIGRATION | ||
| value: "true" | ||
| - name: AUTHORIZATION_MODE | ||
| value: fail_open_admin | ||
|
Comment on lines
+58
to
+59
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The authorization mode is set to |
||
| - name: LOG_LEVEL | ||
| value: info | ||
| - name: ASGARDEO_BASE_URL | ||
| value: http://thunder-service.thunder.svc.cluster.local:8090 | ||
| - name: ASGARDEO_CLIENT_ID | ||
| value: NDX_ADMIN_PORTAL | ||
| - name: ASGARDEO_CLIENT_SECRET | ||
| value: placeholder | ||
| - name: CHOREO_PDP_CONNECTION_CHOREOAPIKEY | ||
| value: placeholder | ||
|
Comment on lines
+66
to
+69
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The environment variables - name: ASGARDEO_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: ndx-asgardeo-secrets
key: client-secret
- name: CHOREO_PDP_CONNECTION_CHOREOAPIKEY
valueFrom:
secretKeyRef:
name: ndx-pdp-secrets
key: api-key |
||
| - name: ASGARDEO_MEMBER_PORTAL_CLIENT_ID | ||
| value: NDX_MEMBER_PORTAL | ||
| - name: ASGARDEO_ADMIN_PORTAL_CLIENT_ID | ||
| value: NDX_ADMIN_PORTAL | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| apiVersion: openchoreo.dev/v1alpha1 | ||
|
|
||
| metadata: | ||
| name: ndx-admin-portal | ||
|
|
||
| endpoints: | ||
| - name: web | ||
| port: 80 | ||
| type: HTTP | ||
| visibility: | ||
| - external | ||
|
|
||
| connections: | ||
| - component: ndx-portal-backend | ||
| endpoint: api | ||
| visibility: project | ||
| envBindings: | ||
| address: NDX_PORTAL_BACKEND_URL | ||
|
|
||
| configurations: | ||
| env: | ||
| - name: VITE_API_URL | ||
| value: "" | ||
| - name: VITE_LOGS_URL | ||
| value: "" | ||
| - name: VITE_IDP_CLIENT_ID | ||
| value: NDX_ADMIN_PORTAL | ||
| - name: VITE_IDP_BASE_URL | ||
| value: http://thunder-service.thunder.svc.cluster.local:8090 | ||
|
Comment on lines
+28
to
+29
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The value: "https://your-public-idp.com" # Replace with the actual public URL |
||
| - name: VITE_IDP_SCOPE | ||
| value: "openid profile email groups" | ||
| - name: VITE_IDP_ADMIN_ROLE | ||
| value: admin | ||
| - name: VITE_SIGN_IN_REDIRECT_URL | ||
| value: "" | ||
| - name: VITE_SIGN_OUT_REDIRECT_URL | ||
| value: "" | ||
|
Comment on lines
+22
to
+37
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Several configuration variables ( |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| apiVersion: openchoreo.dev/v1alpha1 | ||
|
|
||
| metadata: | ||
| name: ndx-consent-portal | ||
|
|
||
| endpoints: | ||
| - name: web | ||
| port: 80 | ||
| type: HTTP | ||
| visibility: | ||
| - external | ||
|
|
||
| connections: | ||
| - component: ndx-consent-engine | ||
| endpoint: api | ||
| visibility: project | ||
| envBindings: | ||
| address: NDX_CONSENT_ENGINE_URL | ||
| - component: ndx-portal-backend | ||
| endpoint: api | ||
| visibility: project | ||
| envBindings: | ||
| address: NDX_PORTAL_BACKEND_URL | ||
|
|
||
| configurations: | ||
| env: | ||
| - name: VITE_CONSENT_ENGINE_URL | ||
| value: "" | ||
| - name: VITE_API_URL | ||
| value: "" | ||
| - name: VITE_CLIENT_ID | ||
| value: NDX_CONSENT_PORTAL | ||
| - name: VITE_BASE_URL | ||
| value: http://thunder-service.thunder.svc.cluster.local:8090 | ||
|
Comment on lines
+33
to
+34
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The value: "https://your-public-idp.com" # Replace with the actual public URL |
||
| - name: VITE_SCOPE | ||
| value: "openid profile email" | ||
| - name: VITE_SIGN_IN_REDIRECT_URL | ||
| value: "" | ||
| - name: VITE_SIGN_OUT_REDIRECT_URL | ||
| value: "" | ||
|
Comment on lines
+27
to
+40
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Several configuration variables ( |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The database SSL mode is explicitly disabled (
DB_SSLMODE: disable) while the environment is set toproduction. This is a significant security risk as it allows for potential eavesdropping and man-in-the-middle attacks on sensitive data. It is strongly recommended to enable SSL for all database connections in production.