rhythmic-raincoat-85174
04/10/2023, 7:41 PM2023-04-10 14:31:00 time=2023-04-10T19:31:00Z level=info msg=Config file loaded successfully. audience=application path=/etc/config/kratos.yaml service_name=kratos service_version=
2023-04-10 14:31:00 time=2023-04-10T19:31:00Z level=error msg=The provided configuration is invalid and could not be loaded. Check the output below to understand why. audience=application config_file=/etc/config/kratos.yaml service_name=kratos service_version=
2023-04-10 14:31:00
2023-04-10 14:31:00 identity.schemas.0: map[id:default url:file:///etc/config/identity.default.schema.json]
2023-04-10 14:31:00 ^-- not failed
2023-04-10 14:31:00
2023-04-10 14:31:00 time=2023-04-10T19:31:00Z level=fatal msg=The services failed to start because the configuration is invalid. Check the output above for more details. audience=application service_name=kratos service_version=
I am using this values.yaml (mostly the same as one provided in helm chart for kratos):
kratos:
config:
dsn: <postgres://user:password@db:5432/identity>
courier:
smtp:
connection_uri: <smtps://user:password@smtp.serverl:25/?skip_ssl_verify=true>
secrets:
default:
- dolore occaecat nostrud Ut
- sit et commodoaute ut voluptate consectetur Duis
identity:
# default_schema_id: default
default_schema_url: file:///etc/config/identity.default.schema.json
schemas:
- id: default
url: file:///etc/config/identity.default.schema.json
selfservice:
default_browser_return_url: <http://127.0.0.1:4455/>
automigration:
enabled: true
identitySchemas:
"identity.default.schema.json": |
{
"$id": "<https://schemas.ory.sh/presets/kratos/identity.email.schema.json>",
"$schema": "<http://json-schema.org/draft-07/schema#>",
"title": "Person",
"type": "object",
"properties": {
"traits": {
"type": "object",
"properties": {
"email": {
"type": "string",
"format": "email",
"title": "E-Mail",
"<http://ory.sh/kratos|ory.sh/kratos>": {
"credentials": {
"password": {
"identifier": true
}
},
"recovery": {
"via": "email"
},
"verification": {
"via": "email"
}
}
}
},
"required": [
"email"
],
"additionalProperties": false
}
}
}
Only notable difference, I had to remove "default_schema_id" and replace it with "default_schema_url" otherwise kratos throws an exception stating it's required.