Skip to content

Config values are loaded from the environment by Kratos/Keto/Hydra can cause validation errors #404

@zepatrik

Description

@zepatrik

Preflight checklist

Ory Network Project

No response

Describe the bug

Validation errors because some configs are incorrectly loaded.

Reproducing the bug

SECRETS=foo ory help

Relevant log output

The configuration contains values or keys which are invalid:
secrets: <nil>
         ^-- expected object, but got null

FATA[2025-03-03T09:54:37Z] Unable to load config.                        audience=application error=map[message:I[#/secrets] S[#/properties/secrets/type] expected object, but got null] service_name= service_version=

Version

1.1.0

Additional Context

Workaround:

unset SECRETS # if possible
env -u SECRETS ory help

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is not working.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions