blob: 856fb4cb33caaf5896c879e31414284abb29b597 [file] [log] [blame]
giolekva050609f2021-12-29 15:51:40 +04001apiVersion: helm.toolkit.fluxcd.io/v2beta1
2kind: HelmRelease
3metadata:
4 name: core-auth
Giorgi Lekveishvilic9211392023-06-12 18:30:14 +04005 namespace: {{ .Global.Id }}
giolekva050609f2021-12-29 15:51:40 +04006spec:
Giorgi Lekveishvilic9211392023-06-12 18:30:14 +04007 targetNamespace: {{ .Global.NamespacePrefix }}core-auth
8 dependsOn:
9 - name: core-auth-storage
10 namespace: {{ .Global.Id }}
Giorgi Lekveishvili0ccd1482023-06-21 15:02:24 +040011 - name: ingress-private
12 namespace: {{ .Global.Id }}
giolekva050609f2021-12-29 15:51:40 +040013 chart:
14 spec:
15 chart: charts/auth
16 sourceRef:
17 kind: GitRepository
18 name: pcloud
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040019 namespace: {{ .Global.Id }}
giolekva050609f2021-12-29 15:51:40 +040020 interval: 1m0s
21 values:
22 kratos:
23 fullnameOverride: kratos
24 image:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040025 repository: oryd/kratos
26 tag: v0.13.0
27 pullPolicy: IfNotPresent
28 # repository: giolekva/ory-kratos
29 # tag: latest
30 # pullPolicy: Always
giolekva050609f2021-12-29 15:51:40 +040031 service:
32 admin:
33 enabled: true
34 type: ClusterIP
35 port: 80
36 name: http
37 public:
38 enabled: true
39 type: ClusterIP
40 port: 80
41 name: http
42 ingress:
43 admin:
44 enabled: true
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040045 className: {{ .Global.Id }}-ingress-private
giolekva050609f2021-12-29 15:51:40 +040046 hosts:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040047 - host: kratos.p.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +040048 paths:
49 - path: /
50 pathType: Prefix
51 tls:
52 - hosts:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040053 - kratos.p.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +040054 public:
55 enabled: true
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040056 className: {{ .Global.PCloudEnvName }}-ingress-public
Giorgi Lekveishvili0c5b8be2023-05-31 14:15:52 +040057 annotations:
58 acme.cert-manager.io/http01-edit-in-place: "true"
59 cert-manager.io/cluster-issuer: {{ .Global.Id }}-public
giolekva050609f2021-12-29 15:51:40 +040060 hosts:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040061 - host: accounts.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +040062 paths:
63 - path: /
64 pathType: Prefix
65 tls:
66 - hosts:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040067 - accounts.{{ .Global.Domain }}
68 secretName: cert-accounts.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +040069 secret:
70 enabled: true
71 kratos:
Giorgi Lekveishvili0c5b8be2023-05-31 14:15:52 +040072 automigration:
73 enabled: true
giolekva050609f2021-12-29 15:51:40 +040074 development: false
Giorgi Lekveishvili0c5b8be2023-05-31 14:15:52 +040075 courier:
76 enabled: false
giolekva050609f2021-12-29 15:51:40 +040077 config:
78 version: v0.7.1-alpha.1
Giorgi Lekveishvili0c5b8be2023-05-31 14:15:52 +040079 dsn: postgres://kratos:kratos@postgres.lekva-core-auth.svc:5432/kratos?sslmode=disable&max_conns=20&max_idle_conns=4
giolekva050609f2021-12-29 15:51:40 +040080 serve:
81 public:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040082 base_url: https://accounts.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +040083 cors:
84 enabled: true
85 debug: false
86 allow_credentials: true
87 allowed_origins:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040088 - https://{{ .Global.Domain }}
89 - https://*.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +040090 admin:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040091 base_url: https://kratos.p.{{ .Global.Domain }}/
giolekva050609f2021-12-29 15:51:40 +040092 selfservice:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040093 default_browser_return_url: https://accounts-ui.{{ .Global.Domain }}
Giorgi Lekveishvili0c5b8be2023-05-31 14:15:52 +040094 # whitelisted_return_urls:
95 # - https://accounts-ui.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +040096 methods:
97 password:
98 enabled: true
99 flows:
100 error:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400101 ui_url: https://accounts-ui.{{ .Global.Domain }}/error
giolekva050609f2021-12-29 15:51:40 +0400102 settings:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400103 ui_url: https://accounts-ui.{{ .Global.Domain }}/settings
giolekva050609f2021-12-29 15:51:40 +0400104 privileged_session_max_age: 15m
105 recovery:
106 enabled: false
107 verification:
108 enabled: false
109 logout:
110 after:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400111 default_browser_return_url: https://accounts-ui.{{ .Global.Domain }}/login
giolekva050609f2021-12-29 15:51:40 +0400112 login:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400113 ui_url: https://accounts-ui.{{ .Global.Domain }}/login
giolekva050609f2021-12-29 15:51:40 +0400114 lifespan: 10m
115 after:
116 password:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400117 default_browser_return_url: https://accounts-ui.{{ .Global.Domain }}/
giolekva050609f2021-12-29 15:51:40 +0400118 registration:
119 lifespan: 10m
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400120 ui_url: https://accounts-ui.{{ .Global.Domain }}/registration
giolekva050609f2021-12-29 15:51:40 +0400121 after:
122 password:
123 hooks:
124 -
125 hook: session
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400126 default_browser_return_url: https://accounts-ui.{{ .Global.Domain }}/
giolekva050609f2021-12-29 15:51:40 +0400127 log:
128 level: debug
129 format: text
130 leak_sensitive_values: true
131 cookies:
132 path: /
133 same_site: None
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400134 domain: {{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +0400135 secrets:
136 cookie:
137 - PLEASE-CHANGE-ME-I-AM-VERY-INSECURE
138 # cipher:
139 # - 32-LONG-SECRET-NOT-SECURE-AT-ALL
140 # ciphers:
141 # algorithm: xchacha20-poly1305
142 hashers:
143 argon2:
144 parallelism: 1
145 memory: 128MB
146 iterations: 2
147 salt_length: 16
148 key_length: 16
149 identity:
Giorgi Lekveishvili0c5b8be2023-05-31 14:15:52 +0400150 schemas:
151 - id: user
152 url: file:///etc/config/identity.schema.json
153 default_schema_id: user
giolekva050609f2021-12-29 15:51:40 +0400154 courier:
155 smtp:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400156 connection_uri: smtps://test-z1VmkYfYPjgdPRgPFgmeZ31esT9rUgS%40{{ .Global.Domain }}:iW%213Kk%5EPPLFrZa%24%21bbpTPN9Wv3b8mvwS6ZJvMLtce%23A2%2A4MotD@mx1.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +0400157 identitySchemas:
158 "identity.schema.json": |
159 {
160 "$id": "https://schemas.ory.sh/presets/kratos/quickstart/email-password/identity.schema.json",
161 "$schema": "http://json-schema.org/draft-07/schema#",
162 "title": "User",
163 "type": "object",
164 "properties": {
165 "traits": {
166 "type": "object",
167 "properties": {
168 "username": {
169 "type": "string",
170 "format": "username",
171 "title": "Username",
172 "minLength": 3,
173 "ory.sh/kratos": {
174 "credentials": {
175 "password": {
176 "identifier": true
177 }
178 }
179 }
180 }
181 },
182 "additionalProperties": false
183 }
184 }
185 }
186 hydra:
187 fullnameOverride: hydra
188 image:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400189 repository: oryd/hydra
190 tag: v2.1.2
191 pullPolicy: IfNotPresent
192 # repository: giolekva/ory-hydra
193 # tag: latest
194 # pullPolicy: Always
giolekva050609f2021-12-29 15:51:40 +0400195 service:
196 admin:
197 enabled: true
198 type: ClusterIP
199 port: 80
200 name: http
201 public:
202 enabled: true
203 type: ClusterIP
204 port: 80
205 name: http
206 ingress:
207 admin:
208 enabled: true
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400209 className: {{ .Global.Id }}-ingress-private
giolekva050609f2021-12-29 15:51:40 +0400210 hosts:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400211 - host: hydra.p.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +0400212 paths:
213 - path: /
214 pathType: Prefix
215 tls:
216 - hosts:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400217 - hydra.p.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +0400218 public:
219 enabled: true
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400220 className: {{ .Global.PCloudEnvName }}-ingress-public
Giorgi Lekveishvili0c5b8be2023-05-31 14:15:52 +0400221 annotations:
222 acme.cert-manager.io/http01-edit-in-place: "true"
223 cert-manager.io/cluster-issuer: {{ .Global.Id }}-public
giolekva050609f2021-12-29 15:51:40 +0400224 hosts:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400225 - host: hydra.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +0400226 paths:
227 - path: /
228 pathType: Prefix
229 tls:
230 - hosts:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400231 - hydra.{{ .Global.Domain }}
232 secretName: cert-hydra.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +0400233 secret:
234 enabled: true
235 maester:
Giorgi Lekveishvili4d2784d2023-06-01 14:27:32 +0400236 enabled: true
giolekva050609f2021-12-29 15:51:40 +0400237 hydra-maester:
Giorgi Lekveishvili4d2784d2023-06-01 14:27:32 +0400238 adminService:
239 name: hydra-admin
240 port: 80
giolekva050609f2021-12-29 15:51:40 +0400241 image:
242 repository: giolekva/ory-hydra-maester
243 tag: latest
244 pullPolicy: IfNotPresent
giolekva050609f2021-12-29 15:51:40 +0400245 hydra:
Giorgi Lekveishvili0c5b8be2023-05-31 14:15:52 +0400246 automigration:
247 enabled: true
giolekva050609f2021-12-29 15:51:40 +0400248 config:
249 version: v1.10.6
Giorgi Lekveishvili0c5b8be2023-05-31 14:15:52 +0400250 dsn: postgres://hydra:hydra@postgres.lekva-core-auth.svc:5432/hydra?sslmode=disable&max_conns=20&max_idle_conns=4
giolekva050609f2021-12-29 15:51:40 +0400251 serve:
252 cookies:
253 same_site_mode: None
254 public:
255 cors:
256 enabled: true
257 debug: false
258 allow_credentials: true
259 allowed_origins:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400260 - https://{{ .Global.Domain }}
261 - https://*.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +0400262 admin:
263 # host: localhost
264 cors:
265 allowed_origins:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400266 - https://hydra.p.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +0400267 tls:
268 allow_termination_from:
269 - 0.0.0.0/0
270 - 10.42.0.0/16
271 - 10.43.0.0/16
giolekva050609f2021-12-29 15:51:40 +0400272 tls:
273 allow_termination_from:
274 - 0.0.0.0/0
275 - 10.42.0.0/16
276 - 10.43.0.0/16
giolekva050609f2021-12-29 15:51:40 +0400277 urls:
278 self:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400279 public: https://hydra.{{ .Global.Domain }}
280 issuer: https://hydra.{{ .Global.Domain }}
281 consent: https://accounts-ui.{{ .Global.Domain }}/consent
282 login: https://accounts-ui.{{ .Global.Domain }}/login
283 logout: https://accounts-ui.{{ .Global.Domain }}/logout
giolekva050609f2021-12-29 15:51:40 +0400284 secrets:
285 system:
286 - youReallyNeedToChangeThis
287 oidc:
288 subject_identifiers:
289 supported_types:
290 - pairwise
291 - public
292 pairwise:
293 salt: youReallyNeedToChangeThis
294 log:
295 level: trace
296 leak_sensitive_values: false
297 ui:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400298 certificateIssuer: {{ .Global.Id }}-public
299 ingressClassName: {{ .Global.PCloudEnvName }}-ingress-public
300 domain: {{ .Global.Domain }}
301 internalDomain: p.{{ .Global.Domain }}
Giorgi Lekveishvilie34a0612023-06-16 13:56:10 +0400302 hydra: hydra-admin.lekva-core-auth.svc.cluster.local