Monitor secrets not works es expected in Custom Javascript monitor #145

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

Originally created by @luisxkimo on 1/21/2026

Describe the bug
Trying to test a monitor JS custom code before save, we cannot see the real value of a secret in the log message after test using a probe.

To Reproduce
Steps to reproduce the behavior:

  1. Create a custom javascript monitor
  2. Create a secret and allow access to that monitor to use
  3. Use this JS code in the monitor
const basicAuth = `Basic {{monitorSecrets.basesixfoursecret}}`
console.log(basicAuth)
  1. Click on Test Monitor

Expected behavior
See in the result something like:

[
  "Basic dGhlcGFzc3dvcmQ="
]

But result is:

[
  "Basic {{monitorSecrets.basesixfoursecret}}"
]

Desktop (please complete the following information):

  • OS: Windows
  • Browser Firefox
  • Version 147.0.1

Deployment Type
Helm Chart v9.3.2
API: 9.3.2 (781455abb5)
Dashboard: 9.3.2 (781455abb5)
Community Edition

*Originally created by @luisxkimo on 1/21/2026* **Describe the bug** Trying to test a monitor JS custom code before save, we cannot see the real value of a secret in the log message after test using a probe. **To Reproduce** Steps to reproduce the behavior: 1. Create a custom javascript monitor 2. Create a secret and allow access to that monitor to use 3. Use this JS code in the monitor ```javascript const basicAuth = `Basic {{monitorSecrets.basesixfoursecret}}` console.log(basicAuth) ``` 5. Click on Test Monitor **Expected behavior** See in the result something like: ```json [ "Basic dGhlcGFzc3dvcmQ=" ] ``` But result is: ```json [ "Basic {{monitorSecrets.basesixfoursecret}}" ] ``` **Desktop (please complete the following information):** - OS: Windows - Browser Firefox - Version 147.0.1 **Deployment Type** Helm Chart v9.3.2 API: 9.3.2 (781455abb52fc9122bcf0f34bafdd61e0046cdd5) Dashboard: 9.3.2 (781455abb52fc9122bcf0f34bafdd61e0046cdd5) Community Edition
MrUnknownDE added the bugbugbugbugbugbugbugbugbugbugbugbugbugbugbugbugbugbugbug labels 2026-04-05 16:18:57 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/oneuptime#145