Skip to content

Commit 2931b23

Browse files
authored
Merge pull request #23 from linuxfoundation/jme/LFXV2-213
update finalizer claims; fix heimdall key, fix authelia
2 parents 3cc6f02 + acdfd9f commit 2931b23

File tree

5 files changed

+24
-48
lines changed

5 files changed

+24
-48
lines changed

charts/lfx-platform/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ apiVersion: v2
55
name: lfx-platform
66
description: LFX Platform v2 Helm chart
77
type: application
8-
version: 0.1.4
8+
version: 0.1.6
99
icon: https://github.com/linuxfoundation/lfx-v2-helm/raw/main/img/lfx-logo-color.svg
1010
dependencies:
1111
- name: traefik

charts/lfx-platform/templates/authelia/httproute.yaml

Lines changed: 0 additions & 22 deletions
This file was deleted.

charts/lfx-platform/templates/authelia/https-redirect-httproute.yaml

Lines changed: 0 additions & 23 deletions
This file was deleted.

charts/lfx-platform/templates/heimdall/heimdall-signer-cert.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
{{/*
66
Generate a cert for Heimdall on install of Chart
77
TODO: Create RBAC rule to limit secret access to heimdall Pods
8+
TODO: Update to a 4096 bit key instead of 2048, sort out PS512 vs PS256
89
*/}}
9-
{{- $heimdallCert := genPrivateKey "rsa" -}}
10+
{{- $heimdallCert := genCA "foo" 365 }}
1011

1112
apiVersion: v1
1213
kind: Secret
@@ -22,5 +23,5 @@ metadata:
2223
helm.sh/hook-weight: "0"
2324
helm.sh/hook-delete-policy: before-hook-creation
2425
data:
25-
"signer.pem": "{{ $heimdallCert | b64enc }}"
26+
"signer.pem": "{{ $heimdallCert.Key | b64enc }}"
2627
{{- end }}

charts/lfx-platform/values.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,24 @@ heimdall:
198198
signer:
199199
key_store:
200200
path: /heimdall/cert/signer.pem
201+
claims: |
202+
{
203+
"principal": {{
204+
eq .Subject.ID "_anonymous"
205+
| ternary
206+
"_anonymous"
207+
(or
208+
.Subject.Attributes.username
209+
(list "clients@" .Subject.Attributes.client_id | join ""))
210+
| quote
211+
}}
212+
{{ if .Outputs.authelia_userinfo.email -}},
213+
"email": {{ quote .Outputs.authelia_userinfo.email }}
214+
{{ end -}}
215+
{{ if .Values.aud -}},
216+
"aud": {{ quote .Values.aud }}
217+
{{ end -}}
218+
}
201219
202220
default_rule:
203221
execute:
@@ -252,6 +270,8 @@ mailpit:
252270
# Authelia configuration
253271
authelia:
254272
enabled: true
273+
ingress:
274+
enabled: true
255275
secret:
256276
additionalSecrets:
257277
authelia-jwks-keys: {}

0 commit comments

Comments
 (0)