Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to enable passkey method #3887

Closed
4 of 5 tasks
akhayyat opened this issue Apr 20, 2024 · 2 comments
Closed
4 of 5 tasks

Unable to enable passkey method #3887

akhayyat opened this issue Apr 20, 2024 · 2 comments
Labels
bug Something is not working.

Comments

@akhayyat
Copy link

akhayyat commented Apr 20, 2024

Preflight checklist

Ory Network Project

No response

Describe the bug

Enabling passkeys as documented in https://www.ory.sh/docs/kratos/passwordless/passkeys#passkeys-with-the-dedicated-passkey-strategy results in the following error:

The configuration contains values or keys which are invalid:
additionalProperties "passkey" not allowed

Reproducing the bug

  1. Enable passkey in configuration as documented in https://www.ory.sh/docs/kratos/passwordless/passkeys#passkeys-with-the-dedicated-passkey-strategy
  2. Start Kratos

Relevant log output

kratos-1  | time=2024-04-20T18:03:35Z level=error msg=Unable to instantiate configuration. func=github.com/ory/kratos/driver.NewWithoutInit file=/project/driver/factory.go:43 audience=application error=map[m
essage:I[#/selfservice/methods] S[#/properties/selfservice/properties/methods/additionalProperties] additionalProperties "passkey" not allowed stack_trace:stack trace could not be recovered from error type *
jsonschema.ValidationError] service_name=Ory Kratos service_version=v1.1.0
kratos-1  | Error: I[#/selfservice/methods] S[#/properties/selfservice/properties/methods/additionalProperties] additionalProperties "passkey" not allowed
kratos-1  | Usage:
kratos-1  |   kratos serve [flags]
kratos-1  | 
kratos-1  | Flags:
kratos-1  |   -c, --config strings   Path to one or more .json, .yaml, .yml, .toml config files. Values are loaded in the order provided, meaning that the last config file overwrites values from the previous
 config file.
kratos-1  |       --dev              Disables critical security features to make development easier
kratos-1  |   -h, --help             help for serve
kratos-1  |       --sqa-opt-out      Disable anonymized telemetry reports - for more information please visit https://www.ory.sh/docs/ecosystem/sqa
kratos-1  |       --watch-courier    Run the message courier as a background task, to simplify single-instance setup
kratos-1  | 
kratos-1  | I[#/selfservice/methods] S[#/properties/selfservice/properties/methods/additionalProperties] additionalProperties "passkey" not allowed
kratos-1  | time=2024-04-20T18:03:36Z level=debug msg=Adding config files. func=github.com/ory/x/configx.(*Provider).createProviders file=/go/pkg/mod/github.com/ory/x@v0.0.614/configx/provider.go:144 audienc
e=application files=[/etc/config/kratos/kratos.yml] service_name=Ory Kratos service_version=v1.1.0
kratos-1  | 
kratos-1  | The configuration contains values or keys which are invalid:
kratos-1  | selfservice.methods: map[code:map[config:map[lifespan:1h] enabled:true mfa_enabled:false passwordless_enabled:true passwordless_login_fallback_enabled:false] link:map[config:map[lifespan:1h] enab
led:false] lookup_secret:map[enabled:true] oidc:map[enabled:false] passkey:map[config:map[display_name:Me]] password:map[config:map[haveibeenpwned_enabled:true haveibeenpwned_host:api.pwnedpasswords.com
 identifier_similarity_check_enabled:true ignore_network_errors:true max_breaches:0 min_password_length:8] enabled:true] profile:map[enabled:true] totp:map[config:map[issuer:Me] enabled:true] webauthn:m
ap[enabled:false]]
kratos-1  |                      ^-- additionalProperties "passkey" not allowed

Relevant configuration

methods:
    password:
      enabled: true
    totp:
      config:
        issuer: Me
      enabled: true
    lookup_secret:
      enabled: true
    code:
      enabled: true
      passwordless_enabled: true
    passkey:
      enabled: true
      config:
        display_name: Me

Version

1.1.0

On which operating system are you observing this issue?

Linux

In which environment are you deploying?

Docker Compose

Additional Context

No response

@akhayyat akhayyat added the bug Something is not working. label Apr 20, 2024
@cerealkill
Copy link

I am experiencing the same issues, and can attest that all configuration options from contrib/quickstart/kratos fail with multiple error lines, so reproducing the new configuration files in the source and in the docs should be your priority right now.

@jonas-jonas
Copy link
Contributor

Passkey supported is not included in the 1.1.0 release of Kratos. So for the time being, please compile Kratos from master. It will be included in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working.
Projects
None yet
Development

No branches or pull requests

3 participants