Episode Details
Back to EpisodesWhere do credentials end and configuration begin in your env file?
Description
Have you ever fixed a failing test by adding a variable to phpunit.xml and moved on, not thinking twice about whether that was actually the right call?
In the latest episode of the No Compromises podcast, we discuss a real pull request disagreement about where environment variables belong and why it actually matters.
We draw an important distinction between credentials and workflow configuration in your env file, and why that difference should determine exactly what goes into phpunit.xml and what stays out.
We also get into why zeroing out API keys and hostnames in your test environment is not optional, and how a small oversight in one PR can quietly expose your tests to real third-party services.
- (00:00) - A real PR disagreement about phpunit.xml
- (01:07) - Credentials vs workflow config in your env file
- (03:17) - Why Aaron is glad his tests failed
- (04:49) - How to properly isolate third-party test keys
- (07:25) - Silly bit
Come talk through decisions like these with developers who care in the No Compromises community.