What is the correct way to handle secrets with k6 cloud? I can use --secret-source=file
locally with k6 run
but this same command run with k6 cloud run
doesn’t seem to handle the secrets. I end up with the following error:
ERRO[0024] Uncaught (in promise) no secret sources are configured
Alternatively, using k6 cloud env variables doesn’t seem to provide any masking support for secrets.
Any help would be appreciated.
Hi @christopherking, welcome to the community forum!
Secrets support is currently in early development for Grafana Cloud k6. Due to overlapping demand across our products, we prioritized delivering secrets management in Synthetic Monitoring first, where the need was more immediate and broadly applicable to user workflows.
Both products do use k6, so adding the support to the k6 project was the first step.
That said, secrets are absolutely on the roadmap for GCk6, and we plan to deliver this feature in the next few quarters.