drupal/security_setup_recipe
Composer 安装命令:
composer require drupal/security_setup_recipe
包简介
Drupal recipe package for baseline site security hardening.
README 文档
README
What This Recipe Does
This recipe installs a practical baseline of Drupal hardening modules and imports security-focused configuration defaults.
Package
- Composer package: drupal/security_setup_recipe
- Recipe manifest: recipe.yml
Included Behavior
- HTTP security headers via SecKit
- Brute-force mitigation via Login Security
- Idle session handling via Autologout
- Password policy baseline
- Flood control and ban support
- Paranoia module for admin UI hardening
Requirements
- Drupal 10.3 or 11
- Security modules listed in composer.json
Install
composer require drupal/security_setup_recipe
Apply
drush recipe security_setup
Post-Apply Steps
- Rebuild caches.
drush cr
- Validate CSP reports and move from report-only to enforcement when ready.
- Enable HSTS only in HTTPS environments.
- Apply environment-specific overrides for autologout/session rules if needed.
Known Limitations
- Security posture still requires environment-specific hardening and policy tuning.
- HSTS and strict CSP enforcement should be enabled only after validation in your deployment context.
Maintenance
- HSTS is intentionally not forced in base config.
- The recipe is safe to re-apply because strict is set to false.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2026-06-16