blob: 53c8ca92d9bb199ddfac4be453a9e8a1b708cb89 [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 }}
giolekva050609f2021-12-29 15:51:40 +040011 chart:
12 spec:
13 chart: charts/auth
14 sourceRef:
15 kind: GitRepository
16 name: pcloud
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040017 namespace: {{ .Global.Id }}
giolekva050609f2021-12-29 15:51:40 +040018 interval: 1m0s
19 values:
20 kratos:
21 fullnameOverride: kratos
22 image:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040023 repository: oryd/kratos
24 tag: v0.13.0
25 pullPolicy: IfNotPresent
26 # repository: giolekva/ory-kratos
27 # tag: latest
28 # pullPolicy: Always
giolekva050609f2021-12-29 15:51:40 +040029 service:
30 admin:
31 enabled: true
32 type: ClusterIP
33 port: 80
34 name: http
35 public:
36 enabled: true
37 type: ClusterIP
38 port: 80
39 name: http
40 ingress:
41 admin:
42 enabled: true
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040043 className: {{ .Global.Id }}-ingress-private
giolekva050609f2021-12-29 15:51:40 +040044 hosts:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040045 - host: kratos.p.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +040046 paths:
47 - path: /
48 pathType: Prefix
49 tls:
50 - hosts:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040051 - kratos.p.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +040052 public:
53 enabled: true
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040054 className: {{ .Global.PCloudEnvName }}-ingress-public
Giorgi Lekveishvili0c5b8be2023-05-31 14:15:52 +040055 annotations:
56 acme.cert-manager.io/http01-edit-in-place: "true"
57 cert-manager.io/cluster-issuer: {{ .Global.Id }}-public
giolekva050609f2021-12-29 15:51:40 +040058 hosts:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040059 - host: accounts.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +040060 paths:
61 - path: /
62 pathType: Prefix
63 tls:
64 - hosts:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040065 - accounts.{{ .Global.Domain }}
66 secretName: cert-accounts.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +040067 secret:
68 enabled: true
69 kratos:
Giorgi Lekveishvili0c5b8be2023-05-31 14:15:52 +040070 automigration:
71 enabled: true
giolekva050609f2021-12-29 15:51:40 +040072 development: false
Giorgi Lekveishvili0c5b8be2023-05-31 14:15:52 +040073 courier:
74 enabled: false
giolekva050609f2021-12-29 15:51:40 +040075 config:
76 version: v0.7.1-alpha.1
Giorgi Lekveishvili0c5b8be2023-05-31 14:15:52 +040077 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 +040078 serve:
79 public:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040080 base_url: https://accounts.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +040081 cors:
82 enabled: true
83 debug: false
84 allow_credentials: true
85 allowed_origins:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040086 - https://{{ .Global.Domain }}
87 - https://*.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +040088 admin:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040089 base_url: https://kratos.p.{{ .Global.Domain }}/
giolekva050609f2021-12-29 15:51:40 +040090 selfservice:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040091 default_browser_return_url: https://accounts-ui.{{ .Global.Domain }}
Giorgi Lekveishvili0c5b8be2023-05-31 14:15:52 +040092 # whitelisted_return_urls:
93 # - https://accounts-ui.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +040094 methods:
95 password:
96 enabled: true
97 flows:
98 error:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +040099 ui_url: https://accounts-ui.{{ .Global.Domain }}/error
giolekva050609f2021-12-29 15:51:40 +0400100 settings:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400101 ui_url: https://accounts-ui.{{ .Global.Domain }}/settings
giolekva050609f2021-12-29 15:51:40 +0400102 privileged_session_max_age: 15m
103 recovery:
104 enabled: false
105 verification:
106 enabled: false
107 logout:
108 after:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400109 default_browser_return_url: https://accounts-ui.{{ .Global.Domain }}/login
giolekva050609f2021-12-29 15:51:40 +0400110 login:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400111 ui_url: https://accounts-ui.{{ .Global.Domain }}/login
giolekva050609f2021-12-29 15:51:40 +0400112 lifespan: 10m
113 after:
114 password:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400115 default_browser_return_url: https://accounts-ui.{{ .Global.Domain }}/
giolekva050609f2021-12-29 15:51:40 +0400116 registration:
117 lifespan: 10m
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400118 ui_url: https://accounts-ui.{{ .Global.Domain }}/registration
giolekva050609f2021-12-29 15:51:40 +0400119 after:
120 password:
121 hooks:
122 -
123 hook: session
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400124 default_browser_return_url: https://accounts-ui.{{ .Global.Domain }}/
giolekva050609f2021-12-29 15:51:40 +0400125 log:
126 level: debug
127 format: text
128 leak_sensitive_values: true
129 cookies:
130 path: /
131 same_site: None
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400132 domain: {{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +0400133 secrets:
134 cookie:
135 - PLEASE-CHANGE-ME-I-AM-VERY-INSECURE
136 # cipher:
137 # - 32-LONG-SECRET-NOT-SECURE-AT-ALL
138 # ciphers:
139 # algorithm: xchacha20-poly1305
140 hashers:
141 argon2:
142 parallelism: 1
143 memory: 128MB
144 iterations: 2
145 salt_length: 16
146 key_length: 16
147 identity:
Giorgi Lekveishvili0c5b8be2023-05-31 14:15:52 +0400148 schemas:
149 - id: user
150 url: file:///etc/config/identity.schema.json
151 default_schema_id: user
giolekva050609f2021-12-29 15:51:40 +0400152 courier:
153 smtp:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400154 connection_uri: smtps://test-z1VmkYfYPjgdPRgPFgmeZ31esT9rUgS%40{{ .Global.Domain }}:iW%213Kk%5EPPLFrZa%24%21bbpTPN9Wv3b8mvwS6ZJvMLtce%23A2%2A4MotD@mx1.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +0400155 identitySchemas:
156 "identity.schema.json": |
157 {
158 "$id": "https://schemas.ory.sh/presets/kratos/quickstart/email-password/identity.schema.json",
159 "$schema": "http://json-schema.org/draft-07/schema#",
160 "title": "User",
161 "type": "object",
162 "properties": {
163 "traits": {
164 "type": "object",
165 "properties": {
166 "username": {
167 "type": "string",
168 "format": "username",
169 "title": "Username",
170 "minLength": 3,
171 "ory.sh/kratos": {
172 "credentials": {
173 "password": {
174 "identifier": true
175 }
176 }
177 }
178 }
179 },
180 "additionalProperties": false
181 }
182 }
183 }
184 hydra:
185 fullnameOverride: hydra
186 image:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400187 repository: oryd/hydra
188 tag: v2.1.2
189 pullPolicy: IfNotPresent
190 # repository: giolekva/ory-hydra
191 # tag: latest
192 # pullPolicy: Always
giolekva050609f2021-12-29 15:51:40 +0400193 service:
194 admin:
195 enabled: true
196 type: ClusterIP
197 port: 80
198 name: http
199 public:
200 enabled: true
201 type: ClusterIP
202 port: 80
203 name: http
204 ingress:
205 admin:
206 enabled: true
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400207 className: {{ .Global.Id }}-ingress-private
giolekva050609f2021-12-29 15:51:40 +0400208 hosts:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400209 - host: hydra.p.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +0400210 paths:
211 - path: /
212 pathType: Prefix
213 tls:
214 - hosts:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400215 - hydra.p.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +0400216 public:
217 enabled: true
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400218 className: {{ .Global.PCloudEnvName }}-ingress-public
Giorgi Lekveishvili0c5b8be2023-05-31 14:15:52 +0400219 annotations:
220 acme.cert-manager.io/http01-edit-in-place: "true"
221 cert-manager.io/cluster-issuer: {{ .Global.Id }}-public
giolekva050609f2021-12-29 15:51:40 +0400222 hosts:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400223 - host: hydra.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +0400224 paths:
225 - path: /
226 pathType: Prefix
227 tls:
228 - hosts:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400229 - hydra.{{ .Global.Domain }}
230 secretName: cert-hydra.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +0400231 secret:
232 enabled: true
233 maester:
Giorgi Lekveishvili4d2784d2023-06-01 14:27:32 +0400234 enabled: true
giolekva050609f2021-12-29 15:51:40 +0400235 hydra-maester:
Giorgi Lekveishvili4d2784d2023-06-01 14:27:32 +0400236 adminService:
237 name: hydra-admin
238 port: 80
giolekva050609f2021-12-29 15:51:40 +0400239 image:
240 repository: giolekva/ory-hydra-maester
241 tag: latest
242 pullPolicy: IfNotPresent
giolekva050609f2021-12-29 15:51:40 +0400243 hydra:
Giorgi Lekveishvili0c5b8be2023-05-31 14:15:52 +0400244 automigration:
245 enabled: true
giolekva050609f2021-12-29 15:51:40 +0400246 config:
247 version: v1.10.6
Giorgi Lekveishvili0c5b8be2023-05-31 14:15:52 +0400248 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 +0400249 serve:
250 cookies:
251 same_site_mode: None
252 public:
253 cors:
254 enabled: true
255 debug: false
256 allow_credentials: true
257 allowed_origins:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400258 - https://{{ .Global.Domain }}
259 - https://*.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +0400260 admin:
261 # host: localhost
262 cors:
263 allowed_origins:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400264 - https://hydra.p.{{ .Global.Domain }}
giolekva050609f2021-12-29 15:51:40 +0400265 tls:
266 allow_termination_from:
267 - 0.0.0.0/0
268 - 10.42.0.0/16
269 - 10.43.0.0/16
giolekva050609f2021-12-29 15:51:40 +0400270 tls:
271 allow_termination_from:
272 - 0.0.0.0/0
273 - 10.42.0.0/16
274 - 10.43.0.0/16
giolekva050609f2021-12-29 15:51:40 +0400275 urls:
276 self:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400277 public: https://hydra.{{ .Global.Domain }}
278 issuer: https://hydra.{{ .Global.Domain }}
279 consent: https://accounts-ui.{{ .Global.Domain }}/consent
280 login: https://accounts-ui.{{ .Global.Domain }}/login
281 logout: https://accounts-ui.{{ .Global.Domain }}/logout
giolekva050609f2021-12-29 15:51:40 +0400282 secrets:
283 system:
284 - youReallyNeedToChangeThis
285 oidc:
286 subject_identifiers:
287 supported_types:
288 - pairwise
289 - public
290 pairwise:
291 salt: youReallyNeedToChangeThis
292 log:
293 level: trace
294 leak_sensitive_values: false
295 ui:
Giorgi Lekveishvili3ca1f3f2023-05-30 14:33:02 +0400296 certificateIssuer: {{ .Global.Id }}-public
297 ingressClassName: {{ .Global.PCloudEnvName }}-ingress-public
298 domain: {{ .Global.Domain }}
299 internalDomain: p.{{ .Global.Domain }}