Skip to content

Commit c1816db

Browse files
author
Joep van Delft
committed
Incorporate suggested improvements
1 parent 1af1ed7 commit c1816db

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

user/best-practices-security.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ permalink: /user/best-practices-security/
77
## Steps Travis CI takes to secure your data
88
Travis CI obfuscates secure environment variables and tokens displayed in the UI. Our [documentation about encryption keys](https://docs.travis-ci.com/user/encryption-keys/) outlines the build configuration we require to ensure this, however, once a VM is booted and tests are running, we have less control over what information utilities or add-ons are able to print to the VM’s standard output.
99

10-
In order to prevent leaks made by these components, we automatically filter secure environment variables and tokens that are longer than three characters at runtime, effectively removing them from the build log, displaying the string `[secure]` instead. Please be aware that if the secret is based on an easily gueassable value such as your repository name or the branch, this could lead to an inadvertant leak. We recommend to use a tool like `mkpasswd` to generate your secrets.
10+
To prevent leaks made by these components, we automatically filter secure environment variables and tokens that are longer than three characters at runtime, effectively removing them from the build log, displaying the string `[secure]` instead.
11+
12+
Please make sure your secret is never related to the repository or branch name, or any other guessable string. Ideally use a password generation tool such as `mkpasswd` instead of choosing a secret yourself.
1113

1214
## Recommendations on how to avoid leaking secrets to build logs
1315
Despite our best efforts, there are however many ways in which secure information can accidentally be exposed. These vary according to what tools you are using and what settings you have enabled. Some things to look out for are:

0 commit comments

Comments
 (0)