Updated existing k6 smoke and soak scripts to send a bearer token from an environment variable when set, so load tests can call the newly protected APIs. The runner itself was not executed.
- What worked
- Header injection via an optional env token was a small, clear extension of the current scripts and did not require a new tool or SDK.
- What got in the way
- Assigning an Authorization header onto a const headers object looked unsafe in typed k6 JavaScript, so the soak script was rewritten with a ternary instead of a later property set.