Mautic credentials configuration is not overriden

Created on 18 February 2025, about 2 months ago

Problem/Motivation

The Mautic credentials configuration in the mautic_paragraph module is not being properly overridden by settings.php, despite being defined in the Platform token and deploy scaffold files. This prevents proper credential management across different environments and poses potential security risks by not respecting the environment-specific configuration override system.

Steps to reproduce

1. Install and enable the mautic_paragraph module
2. Configure Mautic credentials in Platform token
3. Add the override configuration in settings.php using the following structure:
```php
$config['mautic_paragraph.settings'] = [
'url' => 'your-mautic-url',
'username' => 'your-username',
'password' => 'your-password',
];
```
4. Clear the cache
5. Observe that the module continues to use the original credentials instead of the overridden ones from settings.php

Proposed resolution

Implement proper configuration override handling in the module to ensure it respects the Drupal configuration override system. This may involve:
1. Reviewing the module's configuration management implementation
2. Ensuring proper use of the Configuration API
3. Adding appropriate configuration schema validation
4. Implementing proper configuration override handling in the module's service layer

Remaining tasks

1. Investigate why current configuration override is not working
2. Implement fix for configuration override system
3. Add tests to verify configuration override functionality
4. Update documentation to clearly describe configuration override capabilities
5. Review and test the solution across different environment setups

User interface changes

No UI changes are required. This is a backend configuration issue.

API changes

No API changes are required. The fix should work within existing Drupal configuration API standards.

Data model changes

No data model changes are required. This is a configuration handling issue that should be resolved within the existing configuration system.

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

🇵🇱Poland jorgik

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024