generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add technical user deletion logic and adjust exception handling…
… for encryption (#50) Reviewed-By: Evelyn Gurschler <[email protected]>
- Loading branch information
Showing
35 changed files
with
1,103 additions
and
73 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
############################################################### | ||
# Copyright (c) 2024 BMW Group AG | ||
# Copyright 2024 SAP SE or an SAP affiliate company and ssi-dim-middle-layer contributors. | ||
# | ||
# See the NOTICE file(s) distributed with this work for additional | ||
# information regarding copyright ownership. | ||
# | ||
# This program and the accompanying materials are made available under the | ||
# terms of the Apache License, Version 2.0 which is available at | ||
# https://www.apache.org/licenses/LICENSE-2.0. | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
############################################################### | ||
|
||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: dim | ||
spec: | ||
destination: | ||
namespace: product-iam | ||
server: 'https://kubernetes.default.svc' | ||
source: | ||
path: charts/dim | ||
repoURL: 'https://github.com/sap/ssi-dim-middle-layer.git' | ||
targetRevision: main | ||
plugin: | ||
env: | ||
- name: AVP_SECRET | ||
value: vault-secret | ||
- name: helm_args | ||
value: '-f values.yaml -f ../../consortia/environments/values-rc.yaml' | ||
project: project-portal | ||
syncPolicy: | ||
automated: | ||
prune: 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 |
---|---|---|
|
@@ -43,7 +43,7 @@ dim: | |
tag: "main" | ||
imagePullPolicy: "Always" | ||
swaggerEnabled: true | ||
rootDirectoryId: "27fee02a-e265-4cfc-af70-4f217a33840b" | ||
rootDirectoryId: "ee464a81-fca4-431d-8315-5db5e49b4c3c" | ||
operatorId: "27fee02a-e265-4cfc-af70-4f217a33840b" | ||
|
||
migrations: | ||
|
@@ -63,7 +63,7 @@ processesworker: | |
adminMail: "[email protected]" | ||
clientIdCisCentral: "<path:portal/data/dim/dev/dim#cisClientId>" | ||
clientSecretCisCentral: "<path:portal/data/dim/dev/dim#cisClientSecret>" | ||
authUrl: "https://catena-x-int-dim.authentication.eu10.hana.ondemand.com" | ||
authUrl: "https://catena-x-dev-dim.authentication.eu10.hana.ondemand.com" | ||
subaccount: | ||
# -- Url to the subaccount service api | ||
baseUrl: "https://accounts-service.cfapps.eu10.hana.ondemand.com" | ||
|
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 |
---|---|---|
@@ -0,0 +1,105 @@ | ||
############################################################### | ||
# Copyright (c) 2024 BMW Group AG | ||
# Copyright 2024 SAP SE or an SAP affiliate company and ssi-dim-middle-layer contributors. | ||
# | ||
# See the NOTICE file(s) distributed with this work for additional | ||
# information regarding copyright ownership. | ||
# | ||
# This program and the accompanying materials are made available under the | ||
# terms of the Apache License, Version 2.0 which is available at | ||
# https://www.apache.org/licenses/LICENSE-2.0. | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
############################################################### | ||
|
||
ingress: | ||
enabled: true | ||
className: "nginx" | ||
annotations: | ||
nginx.ingress.kubernetes.io/use-regex: "true" | ||
nginx.ingress.kubernetes.io/enable-cors: "true" | ||
nginx.ingress.kubernetes.io/proxy-body-size: "8m" | ||
nginx.ingress.kubernetes.io/cors-allow-origin: "http://localhost:3000, https://*.dev.demo.catena-x.net" | ||
tls: | ||
- secretName: "tls-secret" | ||
hosts: | ||
- "dim-rc.dev.demo.catena-x.net" | ||
hosts: | ||
- host: "dim-rc.dev.demo.catena-x.net" | ||
paths: | ||
- path: "/api/dim" | ||
pathType: "Prefix" | ||
backend: | ||
port: 8080 | ||
|
||
dim: | ||
image: | ||
tag: "main" | ||
imagePullPolicy: "Always" | ||
swaggerEnabled: true | ||
rootDirectoryId: "ee464a81-fca4-431d-8315-5db5e49b4c3c" | ||
operatorId: "27fee02a-e265-4cfc-af70-4f217a33840b" | ||
|
||
migrations: | ||
image: | ||
tag: "main" | ||
imagePullPolicy: "Always" | ||
logging: | ||
default: "Debug" | ||
|
||
processesworker: | ||
image: | ||
tag: "main" | ||
imagePullPolicy: "Always" | ||
logging: | ||
default: "Debug" | ||
dim: | ||
adminMail: "[email protected]" | ||
clientIdCisCentral: "<path:portal/data/dim/dev/dim#cisClientId>" | ||
clientSecretCisCentral: "<path:portal/data/dim/dev/dim#cisClientSecret>" | ||
authUrl: "https://catena-x-dev-dim.authentication.eu10.hana.ondemand.com" | ||
subaccount: | ||
# -- Url to the subaccount service api | ||
baseUrl: "https://accounts-service.cfapps.eu10.hana.ondemand.com" | ||
entitlement: | ||
# -- Url to the entitlement service api | ||
baseUrl: "https://entitlements-service.cfapps.eu10.hana.ondemand.com" | ||
cf: | ||
clientId: "<path:portal/data/dim/dev/cf#clientId>" | ||
clientSecret: "<path:portal/data/dim/dev/cf#clientSecret>" | ||
tokenAddress: "https://login.cf.eu10.hana.ondemand.com/oauth/token" | ||
# -- Url to the cf service api | ||
baseUrl: "https://api.cf.eu10.hana.ondemand.com" | ||
grantType: "client_credentials" | ||
callback: | ||
scope: "openid" | ||
grantType: "client_credentials" | ||
# -- Provide client-id for callback. | ||
clientId: "<path:portal/data/dim/callback#clientId>" | ||
# -- Client-secret for callback client-id. Secret-key 'callback-client-secret'. | ||
clientSecret: "<path:portal/data/dim/dev/callback#clientSecret>" | ||
tokenAddress: "http://centralidp-rc.dev.demo.catena-x.net/auth/realms/CX-Central/protocol/openid-connect/token" | ||
# -- Url to the cf service api | ||
baseAddress: "https://portal-backend-rc.dev.demo.catena-x.net" | ||
technicalUserCreation: | ||
encryptionConfigs: | ||
index0: | ||
encryptionKey: "<<path:portal/data/dim/dev/technicaluser#technicalusercreation-encryption-key0>" | ||
|
||
idp: | ||
address: "https://centralidp-rc.dev.demo.catena-x.net" | ||
jwtBearerOptions: | ||
tokenValidationParameters: | ||
validAudience: "DIM-Middle-Layer" | ||
|
||
postgresql: | ||
auth: | ||
postgrespassword: "<path:portal/data/dim/dev/postgres#postgres-password>" | ||
password: "<path:portal/data/dim/dev/postgres#password>" | ||
replicationPassword: "<path:portal/data/dim/dev/postgres#replication-password>" |
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
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
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
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.