Skip to content
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

[rest-sources-backend] Update configmap variables #282

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/radar-rest-sources-backend/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "4.4.4"
description: A Helm chart for the backend application of RADAR-base Rest Sources Authorizer
name: radar-rest-sources-backend
version: 1.2.1
version: 1.2.2
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/radar-rest-sources-backend
Expand Down
4 changes: 3 additions & 1 deletion charts/radar-rest-sources-backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# radar-rest-sources-backend
[![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/radar-rest-sources-backend)](https://artifacthub.io/packages/helm/radar-base/radar-rest-sources-backend)

![Version: 1.2.1](https://img.shields.io/badge/Version-1.2.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 4.4.4](https://img.shields.io/badge/AppVersion-4.4.4-informational?style=flat-square)
![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: 4.4.4](https://img.shields.io/badge/AppVersion-4.4.4-informational?style=flat-square)

A Helm chart for the backend application of RADAR-base Rest Sources Authorizer

Expand Down Expand Up @@ -85,6 +85,8 @@ A Helm chart for the backend application of RADAR-base Rest Sources Authorizer
| serverName | string | `"localhost"` | Resolvable server name, needed to find the advertised URL and callback URL |
| managementportal_url | string | `"http://management-portal:8080/managementportal"` | URL of the Management Portal |
| client_secret | string | `"secret"` | OAuth2 client secret of the radar-rest-sources-backend client from Management Portal |
| public_key_endpoints | list | `[]` | List of public key endpoints for token verification |
| auth_url | string | `"http://management-portal:8080/managementportal/oauth/token"` | Auth url for MP client |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we change the default to hydra?

| restSourceClients.fitbit.enable | bool | `false` | set to true, if Fitbit client should be used |
| restSourceClients.fitbit.sourceType | string | `"FitBit"` | Type of the data sources |
| restSourceClients.fitbit.authorizationEndpoint | string | `"https://www.fitbit.com/oauth2/authorize"` | Authorization endpoint for Fitbit authentication and authorization |
Expand Down
7 changes: 7 additions & 0 deletions charts/radar-rest-sources-backend/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,17 @@ data:
auth:
# Management Portal URL
managementPortalUrl: {{ .Values.managementportal_url }}
# OAuth2 Auth URL for MP Client
authUrl: {{ .Values.auth_url }}
# OAuth2 Client id of rest sources authorizer backend
clientId: radar_rest_sources_auth_backend
# OAuth2 Client Secret of rest sources authorizer backend client
clientSecret: {{ .Values.client_secret }}
# List of public key endpoints for token verification
jwksUrls:
{{- range .Values.public_key_endpoints }}
- {{ . | quote }}
{{ end -}}

database:
driver: org.postgresql.Driver
Expand Down
7 changes: 7 additions & 0 deletions charts/radar-rest-sources-backend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,13 @@ managementportal_url: http://management-portal:8080/managementportal
# -- OAuth2 client secret of the radar-rest-sources-backend client from Management Portal
client_secret: secret

# -- List of public key endpoints for token verification
public_key_endpoints: []
# - https://localhost/managementportal/oauth/token_key

# -- Auth url for MP client
auth_url: http://management-portal:8080/managementportal/oauth/token

restSourceClients:
fitbit:
# -- set to true, if Fitbit client should be used
Expand Down
Loading