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

Add values for oidc validation config. #45

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
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
4 changes: 4 additions & 0 deletions charts/wharf-helm/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ This chart tries to follow [SemVer 2.0.0](https://semver.org/).
https://changelog.md/
-->

## v3.2.5

- Added settings for validation of OpenID Connect authentication tokens. (#45)

## v3.2.4

- Added support for Ingress of apiVersion `extensions/v1beta1`,
Expand Down
2 changes: 1 addition & 1 deletion charts/wharf-helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: wharf-helm
description: Deploy Wharf to Kubernetes
type: application
version: 3.2.4
version: 3.2.5
home: https://github.com/iver-wharf/wharf-helm/blob/master/charts/wharf-helm
maintainers:
- name: jilleJr
Expand Down
8 changes: 8 additions & 0 deletions charts/wharf-helm/templates/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ spec:
{{- .basicAuth | include "wharf-helm.environmentValue" | nindent 14 }}
- name: WHARF_HTTP_BINDADDRESS
{{- .bindAddress | include "wharf-helm.environmentValue" | nindent 14 }}
- name: WHARF_HTTP_OIDC_ENABLE
{{- .enable }}
- name: WHARF_HTTP_OIDC_ISSUERURL
{{- .issuerURL }}
- name: WHARF_HTTP_OIDC_AUDIENCEURL
{{- .audienceURL }}
- name: WHARF_HTTP_OIDC_KEYSURL
{{- .keysURL }}
{{- end }}{{/* with .Values.api.http */}}

{{- if .Values.global.isProduction }}
Expand Down
14 changes: 14 additions & 0 deletions charts/wharf-helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,20 @@ api:
# Supports ["Smart environment fields"](./README.md#smart-environment-fields)
bindAddress: "0.0.0.0:8080"

# -- Settings for the validation of OpenId Connect authentication.
# This is a sample config for an azure id provider (app registration).
# One way to get this information about any token from an authentication flow is to use a flow dissection tool
# like https://oauth.tools
oidc:
# -- Unless enabled the backend will not preform any validation on any tokens.
enable: false
# -- In azure this is a way of differentiation between different app registrations.
issuerURL: 'https://sts.windows.net/841df554-ef9d-48b1-bc6e-44cf8543a8fc/'
# -- This name is set inside the app registration and can be used to differentiate between different token types.
audienceURL: 'api://wharf-internal'
# -- Keys are used to validate the token signature.
keysURL: 'https://login.microsoftonline.com/841df554-ef9d-48b1-bc6e-44cf8543a8fc/discovery/v2.0/keys'

# Settings for Wharf API's database connection
db:
# -- Currently only `"postgres"` is a valid value here. Set to `null` or
Expand Down