Secrets: failure in their evaluation #575

Closed
opened 2026-04-05 16:20:42 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @well-it-wasnt-me on 1/23/2025

Describe the bug
If you use a secrets which string contains something that might remotely resemble Unicode the criteria script will fail

To Reproduce
Steps to reproduce the behavior:

  1. Go to secrets, add a random one
  2. As value for the string write '\u12kskfj'
  3. Go to monitor, criteria, edit
  4. A console log with the secret name is enough
  5. See error: Unicode error.

Note: casting doesn't work.

Expected behavior
Whatever is in the secret being treated as string.

Screenshots
n/a

Desktop (please complete the following information):

  • OS: all
  • Browser all
  • Version n/a

Smartphone (please complete the following information):

  • Device: all
  • OS: all
  • Browser all
  • Version n/a

Deployment Type
Is this issue on SaaS (at https://oneuptime.com) or self hosted (the version that you deployed on your server)?

Both

Additional context
Just write anything you wish as value for your secret as long it contains a backslash or a slash.

*Originally created by @well-it-wasnt-me on 1/23/2025* **Describe the bug** If you use a secrets which string contains something that might remotely resemble Unicode the criteria script will fail **To Reproduce** Steps to reproduce the behavior: 1. Go to secrets, add a random one 2. As value for the string write '\u12kskfj' 3. Go to monitor, criteria, edit 4. A console log with the secret name is enough 5. See error: Unicode error. Note: casting doesn't work. **Expected behavior** Whatever is in the secret being treated as string. **Screenshots** n/a **Desktop (please complete the following information):** - OS: all - Browser all - Version n/a **Smartphone (please complete the following information):** - Device: all - OS: all - Browser all - Version n/a **Deployment Type** Is this issue on SaaS (at https://oneuptime.com) or self hosted (the version that you deployed on your server)? Both **Additional context** Just write anything you wish as value for your secret as long it contains a backslash or a slash.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/oneuptime#575