Using different secrets in different environments is inevitable. To elaborate, you wont probably want to use same database (if database is not located in localhost) for both production and development, for example.
On the other hand, this is why parameters.yml
put in .gitignore
by default.