monitorSecrets not evaluating in a synthetic monitor script #499

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

Originally created by @toaster74 on 4/25/2025

Describe the bug
Secrets are not replaced by their valut in a playwright script.

To Reproduce
Steps to reproduce the behavior:

  1. Create a synthetic Monitor with this script as console output:
let ts = '{{monitorSecrets.TestSecret}}';
console.log('Hello World Secret is '+ts);
  1. Create a secret in the projectr calles TestSecret with a value
  2. Evaluate the script
  3. The console output does not log the secret value, but the string {{monitorSecrets.TestSecret}}

Expected behavior
I would expect that the value of the secret will be in the variable ts.

Desktop (please complete the following information):

  • OS: last helm chart
  • Browser chrome
*Originally created by @toaster74 on 4/25/2025* **Describe the bug** Secrets are not replaced by their valut in a playwright script. **To Reproduce** Steps to reproduce the behavior: 1. Create a synthetic Monitor with this script as console output: ```// To log data, use console.log let ts = '{{monitorSecrets.TestSecret}}'; console.log('Hello World Secret is '+ts); ``` 3. Create a secret in the projectr calles TestSecret with a value 4. Evaluate the script 5. The console output does not log the secret value, but the string {{monitorSecrets.TestSecret}} **Expected behavior** I would expect that the value of the secret will be in the variable ts. **Desktop (please complete the following information):** - OS: last helm chart - Browser chrome
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/oneuptime#499