-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added role authentication trigger
- Loading branch information
Mathias Brunkow Moser
committed
Nov 30, 2023
1 parent
4ffdd21
commit cd2e4b2
Showing
10 changed files
with
172 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ backend: | |
|
||
edc: | ||
xApiKey: <path:material-pass/data/beta/edc/oauth#api.key> | ||
participantId: <path:material-pass/data/beta/edc/participant#bpnNumber> | ||
participantId: &bpn <path:material-pass/data/beta/edc/participant#bpnNumber> | ||
endpoint: "materialpass.beta.demo.catena-x.net/consumer" | ||
|
||
hostname: *hostname | ||
|
@@ -89,11 +89,22 @@ frontend: | |
# Product Passport UI Configuration | ||
backend: | ||
hostname: "materialpass.beta.demo.catena-x.net" | ||
|
||
supportContact: | ||
adminEmail: "[email protected]" | ||
|
||
portal: | ||
hostname: "portal.beta.demo.catena-x.net" | ||
|
||
oauth: | ||
hostname: "centralidp.int.demo.catena-x.net" | ||
hostname: "centralidp.data.demo.catena-x.net" | ||
techUser: | ||
clientId: <path:material-pass/data/int/backend#clientId> | ||
clientSecret: <path:material-pass/data/int/backend#clientSecret> | ||
realm: <path:material-pass/data/int/oauth#realm> | ||
appId: <path:material-pass/data/int/oauth#appId> | ||
clientId: <path:material-pass/data/data/backend#clientId> | ||
clientSecret: <path:material-pass/data/data/backend#clientSecret> | ||
realm: <path:material-pass/data/data/oauth#realm> | ||
appId: <path:material-pass/data/data/oauth#appId> | ||
bpnCheck: | ||
enabled: true | ||
bpn: *bpn | ||
roleCheck: | ||
enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ backend: | |
|
||
edc: | ||
xApiKey: <path:material-pass/data/dev/edc/oauth#api.key> | ||
participantId: <path:material-pass/data/dev/edc/participant#bpnNumber> | ||
participantId: &bpn <path:material-pass/data/dev/edc/participant#bpnNumber> | ||
endpoint: "materialpass.dev.demo.catena-x.net/consumer" | ||
|
||
hostname: *hostname | ||
|
@@ -91,10 +91,21 @@ frontend: | |
backend: | ||
hostname: *hostname | ||
|
||
supportContact: | ||
adminEmail: "[email protected]" | ||
|
||
portal: | ||
hostname: "portal.dev.demo.catena-x.net" | ||
|
||
oauth: | ||
hostname: "centralidp.dev.demo.catena-x.net" | ||
techUser: | ||
clientId: <path:material-pass/data/int/backend#clientId> | ||
clientSecret: <path:material-pass/data/int/backend#clientSecret> | ||
realm: <path:material-pass/data/int/oauth#realm> | ||
appId: <path:material-pass/data/int/oauth#appId> | ||
clientId: <path:material-pass/data/dev/backend#clientId> | ||
clientSecret: <path:material-pass/data/dev/backend#clientSecret> | ||
realm: <path:material-pass/data/dev/oauth#realm> | ||
appId: <path:material-pass/data/dev/oauth#appId> | ||
bpnCheck: | ||
enabled: true | ||
bpn: *bpn | ||
roleCheck: | ||
enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ backend: | |
- *hostname | ||
edc: | ||
xApiKey: <path:material-pass/data/int/edc/oauth#api.key> | ||
participantId: <path:material-pass/data/int/edc/participant#bpnNumber> | ||
participantId: &bpn <path:material-pass/data/int/edc/participant#bpnNumber> | ||
endpoint: "materialpass.int.demo.catena-x.net/consumer" | ||
|
||
hostname: *hostname | ||
|
@@ -88,10 +88,22 @@ frontend: | |
backend: | ||
hostname: *hostname | ||
|
||
supportContact: | ||
adminEmail: "[email protected]" | ||
|
||
portal: | ||
hostname: "portal.int.demo.catena-x.net" | ||
|
||
|
||
oauth: | ||
hostname: "centralidp.int.demo.catena-x.net" | ||
techUser: | ||
clientId: <path:material-pass/data/int/backend#clientId> | ||
clientSecret: <path:material-pass/data/int/backend#clientSecret> | ||
realm: <path:material-pass/data/int/oauth#realm> | ||
appId: <path:material-pass/data/int/oauth#appId> | ||
bpnCheck: | ||
enabled: true | ||
bpn: *bpn | ||
roleCheck: | ||
enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,61 +28,6 @@ name: "digital-product-pass" | |
replicaCount: 1 | ||
namespace: "" | ||
|
||
frontend: | ||
name: "dpp-frontend" | ||
image: | ||
repository: docker.io/tractusx/digital-product-pass-frontend | ||
pullPolicy: Always | ||
# -- Existing image pull secret to use to [obtain the container image from private registries](https://kubernetes.io/docs/concepts/containers/images/#using-a-private-registry) | ||
imagePullSecrets: [] | ||
|
||
service: | ||
# -- [Service type](https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types) to expose the running application on a set of Pods as a network service | ||
type: ClusterIP | ||
port: 8080 | ||
|
||
# -- ingress declaration to expose the dpp-frontend service | ||
ingress: | ||
enabled: false | ||
hosts: [] | ||
|
||
# -- product passport UI configuration | ||
|
||
# -- url of the digital product pass backend service | ||
backend: | ||
hostname: "" | ||
|
||
# -- api timeouts | ||
api: | ||
# -- max retries for getting status | ||
max_retries: 30 | ||
# -- default timeout - 90 seconds in milliseconds | ||
timeout: 90000 | ||
# -- delay from getting status | ||
delay: 1000 | ||
|
||
# -- irs api timeouts | ||
irs: | ||
# -- request timeout delay | ||
requestDelay: 30000 | ||
# -- maximum waiting time to get the irs job status | ||
maxWaitingTime: 30 | ||
|
||
# -- oauth configuration | ||
oauth: | ||
# -- url of the identity provider service | ||
hostname: "" | ||
# -- technical user keycloak central id credentials | ||
# -- note: this credentials need to have access to the Discovery Finder, BPN Discovery and EDC Discovery | ||
techUser: | ||
clientId: "<Add client id here>" | ||
clientSecret: "<Add client secret here>" | ||
realm: "" | ||
appId: "" | ||
onLoad: "login-required" | ||
|
||
|
||
|
||
# -- Backend configuration | ||
backend: | ||
name: "dpp-backend" | ||
|
@@ -112,7 +57,7 @@ backend: | |
# -- the secret for assesing the edc management API | ||
xApiKey: "<Add API key here>" | ||
# -- BPN Number | ||
participantId: "<Add participant id here>" | ||
participantId: &bpn "<Add participant id here>" | ||
# -- edc consumer connection configuration | ||
endpoint: "" | ||
apis: | ||
|
@@ -189,6 +134,73 @@ backend: | |
edcDiscovery: | ||
key: "bpn" | ||
|
||
frontend: | ||
name: "dpp-frontend" | ||
image: | ||
repository: docker.io/tractusx/digital-product-pass-frontend | ||
pullPolicy: Always | ||
# -- Existing image pull secret to use to [obtain the container image from private registries](https://kubernetes.io/docs/concepts/containers/images/#using-a-private-registry) | ||
imagePullSecrets: [] | ||
|
||
service: | ||
# -- [Service type](https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types) to expose the running application on a set of Pods as a network service | ||
type: ClusterIP | ||
port: 8080 | ||
|
||
# -- ingress declaration to expose the dpp-frontend service | ||
ingress: | ||
enabled: false | ||
hosts: [] | ||
|
||
# -- product passport UI configuration | ||
|
||
# -- url of the digital product pass backend service | ||
backend: | ||
hostname: "" | ||
|
||
supportContact: | ||
adminEmail: "[email protected]" | ||
|
||
portal: | ||
hostname: "" | ||
|
||
# -- api timeouts | ||
api: | ||
# -- max retries for getting status | ||
max_retries: 30 | ||
# -- default timeout - 90 seconds in milliseconds | ||
timeout: 90000 | ||
# -- delay from getting status | ||
delay: 1000 | ||
|
||
# -- irs api timeouts | ||
irs: | ||
# -- request timeout delay | ||
requestDelay: 30000 | ||
# -- maximum waiting time to get the irs job status | ||
maxWaitingTime: 30 | ||
|
||
# -- oauth configuration | ||
oauth: | ||
# -- url of the identity provider service | ||
hostname: "" | ||
# -- technical user keycloak central id credentials | ||
# -- note: this credentials need to have access to the Discovery Finder, BPN Discovery and EDC Discovery | ||
techUser: | ||
clientId: "<Add client id here>" | ||
clientSecret: "<Add client secret here>" | ||
realm: "" | ||
appId: "" | ||
onLoad: "login-required" | ||
# -- configure here the bpn check for the application | ||
bpnCheck: | ||
enabled: false | ||
# -- this bpn needs to be included in the user login information when the check is enabled | ||
bpn: *bpn | ||
# -- the role check checks if the user has access roles for the appId | ||
roleCheck: | ||
enabled: false | ||
|
||
# Following Catena-X Helm Best Practices @url: https://catenax-ng.github.io/docs/kubernetes-basics/helm | ||
# @url: https://cloud.google.com/blog/products/containers-kubernetes/kubernetes-best-practices-resource-requests-and-limits | ||
resources: | ||
|
@@ -206,4 +218,4 @@ nodeSelector: {} | |
tolerations: [] | ||
|
||
# [affinity](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity) to configure which nodes the pods can be scheduled on | ||
affinity: {} | ||
affinity: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.