blob: f38c2d15801b32bd116cc7470fe12b6fc1bf7d70 [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
giolekva050609f2021-12-29 15:51:40 +040027 service:
28 admin:
29 enabled: true
30 type: ClusterIP
31 port: 80
32 name: http
33 public:
34 enabled: true
35 type: ClusterIP
36 port: 80
37 name: http
38 ingress:
39 admin:
40 enabled: true
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040041 className: {{ .Global.Id }}-ingress-private
giolekva050609f2021-12-29 15:51:40 +040042 hosts:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040043 - host: kratos.p.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +040044 paths:
45 - path: /
46 pathType: Prefix
47 tls:
48 - hosts:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040049 - kratos.p.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +040050 public:
51 enabled: true
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040052 className: {{ .Global.PCloudEnvName }}-ingress-public
Giorgi Lekveishvili0c5b8be2023-05-31 14:15:52 +040053 annotations:
54 acme.cert-manager.io/http01-edit-in-place: "true"
55 cert-manager.io/cluster-issuer: {{ .Global.Id }}-public
giolekva050609f2021-12-29 15:51:40 +040056 hosts:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040057 - host: accounts.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +040058 paths:
59 - path: /
60 pathType: Prefix
61 tls:
62 - hosts:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040063 - accounts.{{ .Global.Domain }}
64 secretName: cert-accounts.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +040065 secret:
66 enabled: true
67 kratos:
Giorgi Lekveishvili0c5b8be2023-05-31 14:15:52 +040068 automigration:
69 enabled: true
giolekva050609f2021-12-29 15:51:40 +040070 development: false
Giorgi Lekveishvili0c5b8be2023-05-31 14:15:52 +040071 courier:
72 enabled: false
giolekva050609f2021-12-29 15:51:40 +040073 config:
74 version: v0.7.1-alpha.1
Giorgi Lekveishvili4257b902023-07-07 17:08:42 +040075 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 +040076 serve:
77 public:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040078 base_url: https://accounts.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +040079 cors:
80 enabled: true
81 debug: false
82 allow_credentials: true
83 allowed_origins:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040084 - https://{{ .Global.Domain }}
85 - https://*.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +040086 admin:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040087 base_url: https://kratos.p.{{ .Global.Domain }}/
giolekva050609f2021-12-29 15:51:40 +040088 selfservice:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040089 default_browser_return_url: https://accounts-ui.{{ .Global.Domain }}
Giorgi Lekveishvili0c5b8be2023-05-31 14:15:52 +040090 # whitelisted_return_urls:
91 # - https://accounts-ui.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +040092 methods:
93 password:
94 enabled: true
95 flows:
96 error:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040097 ui_url: https://accounts-ui.{{ .Global.Domain }}/error
giolekva050609f2021-12-29 15:51:40 +040098 settings:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040099 ui_url: https://accounts-ui.{{ .Global.Domain }}/settings
giolekva050609f2021-12-29 15:51:40 +0400100 privileged_session_max_age: 15m
101 recovery:
102 enabled: false
103 verification:
104 enabled: false
105 logout:
106 after:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400107 default_browser_return_url: https://accounts-ui.{{ .Global.Domain }}/login
giolekva050609f2021-12-29 15:51:40 +0400108 login:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400109 ui_url: https://accounts-ui.{{ .Global.Domain }}/login
giolekva050609f2021-12-29 15:51:40 +0400110 lifespan: 10m
111 after:
112 password:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400113 default_browser_return_url: https://accounts-ui.{{ .Global.Domain }}/
giolekva050609f2021-12-29 15:51:40 +0400114 registration:
115 lifespan: 10m
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400116 ui_url: https://accounts-ui.{{ .Global.Domain }}/registration
giolekva050609f2021-12-29 15:51:40 +0400117 after:
118 password:
119 hooks:
120 -
121 hook: session
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400122 default_browser_return_url: https://accounts-ui.{{ .Global.Domain }}/
giolekva050609f2021-12-29 15:51:40 +0400123 log:
124 level: debug
125 format: text
126 leak_sensitive_values: true
127 cookies:
128 path: /
129 same_site: None
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400130 domain: {{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +0400131 secrets:
132 cookie:
133 - PLEASE-CHANGE-ME-I-AM-VERY-INSECURE
134 # cipher:
135 # - 32-LONG-SECRET-NOT-SECURE-AT-ALL
136 # ciphers:
137 # algorithm: xchacha20-poly1305
138 hashers:
139 argon2:
140 parallelism: 1
141 memory: 128MB
142 iterations: 2
143 salt_length: 16
144 key_length: 16
145 identity:
Giorgi Lekveishvili0c5b8be2023-05-31 14:15:52 +0400146 schemas:
147 - id: user
148 url: file:///etc/config/identity.schema.json
149 default_schema_id: user
giolekva050609f2021-12-29 15:51:40 +0400150 courier:
151 smtp:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400152 connection_uri: smtps://test-z1VmkYfYPjgdPRgPFgmeZ31esT9rUgS%40{{ .Global.Domain }}:iW%213Kk%5EPPLFrZa%24%21bbpTPN9Wv3b8mvwS6ZJvMLtce%23A2%2A4MotD@mx1.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +0400153 identitySchemas:
154 "identity.schema.json": |
155 {
156 "$id": "https://schemas.ory.sh/presets/kratos/quickstart/email-password/identity.schema.json",
157 "$schema": "http://json-schema.org/draft-07/schema#",
158 "title": "User",
159 "type": "object",
160 "properties": {
161 "traits": {
162 "type": "object",
163 "properties": {
164 "username": {
165 "type": "string",
166 "format": "username",
167 "title": "Username",
168 "minLength": 3,
169 "ory.sh/kratos": {
170 "credentials": {
171 "password": {
172 "identifier": true
173 }
174 }
175 }
176 }
177 },
178 "additionalProperties": false
179 }
180 }
181 }
182 hydra:
183 fullnameOverride: hydra
184 image:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400185 repository: oryd/hydra
186 tag: v2.1.2
187 pullPolicy: IfNotPresent
188 # repository: giolekva/ory-hydra
189 # tag: latest
190 # pullPolicy: Always
giolekva050609f2021-12-29 15:51:40 +0400191 service:
192 admin:
193 enabled: true
194 type: ClusterIP
195 port: 80
196 name: http
197 public:
198 enabled: true
199 type: ClusterIP
200 port: 80
201 name: http
202 ingress:
203 admin:
204 enabled: true
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400205 className: {{ .Global.Id }}-ingress-private
giolekva050609f2021-12-29 15:51:40 +0400206 hosts:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400207 - host: hydra.p.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +0400208 paths:
209 - path: /
210 pathType: Prefix
211 tls:
212 - hosts:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400213 - hydra.p.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +0400214 public:
215 enabled: true
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400216 className: {{ .Global.PCloudEnvName }}-ingress-public
Giorgi Lekveishvili0c5b8be2023-05-31 14:15:52 +0400217 annotations:
218 acme.cert-manager.io/http01-edit-in-place: "true"
219 cert-manager.io/cluster-issuer: {{ .Global.Id }}-public
giolekva050609f2021-12-29 15:51:40 +0400220 hosts:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400221 - host: hydra.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +0400222 paths:
223 - path: /
224 pathType: Prefix
225 tls:
226 - hosts:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400227 - hydra.{{ .Global.Domain }}
228 secretName: cert-hydra.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +0400229 secret:
230 enabled: true
231 maester:
Giorgi Lekveishvili4d2784d2023-06-01 14:27:32 +0400232 enabled: true
giolekva050609f2021-12-29 15:51:40 +0400233 hydra-maester:
Giorgi Lekveishvili4d2784d2023-06-01 14:27:32 +0400234 adminService:
235 name: hydra-admin
236 port: 80
giolekva050609f2021-12-29 15:51:40 +0400237 image:
238 repository: giolekva/ory-hydra-maester
239 tag: latest
240 pullPolicy: IfNotPresent
giolekva050609f2021-12-29 15:51:40 +0400241 hydra:
Giorgi Lekveishvili0c5b8be2023-05-31 14:15:52 +0400242 automigration:
243 enabled: true
giolekva050609f2021-12-29 15:51:40 +0400244 config:
245 version: v1.10.6
Giorgi Lekveishvili4257b902023-07-07 17:08:42 +0400246 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 +0400247 serve:
248 cookies:
249 same_site_mode: None
250 public:
251 cors:
252 enabled: true
253 debug: false
254 allow_credentials: true
255 allowed_origins:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400256 - https://{{ .Global.Domain }}
257 - https://*.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +0400258 admin:
259 # host: localhost
260 cors:
261 allowed_origins:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400262 - https://hydra.p.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +0400263 tls:
264 allow_termination_from:
265 - 0.0.0.0/0
266 - 10.42.0.0/16
267 - 10.43.0.0/16
giolekva050609f2021-12-29 15:51:40 +0400268 tls:
269 allow_termination_from:
270 - 0.0.0.0/0
271 - 10.42.0.0/16
272 - 10.43.0.0/16
giolekva050609f2021-12-29 15:51:40 +0400273 urls:
274 self:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400275 public: https://hydra.{{ .Global.Domain }}
276 issuer: https://hydra.{{ .Global.Domain }}
277 consent: https://accounts-ui.{{ .Global.Domain }}/consent
278 login: https://accounts-ui.{{ .Global.Domain }}/login
279 logout: https://accounts-ui.{{ .Global.Domain }}/logout
giolekva050609f2021-12-29 15:51:40 +0400280 secrets:
281 system:
282 - youReallyNeedToChangeThis
283 oidc:
284 subject_identifiers:
285 supported_types:
286 - pairwise
287 - public
288 pairwise:
289 salt: youReallyNeedToChangeThis
290 log:
291 level: trace
292 leak_sensitive_values: false
293 ui:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400294 certificateIssuer: {{ .Global.Id }}-public
295 ingressClassName: {{ .Global.PCloudEnvName }}-ingress-public
296 domain: {{ .Global.Domain }}
297 internalDomain: p.{{ .Global.Domain }}
Giorgi Lekveishvili4257b902023-07-07 17:08:42 +0400298 hydra: hydra-admin.{{ .Global.Id }}-core-auth.svc.cluster.local