What's new from Grafana Labsbreadcrumb arrow Catch hardcoded secrets in Grafana Cloud k6 scripts
What's new from Grafana Labs
What's new from Grafana Labs
Grafana Cloud Generally Available
Release date
2026-07-24

Catch hardcoded secrets in Grafana Cloud k6 scripts

As you write a performance test in Grafana Cloud k6, the script editor can flag hardcoded API keys, tokens, and passwords before you run the test. Those values are stored in plaintext in the script, so leaving them there puts credentials at risk when you share the file or check it into version control.

Warning in the Grafana Cloud k6 script editor listing four potential secrets, each with Move to secret and Ignore actions

In the Grafana Cloud k6 script editor, the editor flags potential secrets as you write. Move a finding into Secrets Management in one click, and k6 rewrites the script to reference the secret at runtime instead of keeping the value in plaintext.

For more information, refer to Move secrets from the script editor.