mirror of
https://github.com/humhub/humhub.git
synced 2025-04-20 23:21:54 +02:00
env sanitizier (#7342)
* Hide ENV variables with Password #474 * Hide ENV variables with Password #474
This commit is contained in:
parent
cc54e1986a
commit
0272bbaf99
@ -17,6 +17,7 @@ HumHub Changelog
|
||||
- Enh #7334: New safe method to rename a database column
|
||||
- Enh #7336: Update GitHub workflow versions
|
||||
- Enh #7339: Add `DeviceDetectorHelper::isMultiInstanceApp()` method to detect if the app is running in a multi-instance mode
|
||||
- Enh #7342: Mask .env `DB__PASSWORD` variable in logs
|
||||
|
||||
1.17.0-beta.2 (November 12, 2024)
|
||||
---------------------------------
|
||||
|
@ -20,6 +20,26 @@ if (!defined('PKCS7_DETACHED')) {
|
||||
define('PKCS7_DETACHED', 64);
|
||||
}
|
||||
|
||||
$logTargetConfig = [
|
||||
'levels' => ['error', 'warning'],
|
||||
'except' => [
|
||||
'yii\web\HttpException:400',
|
||||
'yii\web\HttpException:401',
|
||||
'yii\web\HttpException:403',
|
||||
'yii\web\HttpException:404',
|
||||
'yii\web\HttpException:405',
|
||||
'yii\web\User::getIdentityAndDurationFromCookie',
|
||||
'yii\web\User::renewAuthStatus',
|
||||
],
|
||||
'logVars' => ['_GET', '_SERVER'],
|
||||
'maskVars' => [
|
||||
'_SERVER.HTTP_AUTHORIZATION',
|
||||
'_SERVER.PHP_AUTH_USER',
|
||||
'_SERVER.PHP_AUTH_PW',
|
||||
'_SERVER.HUMHUB_CONFIG__COMPONENTS__DB__PASSWORD',
|
||||
],
|
||||
];
|
||||
|
||||
$config = [
|
||||
'name' => 'HumHub',
|
||||
'version' => '1.17.0-beta.2',
|
||||
@ -61,34 +81,14 @@ $config = [
|
||||
'log' => [
|
||||
'traceLevel' => YII_DEBUG ? 3 : 0,
|
||||
'targets' => [
|
||||
\yii\log\FileTarget::class => [
|
||||
'class' => \yii\log\FileTarget::class,
|
||||
'levels' => ['error', 'warning'],
|
||||
'except' => [
|
||||
'yii\web\HttpException:400',
|
||||
'yii\web\HttpException:401',
|
||||
'yii\web\HttpException:403',
|
||||
'yii\web\HttpException:404',
|
||||
'yii\web\HttpException:405',
|
||||
'yii\web\User::getIdentityAndDurationFromCookie',
|
||||
'yii\web\User::renewAuthStatus',
|
||||
],
|
||||
'logVars' => ['_GET', '_SERVER'],
|
||||
],
|
||||
\yii\log\DbTarget::class => [
|
||||
'class' => \yii\log\DbTarget::class,
|
||||
'levels' => ['error', 'warning'],
|
||||
'except' => [
|
||||
'yii\web\HttpException:400',
|
||||
'yii\web\HttpException:401',
|
||||
'yii\web\HttpException:403',
|
||||
'yii\web\HttpException:404',
|
||||
'yii\web\HttpException:405',
|
||||
'yii\web\User::getIdentityAndDurationFromCookie',
|
||||
'yii\web\User::renewAuthStatus',
|
||||
],
|
||||
'logVars' => ['_GET', '_SERVER'],
|
||||
],
|
||||
\yii\log\FileTarget::class => \yii\helpers\ArrayHelper::merge(
|
||||
['class' => \yii\log\FileTarget::class],
|
||||
$logTargetConfig
|
||||
),
|
||||
\yii\log\DbTarget::class => \yii\helpers\ArrayHelper::merge(
|
||||
['class' => \yii\log\DbTarget::class],
|
||||
$logTargetConfig
|
||||
),
|
||||
],
|
||||
],
|
||||
'settings' => [
|
||||
|
Loading…
x
Reference in New Issue
Block a user