bitexpert / sulu-securitytxt-bundle
Sulu 安全.txt 配置管理包
v0.6.0
2024-07-07 12:22 UTC
Requires
- php: ^8.2 | ^8.3
- sulu/sulu: ^2.6
- symfony/dependency-injection: ^6.0
- symfony/framework-bundle: ^6.0
- symfony/http-foundation: ^6.0
- symfony/http-kernel: ^6.0
- symfony/routing: ^6.0
Requires (Dev)
- jackalope/jackalope: ^1.4
- jackalope/jackalope-doctrine-dbal: ^1.8
- madewithlove/license-checker: ^1.4
- phly/keep-a-changelog: ^2.12
- phpstan/extension-installer: ^1.2
- phpstan/phpstan: ^1.9
- phpstan/phpstan-phpunit: ^1.3
- phpstan/phpstan-strict-rules: ^1.4
- phpunit/phpunit: ^11.2
- roave/security-advisories: dev-latest
- squizlabs/php_codesniffer: ^3.7
This package is auto-updated.
Last update: 2024-09-01 05:01:20 UTC
README
这是一个用于管理 Sulu 网站空间的 security.txt 文件的 Sulu 包。
根据 securitytxt.org,security.txt 的主要目的是帮助公司在尝试保护平台时使事情变得更简单。多亏了 security.txt,安全研究人员可以轻松地与公司联系有关安全问题。
安装
composer require bitexpert/sulu-securitytxt-bundle
- 在文件
config/bundles.php
中注册该包
BitExpert\Sulu\SecuritytxtBundle\BitExpertSuluSecuritytxtBundle::class => ['all' => true],
- 配置路由如下
创建文件 config/routes/securitytxt_admin.yaml
securitytxt_api: resource: "@BitExpertSuluSecuritytxtBundle/Resources/config/routing_api.yaml" type: rest prefix: /admin/api
创建文件 config/routes/securitytxt_website.yaml
securitytxt_website: resource: "@BitExpertSuluSecuritytxtBundle/Resources/config/routing_website.yaml"
- 运行 Doctrine Schema Update
./bin/adminconsole doctrine:schema:update -f
使用方法
安装后,此包将在网站空间配置中添加一个名为“Security.txt”的选项卡,允许您为不同的网站空间创建新的 security.txt 条目。每个网站空间只能保存一个 security.txt 配置。
自 0.5.0 版起:只有具有 Securitytxt 权限的用户才能查看、添加、编辑或删除 security.txt 条目。
贡献
请随时分支并扩展现有功能或添加新功能,并将您的更改作为 pull request 发送!为了保持代码质量的一致性,请为所有更改提供单元测试,并修改文档。
想要贡献吗?
如果您觉得有东西可以分享,我们将非常高兴。请查看 贡献指南,了解如何以及我们希望从您那里得到什么。
许可证
Sulu Security.txt Bundle 在 MIT 许可证下发布。