blob: 986c13d0b244cb895a6bd4c1508243cb5dad088d [file] [log] [blame]
giolekva050609f2021-12-29 15:51:40 +04001apiVersion: helm.toolkit.fluxcd.io/v2beta1
2kind: HelmRelease
3metadata:
4 name: core-auth
Giorgi Lekveishvili7fb28bf2023-06-24 19:51:16 +04005 namespace: {{ .Release.Namespace }}
giolekva050609f2021-12-29 15:51:40 +04006spec:
Giorgi Lekveishvilic9211392023-06-12 18:30:14 +04007 dependsOn:
8 - name: core-auth-storage
Giorgi Lekveishvili7fb28bf2023-06-24 19:51:16 +04009 namespace: {{ .Release.Namespace }}
10 - name: ingress-private # TODO(giolekva): is this needed?
11 namespace: {{ .Global.Id }}-ingress-private
giolekva050609f2021-12-29 15:51:40 +040012 chart:
13 spec:
14 chart: charts/auth
15 sourceRef:
16 kind: GitRepository
17 name: pcloud
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040018 namespace: {{ .Global.Id }}
giolekva050609f2021-12-29 15:51:40 +040019 interval: 1m0s
20 values:
21 kratos:
22 fullnameOverride: kratos
23 image:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040024 repository: oryd/kratos
25 tag: v0.13.0
26 pullPolicy: IfNotPresent
27 # repository: giolekva/ory-kratos
28 # tag: latest
29 # pullPolicy: Always
giolekva050609f2021-12-29 15:51:40 +040030 service:
31 admin:
32 enabled: true
33 type: ClusterIP
34 port: 80
35 name: http
36 public:
37 enabled: true
38 type: ClusterIP
39 port: 80
40 name: http
41 ingress:
42 admin:
43 enabled: true
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040044 className: {{ .Global.Id }}-ingress-private
giolekva050609f2021-12-29 15:51:40 +040045 hosts:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040046 - host: kratos.p.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +040047 paths:
48 - path: /
49 pathType: Prefix
50 tls:
51 - hosts:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040052 - kratos.p.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +040053 public:
54 enabled: true
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040055 className: {{ .Global.PCloudEnvName }}-ingress-public
Giorgi Lekveishvili0c5b8be2023-05-31 14:15:52 +040056 annotations:
57 acme.cert-manager.io/http01-edit-in-place: "true"
58 cert-manager.io/cluster-issuer: {{ .Global.Id }}-public
giolekva050609f2021-12-29 15:51:40 +040059 hosts:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040060 - host: accounts.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +040061 paths:
62 - path: /
63 pathType: Prefix
64 tls:
65 - hosts:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040066 - accounts.{{ .Global.Domain }}
67 secretName: cert-accounts.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +040068 secret:
69 enabled: true
70 kratos:
Giorgi Lekveishvili0c5b8be2023-05-31 14:15:52 +040071 automigration:
72 enabled: true
giolekva050609f2021-12-29 15:51:40 +040073 development: false
Giorgi Lekveishvili0c5b8be2023-05-31 14:15:52 +040074 courier:
75 enabled: false
giolekva050609f2021-12-29 15:51:40 +040076 config:
77 version: v0.7.1-alpha.1
Giorgi Lekveishvili4257b902023-07-07 17:08:42 +040078 dsn: postgres://kratos:kratos@postgres.{{ .Global.Id }}-core-auth.svc:5432/kratos?sslmode=disable&max_conns=20&max_idle_conns=4
giolekva050609f2021-12-29 15:51:40 +040079 serve:
80 public:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040081 base_url: https://accounts.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +040082 cors:
83 enabled: true
84 debug: false
85 allow_credentials: true
86 allowed_origins:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040087 - https://{{ .Global.Domain }}
88 - https://*.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +040089 admin:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040090 base_url: https://kratos.p.{{ .Global.Domain }}/
giolekva050609f2021-12-29 15:51:40 +040091 selfservice:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040092 default_browser_return_url: https://accounts-ui.{{ .Global.Domain }}
Giorgi Lekveishvili0c5b8be2023-05-31 14:15:52 +040093 # whitelisted_return_urls:
94 # - https://accounts-ui.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +040095 methods:
96 password:
97 enabled: true
98 flows:
99 error:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400100 ui_url: https://accounts-ui.{{ .Global.Domain }}/error
giolekva050609f2021-12-29 15:51:40 +0400101 settings:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400102 ui_url: https://accounts-ui.{{ .Global.Domain }}/settings
giolekva050609f2021-12-29 15:51:40 +0400103 privileged_session_max_age: 15m
104 recovery:
105 enabled: false
106 verification:
107 enabled: false
108 logout:
109 after:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400110 default_browser_return_url: https://accounts-ui.{{ .Global.Domain }}/login
giolekva050609f2021-12-29 15:51:40 +0400111 login:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400112 ui_url: https://accounts-ui.{{ .Global.Domain }}/login
giolekva050609f2021-12-29 15:51:40 +0400113 lifespan: 10m
114 after:
115 password:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400116 default_browser_return_url: https://accounts-ui.{{ .Global.Domain }}/
giolekva050609f2021-12-29 15:51:40 +0400117 registration:
118 lifespan: 10m
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400119 ui_url: https://accounts-ui.{{ .Global.Domain }}/registration
giolekva050609f2021-12-29 15:51:40 +0400120 after:
121 password:
122 hooks:
123 -
124 hook: session
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400125 default_browser_return_url: https://accounts-ui.{{ .Global.Domain }}/
giolekva050609f2021-12-29 15:51:40 +0400126 log:
127 level: debug
128 format: text
129 leak_sensitive_values: true
130 cookies:
131 path: /
132 same_site: None
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400133 domain: {{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +0400134 secrets:
135 cookie:
136 - PLEASE-CHANGE-ME-I-AM-VERY-INSECURE
137 # cipher:
138 # - 32-LONG-SECRET-NOT-SECURE-AT-ALL
139 # ciphers:
140 # algorithm: xchacha20-poly1305
141 hashers:
142 argon2:
143 parallelism: 1
144 memory: 128MB
145 iterations: 2
146 salt_length: 16
147 key_length: 16
148 identity:
Giorgi Lekveishvili0c5b8be2023-05-31 14:15:52 +0400149 schemas:
150 - id: user
151 url: file:///etc/config/identity.schema.json
152 default_schema_id: user
giolekva050609f2021-12-29 15:51:40 +0400153 courier:
154 smtp:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400155 connection_uri: smtps://test-z1VmkYfYPjgdPRgPFgmeZ31esT9rUgS%40{{ .Global.Domain }}:iW%213Kk%5EPPLFrZa%24%21bbpTPN9Wv3b8mvwS6ZJvMLtce%23A2%2A4MotD@mx1.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +0400156 identitySchemas:
157 "identity.schema.json": |
158 {
159 "$id": "https://schemas.ory.sh/presets/kratos/quickstart/email-password/identity.schema.json",
160 "$schema": "http://json-schema.org/draft-07/schema#",
161 "title": "User",
162 "type": "object",
163 "properties": {
164 "traits": {
165 "type": "object",
166 "properties": {
167 "username": {
168 "type": "string",
169 "format": "username",
170 "title": "Username",
171 "minLength": 3,
172 "ory.sh/kratos": {
173 "credentials": {
174 "password": {
175 "identifier": true
176 }
177 }
178 }
179 }
180 },
181 "additionalProperties": false
182 }
183 }
184 }
185 hydra:
186 fullnameOverride: hydra
187 image:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400188 repository: oryd/hydra
189 tag: v2.1.2
190 pullPolicy: IfNotPresent
191 # repository: giolekva/ory-hydra
192 # tag: latest
193 # pullPolicy: Always
giolekva050609f2021-12-29 15:51:40 +0400194 service:
195 admin:
196 enabled: true
197 type: ClusterIP
198 port: 80
199 name: http
200 public:
201 enabled: true
202 type: ClusterIP
203 port: 80
204 name: http
205 ingress:
206 admin:
207 enabled: true
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400208 className: {{ .Global.Id }}-ingress-private
giolekva050609f2021-12-29 15:51:40 +0400209 hosts:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400210 - host: hydra.p.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +0400211 paths:
212 - path: /
213 pathType: Prefix
214 tls:
215 - hosts:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400216 - hydra.p.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +0400217 public:
218 enabled: true
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400219 className: {{ .Global.PCloudEnvName }}-ingress-public
Giorgi Lekveishvili0c5b8be2023-05-31 14:15:52 +0400220 annotations:
221 acme.cert-manager.io/http01-edit-in-place: "true"
222 cert-manager.io/cluster-issuer: {{ .Global.Id }}-public
giolekva050609f2021-12-29 15:51:40 +0400223 hosts:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400224 - host: hydra.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +0400225 paths:
226 - path: /
227 pathType: Prefix
228 tls:
229 - hosts:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400230 - hydra.{{ .Global.Domain }}
231 secretName: cert-hydra.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +0400232 secret:
233 enabled: true
234 maester:
Giorgi Lekveishvili4d2784d2023-06-01 14:27:32 +0400235 enabled: true
giolekva050609f2021-12-29 15:51:40 +0400236 hydra-maester:
Giorgi Lekveishvili4d2784d2023-06-01 14:27:32 +0400237 adminService:
238 name: hydra-admin
239 port: 80
giolekva050609f2021-12-29 15:51:40 +0400240 image:
241 repository: giolekva/ory-hydra-maester
242 tag: latest
243 pullPolicy: IfNotPresent
giolekva050609f2021-12-29 15:51:40 +0400244 hydra:
Giorgi Lekveishvili0c5b8be2023-05-31 14:15:52 +0400245 automigration:
246 enabled: true
giolekva050609f2021-12-29 15:51:40 +0400247 config:
248 version: v1.10.6
Giorgi Lekveishvili4257b902023-07-07 17:08:42 +0400249 dsn: postgres://hydra:hydra@postgres.{{ .Global.Id }}-core-auth.svc:5432/hydra?sslmode=disable&max_conns=20&max_idle_conns=4
giolekva050609f2021-12-29 15:51:40 +0400250 serve:
251 cookies:
252 same_site_mode: None
253 public:
254 cors:
255 enabled: true
256 debug: false
257 allow_credentials: true
258 allowed_origins:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400259 - https://{{ .Global.Domain }}
260 - https://*.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +0400261 admin:
262 # host: localhost
263 cors:
264 allowed_origins:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400265 - https://hydra.p.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +0400266 tls:
267 allow_termination_from:
268 - 0.0.0.0/0
269 - 10.42.0.0/16
270 - 10.43.0.0/16
giolekva050609f2021-12-29 15:51:40 +0400271 tls:
272 allow_termination_from:
273 - 0.0.0.0/0
274 - 10.42.0.0/16
275 - 10.43.0.0/16
giolekva050609f2021-12-29 15:51:40 +0400276 urls:
277 self:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400278 public: https://hydra.{{ .Global.Domain }}
279 issuer: https://hydra.{{ .Global.Domain }}
280 consent: https://accounts-ui.{{ .Global.Domain }}/consent
281 login: https://accounts-ui.{{ .Global.Domain }}/login
282 logout: https://accounts-ui.{{ .Global.Domain }}/logout
giolekva050609f2021-12-29 15:51:40 +0400283 secrets:
284 system:
285 - youReallyNeedToChangeThis
286 oidc:
287 subject_identifiers:
288 supported_types:
289 - pairwise
290 - public
291 pairwise:
292 salt: youReallyNeedToChangeThis
293 log:
294 level: trace
295 leak_sensitive_values: false
296 ui:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400297 certificateIssuer: {{ .Global.Id }}-public
298 ingressClassName: {{ .Global.PCloudEnvName }}-ingress-public
299 domain: {{ .Global.Domain }}
300 internalDomain: p.{{ .Global.Domain }}
Giorgi Lekveishvili4257b902023-07-07 17:08:42 +0400301 hydra: hydra-admin.{{ .Global.Id }}-core-auth.svc.cluster.local