drupal/security_setup_recipe 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

  1. Rebuild caches.
drush cr
  1. Validate CSP reports and move from report-only to enforcement when ready.
  2. Enable HSTS only in HTTPS environments.
  3. 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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2026-06-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固