⌨️sandbox.credentials
Also known as sandbox credentials setting, credential masking
The key that hides or masks secrets from sandboxed commands.
Think of it like
It is like giving a helper a fake key. The door man swaps in the real one when they reach the door.
Example
Jack's tests need to call GitHub but should never see his token. He masks GITHUB_TOKEN, so the call works and the token stays hidden.
Why it matters
A command that can read a secret can also send it away.
Definition
Example code
json
{
"sandbox": {
"credentials": {
"files": [{ "path": "~/.aws/credentials", "mode": "deny" }],
"envVars": [{ "name": "GITHUB_TOKEN", "mode": "deny" }]
}
}
}Common mistake
Key takeaways
- 1Files and variables. Named secrets.
- 2deny or mask. Hide or swap.
- 3Mask from user file. Or managed.