domino
The module focuses on providing helpful features for developers focused on ease of development, automated tests & enhanced security for 3 types of environments: production, staging and development.
Features
Test users
The module automatically generates test users based on available roles in the system. By default it creates 1 test user for 1 role in the system (i.e. administrator.test user with Administrator role). Configuration allows to configure more test users in the system, whitelist test users to keep enabled on production and a few other options to fine tune test users behaviour and security. This feature aims to provide a reliable set of users for testing of permissions and functionality available for each role in the system.
Display emails as Drupal messages
This feature is particularly useful for writing automated tests. When it's enabled every email sent to a test user in the system is printed as a Drupal message. It helps to QA emails content as well as ensure that call-to-actions and links in the emails content work as expected (i.e. user registration or password reset links).
Display SMS as Drupal messages
It's a submodule and works with SMS Framework module. The functionality is the same as for display of emails as Drupal messages, but for SMS.
Configuration splits
Domino module comes with 3 configuration splits, 1 for each environment: Development, Staging, Production.
User roles
The module creates 2 new user roles: Developer and Manager.
- Developer role is assumed for someone with full access to admin the whole system (usually developers)
- Manager role is assumed for people with full access to the content & users (top privileges for non-developer)
Although this feature does not provide any smart functionality or pre-configured permissions, it helps to standardize on naming for technical and non-technical staff members.
Rerouting emails from development environments
Domino comes with email rerouting functionality for development environments, so that emails from such environments are never sent to real users. By default, it makes Reroute Email module is enabled but the feature is disabled.
If Reroute Email is not enabled for non-production environments, Domino will prevent all emails from being sent until rerouting is configured.
Automated blocking super-admin user
Domino automatically blocks super-admin user (uid = 1) and changes their username and password. This is done for security reasons - they have too many permissions which can't be removed. It makes this user a perfect candidate for hacking attacks. The module deactivates super-admin and changes name / password on cron execution or cache flush.
Dependencies
- [REQUIRED] Configuration Split
- [REQUIRED] Reroute email
- [OPTIONAL] Features (if you want to receive updates of configurations)