How do you deal with tests (both on dev machine and Jenkins) that need credentials (such as AWS keys)?.
I know of the following methods:
1. Test user with known (stored in source control) limited credentials
2. ~/.secrets (or any other known location) RC file which is not in source control
3. Credentials service (such as ZooKeeper) accessed only from VPN
4. Credentials pre user encrypted (gpg) and stored in source control
What method are you using? Are there any best practices in the subject?