blob: ae67f394f0a9af156eac44110a42d57ceedaca71 [file] [log] [blame]
Giorgi Lekveishvili3fd5e4c2023-12-19 22:09:40 +04001apiVersion: hydra.ory.sh/v1alpha1
2kind: OAuth2Client
3metadata:
4 name: penpot
5 namespace: {{ .Release.Namespace }}
6spec:
7 grantTypes:
8 - authorization_code
9 responseTypes:
10 - code
11 scope: "openid profile email"
12 secretName: oauth2-credentials # TODO(gio): config
13 redirectUris:
14 - https://{{ .Values.Subdomain }}.{{ .Values.Network.Domain }}/api/auth/oauth/oidc/callback # TODO
15 hydraAdmin:
16 endpoint: /admin/clients
17 forwardedProto: https
18 port: 80
19 url: http://hydra-admin.esrt-core-auth.svc.cluster.local
20 tokenEndpointAuthMethod: client_secret_post
21---
Giorgi Lekveishvili3f689e32023-06-30 10:47:09 +040022apiVersion: helm.toolkit.fluxcd.io/v2beta1
23kind: HelmRelease
24metadata:
25 name: penpot
26 namespace: {{ .Release.Namespace }}
27spec:
28 chart:
29 spec:
30 chart: charts/penpot
31 sourceRef:
32 kind: GitRepository
33 name: pcloud
34 namespace: {{ .Global.Id }}
35 interval: 1m0s
36 values:
37 global:
38 postgresqlEnabled: true
39 redisEnabled: true
40 fullnameOverride: penpot
41 frontend:
42 ingress:
43 enabled: true
Giorgi Lekveishvili3fd5e4c2023-12-19 22:09:40 +040044 className: {{ .Values.Network.IngressClass }}
45 {{ if .Values.Network.CertificateIssuer }}
Giorgi Lekveishvili3f689e32023-06-30 10:47:09 +040046 annotations:
47 acme.cert-manager.io/http01-edit-in-place: "true"
Giorgi Lekveishvili3fd5e4c2023-12-19 22:09:40 +040048 cert-manager.io/cluster-issuer: "{{ .Values.Network.CertificateIssuer }}"
49 {{ end }}
Giorgi Lekveishvili3f689e32023-06-30 10:47:09 +040050 hosts:
Giorgi Lekveishvili3fd5e4c2023-12-19 22:09:40 +040051 - "{{ .Values.Subdomain }}.{{ .Values.Network.Domain }}"
Giorgi Lekveishvili3f689e32023-06-30 10:47:09 +040052 tls:
53 - hosts:
Giorgi Lekveishvili3fd5e4c2023-12-19 22:09:40 +040054 - "{{ .Values.Subdomain }}.{{ .Values.Network.Domain }}"
55 secretName: cert-{{ .Values.Subdomain }}.{{ .Values.Network.Domain }}
Giorgi Lekveishvili3f689e32023-06-30 10:47:09 +040056 persistence:
57 enabled: true
58 config:
Giorgi Lekveishvili3fd5e4c2023-12-19 22:09:40 +040059 publicURI: https://{{ .Values.Subdomain }}.{{ .Values.Network.Domain }}
Giorgi Lekveishvili3f689e32023-06-30 10:47:09 +040060 # flags: "enable-registration enable-login"
Giorgi Lekveishvili3fd5e4c2023-12-19 22:09:40 +040061 flags: "enable-login-with-oidc enable-registration enable-insecure-register disable-demo-users disable-demo-warning" # TODO(gio): remove enable-insecure-register?
Giorgi Lekveishvili3f689e32023-06-30 10:47:09 +040062 postgresql:
63 host: penpot-postgresql.{{ .Release.Namespace }}.svc.cluster.local
64 database: penpot
65 username: penpot
66 password: penpot
67 redis:
68 host: penpot-redis-headless.{{ .Release.Namespace }}.svc.cluster.local
Giorgi Lekveishvili3fd5e4c2023-12-19 22:09:40 +040069 providers:
70 oidc:
71 enabled: true
72 baseURI: https://hydra.{{ .Global.Domain }}
73 clientID: ""
74 clientSecret: ""
75 authURI: ""
76 tokenURI: ""
77 userURI: ""
78 roles: ""
79 rolesAttribute: ""
80 scopes: ""
81 nameAttribute: "name"
82 emailAttribute: "email"
83 existingSecret: oauth2-credentials
84 secretKeys:
85 oidcClientIDKey: client_id
86 oidcClientSecretKey: client_secret
Giorgi Lekveishvili3f689e32023-06-30 10:47:09 +040087 redis:
88 image:
89 tag: 7.0.8-debian-11-r16
90 postgresql:
91 image:
92 tag: 15.3.0-debian-11-r16
93 auth:
94 username: penpot
95 password: penpot
96 database: penpot