docs icon indicating copy to clipboard operation
docs copied to clipboard

Kratos configuration editor is broken

Open lol768 opened this issue 5 months ago • 2 comments

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

lol768 avatar Jul 25 '25 10:07 lol768