Skip to content

Commit

Permalink
Merge pull request #261 from RADAR-base/update_mp
Browse files Browse the repository at this point in the history
[management-portal] add support for auth server configs
  • Loading branch information
yatharthranjan authored Sep 27, 2024
2 parents de1ab0e + 3794f6a commit 9d18c7d
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 10 deletions.
14 changes: 7 additions & 7 deletions charts/management-portal/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "2.1.4"
description: A Helm chart for RADAR-Base Management Portal to manage projects and participants throughout RADAR-base.
name: management-portal
version: 1.2.2
version: 1.2.3
icon: "http://radar-base.org/wp-content/uploads/2022/09/Logo_RADAR-Base-RGB.png"
sources:
- https://github.com/RADAR-base/radar-helm-charts/tree/main/charts/management-portal
Expand All @@ -19,9 +19,9 @@ maintainers:
- email: keyvan@thehyve.nl
name: Keyvan Hedayati
url: https://www.thehyve.nl
- email: bastiaan@thehyve.nl
name: Bastiaan de Graaf
url: https://www.thehyve.nl/experts/bastiaan-de-graaf
- email: nivethika@thehyve.nl
name: Nivethika Mahasivam
url: https://www.thehyve.nl/experts/nivethika-mahasivam
- email: yatharthranjan89@gmail.com
name: Yatharth Ranjan
url: https://www.kcl.ac.uk/people/yatharth-ranjan
- email: mpgxvii@gmail.com
name: Pauline Conde
url: https://www.kcl.ac.uk/people/pauline-conde
9 changes: 6 additions & 3 deletions charts/management-portal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# management-portal
[![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/management-portal)](https://artifacthub.io/packages/helm/radar-base/management-portal)

![Version: 1.2.2](https://img.shields.io/badge/Version-1.2.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.1.4](https://img.shields.io/badge/AppVersion-2.1.4-informational?style=flat-square)
![Version: 1.2.3](https://img.shields.io/badge/Version-1.2.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.1.4](https://img.shields.io/badge/AppVersion-2.1.4-informational?style=flat-square)

A Helm chart for RADAR-Base Management Portal to manage projects and participants throughout RADAR-base.

Expand All @@ -14,8 +14,8 @@ A Helm chart for RADAR-Base Management Portal to manage projects and participant
| Name | Email | Url |
| ---- | ------ | --- |
| Keyvan Hedayati | <keyvan@thehyve.nl> | <https://www.thehyve.nl> |
| Bastiaan de Graaf | <bastiaan@thehyve.nl> | <https://www.thehyve.nl/experts/bastiaan-de-graaf> |
| Nivethika Mahasivam | <nivethika@thehyve.nl> | <https://www.thehyve.nl/experts/nivethika-mahasivam> |
| Yatharth Ranjan | <yatharthranjan89@gmail.com> | <https://www.kcl.ac.uk/people/yatharth-ranjan> |
| Pauline Conde | <mpgxvii@gmail.com> | <https://www.kcl.ac.uk/people/pauline-conde> |

## Source Code

Expand Down Expand Up @@ -86,6 +86,9 @@ A Helm chart for RADAR-Base Management Portal to manage projects and participant
| identity_server.server_url | string | `nil` | The publicly accessible server URL for the IDP; needed when deviating from http(s)://server_name/kratos |
| identity_server.server_admin_url | string | `"http://kratos-admin"` | The admin server URL for the IDP used for service-to-service requests. Only needs to be accessible from inside the cluster where the managementportal resides |
| identity_server.login_url | string | `nil` | The publicly accessible login URL for the IDP; needed when deviating from http(s)://server_name/kratos-ui |
| authserver.server_url | string | `"http://hydra:4444"` | The publicly accessible server URL for the authserver; needed when deviating from http(s)://server_name/auth |
| authserver.server_admin_url | string | `"http://hydra:4445"` | The admin server URL for the authserver used for service-to-service requests. Only needs to be accessible from inside the cluster where the managementportal resides |
| authserver.login_url | string | `"http://localhost:4444"` | The publicly accessible login URL for the authserver; needed when deviating from http(s)://server_name/auth/login |
| managementportal.catalogue_server_enable_auto_import | bool | `false` | set to true, if automatic source-type import from catalogue server should be enabled |
| managementportal.common_privacy_policy_url | string | `"http://info.thehyve.nl/radar-cns-privacy-policy"` | Override with a publicly resolvable url of the privacy-policy url for your set-up. This can be overridden on a project basis as well. |
| managementportal.oauth_checking_key_aliases_0 | string | `"radarbase-managementportal-ec"` | Keystore alias to sign JWT tokens from Management Portal |
Expand Down
6 changes: 6 additions & 0 deletions charts/management-portal/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ spec:
value: {{ default (printf "%s://%s/kratos-ui" $https .Values.server_name) .Values.identity_server.login_url }}
- name: MANAGEMENTPORTAL_IDENTITY_SERVER_SERVER_ADMIN_URL
value: {{ .Values.identity_server.server_admin_url }}
- name: MANAGEMENTPORTAL_AUTHSERVER_SERVERURL
value: {{ .Values.authserver.server_url | quote }}
- name: MANAGEMENTPORTAL_AUTHSERVER_LOGINURL
value: {{ .Values.authserver.login_url | quote }}
- name: MANAGEMENTPORTAL_AUTHSERVER_SERVERADMINURL
value: {{ .Values.authserver.server_admin_url | quote }}
- name: MANAGEMENTPORTAL_COMMON_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
Expand Down
8 changes: 8 additions & 0 deletions charts/management-portal/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,14 @@ identity_server:
# -- The publicly accessible login URL for the IDP; needed when deviating from http(s)://server_name/kratos-ui
login_url:

authserver:
# -- The publicly accessible server URL for the authserver; needed when deviating from http(s)://server_name/auth
server_url: http://hydra:4444
# -- The admin server URL for the authserver used for service-to-service requests. Only needs to be accessible from inside the cluster where the managementportal resides
server_admin_url: http://hydra:4445
# -- The publicly accessible login URL for the authserver; needed when deviating from http(s)://server_name/auth/login
login_url: http://localhost:4444

managementportal:
# -- set to true, if automatic source-type import from catalogue server should be enabled
catalogue_server_enable_auto_import: false
Expand Down

0 comments on commit 9d18c7d

Please sign in to comment.