-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should log file contain plain text database username passwords etc? #1542
Comments
This line shows where to find the DBGroup:
|
@natanfelles Sorry but my main concern is with the username and passwords being included in the log file. |
We have already had a similar issue: #935 |
yes - its "just" the error page in development mode only if you customize/create own production error page take care of not show sensitive informations |
Is this something that CI is doing out of the box? or a situation where you are logging something and expect CI to suppress sensitive info? |
its logged by the callstack - its only shown in development |
Never show sensitive informations and never log sensitive informations. We should prevent in the development too. |
Yes, out of the box in production mode.
Yes, I am using a MySQL database to connect to. I have two servers, one where I have my web app hosted and the other where I have mysql database hosted. One of the cron jobs restart my database server at midnight and that's when I get these errors in my log. I suppose the end user only sees "Whoops" page.
Yes I have enabled to log critical errors as I want to check my logs if there is anything broken on my site. The above log info is from production mode. |
name: Bug report
about: Help us improve the framework by reporting bugs!
Database credentials in the log file in production mode
I have enabled logs for critical errors and I can see this information in my log files
Obviously I have replaced the above with dummy values but I am just wondering if log file should include information set by .env file? Having this information is useful, I suppose, to know which server it is trying to connect to and failing but I wanted to inform you about this.
CodeIgniter 4 version
CodeIgniter-4-develop
The text was updated successfully, but these errors were encountered: