many-alligator-19004
05/09/2022, 8:14 PMtall-angle-41306
05/10/2022, 9:20 AMmany-alligator-19004
05/10/2022, 1:00 PMhydra-integration
with kratos in Kubernetes kinda looking for a vaules.yaml example of it. If anyone could help out that would be great. Thank youtall-angle-41306
05/10/2022, 2:24 PMhydra-integration
that you mentioned, although based on docker-compose, it'll give you an idea of how the two work together from an authentication flow perspective.many-alligator-19004
05/10/2022, 3:48 PMtall-angle-41306
05/10/2022, 3:49 PMadorable-byte-96872
05/12/2022, 3:21 AMmagnificent-energy-493
tall-angle-41306
05/12/2022, 8:52 AMvalues.yaml
The identity
block within your config, and then the identitySchemas
Below is a trimmed down version to give you an idea
kratos:
config:
identity:
default_schema_id: default
schemas:
- id: default
url: file:///etc/config/identity.default.schema.json
identitySchemas:
identity.default.schema.json: |
{
"$id": "<https://schemas.ory.sh/presets/kratos/quickstart/email-password/identity.schema.json>",
"$schema": "<http://json-schema.org/draft-07/schema#>",
"title": "Person",
"type": "object",
<snip>
}
adorable-byte-96872
05/12/2022, 8:59 AMtall-angle-41306
05/12/2022, 9:03 AMhelm install
or using something like Flux or Argo?
We're using flux HelmReleases, and store the schemas in configmaps, which get loaded in via valuesFrom
keeps the config cleaner, and allows us to manage them as separate json filesadorable-byte-96872
05/12/2022, 9:06 AMadorable-byte-96872
05/12/2022, 9:07 AMtall-angle-41306
05/12/2022, 9:09 AMvaluesFrom
is a flux feature, so wouldn't work for you unless you were running flux
If you're running helm cli, you can chain values files together, so you could have the schemas in specific files helm install -f value.yaml -f identity-schema-one.yaml -f identity-schema-two.yaml
adorable-byte-96872
05/12/2022, 11:01 AMadorable-byte-96872
05/12/2022, 11:02 AMtall-angle-41306
05/12/2022, 12:30 PMtall-angle-41306
05/12/2022, 12:31 PMidentity-schema-one.yaml
kratos:
identitySchemas:
identity.one.schema.json: |
{
"$id": "<https://schemas.ory.sh/presets/kratos/quickstart/email-password/identity.schema.json>",
"$schema": "<http://json-schema.org/draft-07/schema#>",
"title": "Person",
"type": "object",
<snip>
}
identity-schema-two.yaml
kratos:
identitySchemas:
identity.two.schema.json: |
{
"$id": "<https://schemas.ory.sh/presets/kratos/quickstart/email-password/identity.schema.json>",
"$schema": "<http://json-schema.org/draft-07/schema#>",
"title": "Person",
"type": "object",
<snip>
}
and then helm will merge the values yaml togetheradorable-byte-96872
05/12/2022, 1:20 PMadorable-byte-96872
05/12/2022, 1:21 PM