ory / ory/docs

Kratos configuration editor is broken

Open
#2,252 2 comments 0 reactions 1 assignee View on GitHub

@unatasha8 is already working on this.

Since Nov 20, 2025.

bug
Dominant language
TypeScript
Stars
161
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

Preflight checklist
Ory Network Project

No response

Describe the bug

Configuration editor crashes whenever a change is made

Reproducing the bug
  1. Visit https://www.ory.sh/docs/kratos/reference/configuration-editor
  2. Make any change: e.g. click the plus under one of the "hooks" headings:
Image
  1. Firefox displays this error:
Image
  1. Chrome displays this error:
Image
Relevant log output
Uncaught SyntaxError: Invalid regular expression: /^\[(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))]:([0-9]*)$/u: Lone quantifier brackets (at 36697.86a64acd.js:5:18005)
    at new RegExp (<anonymous>)
    at y (36697.86a64acd.js:5:18005)
    at 36697.86a64acd.js:8:11026
    at Object.code (36697.86a64acd.js:8:24705)
    at N (36697.86a64acd.js:5:11384)
    at 36697.86a64acd.js:5:6698
    at Object.code (36697.86a64acd.js:2:160817)
    at Object.block (36697.86a64acd.js:2:162737)
    at _ (36697.86a64acd.js:5:6637)
    at y (36697.86a64acd.js:5:5403)
Relevant configuration
Uncaught SyntaxError: Invalid regular expression: /^\[(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))]:([0-9]*)$/u: Lone quantifier brackets
    at new RegExp (<anonymous>)
    at y (36697.86a64acd.js:5:18005)
    at 36697.86a64acd.js:8:11026
    at Object.code (36697.86a64acd.js:8:24705)
    at N (36697.86a64acd.js:5:11384)
    at 36697.86a64acd.js:5:6698
    at Object.code (36697.86a64acd.js:2:160817)
    at Object.block (36697.86a64acd.js:2:162737)
    at _ (36697.86a64acd.js:5:6637)
    at y (36697.86a64acd.js:5:5403)
Version

N/A - docs

On which operating system are you observing this issue?

None

In which environment are you deploying?

None

Additional Context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.