Issue Bug Closed

#110247Invalid/obsolete DB options in ConnectionDriverMiddlewaresProvider

Mathias Brodala 07/21/26, 13:20 updated 08/11/26, 08:51

Description

The ConnectionDriverMiddlewaresProvider blinds/masks sensitive configuration, however it evidently refers to DB connection options which were used before Doctrine DBAL was introduced in TYPO3v8:

    protected array $blindedConfigurationOptions = [
        'doctrine-dbal-driver-middlewares' => [
            'Raw' => [
                'Connections' => [
                    'Default' => [
                        'database' => '******',
                        'host' => '******',
                        'password' => '******',
                        'port' => '******',
                        'socket' => '******',
                        'username' => '******',
                    ],
                ],
            ],
        ],
    ];

Compare to the GlobalVariableProvider:

    protected array $blindedConfigurationOptions = [
        'TYPO3_CONF_VARS' => [
            // ...
            'DB' => [
                'database' => '******',
                'host' => '******',
                'password' => '******',
                'port' => '******',
                'socket' => '******',
                'username' => '******',
                'Connections' => [
                    'Default' => [
                        'dbname' => '******',
                        'host' => '******',
                        'password' => '******',
                        'port' => '******',
                        'user' => '******',
                        'unix_socket' => '******',
                    ],
                ],
            ],
            // ...
        ],
    ];

Reviews 3