A few days ago, we released our first open-source bundle for the Sulu CMS - a content management solution built on top of the Symfony framework.
The bundle allows you to manage security.txt files via Sulu Admin. But what is a security.txt file? Security.txt files are a proposed standard (see RFC 9116) which allows websites to define security policies.
Instead of manually adding and managing the files, with our bundle you can use Sulu Admin to do so.
Installing the bundle is done as follows:
- Download the bundle via Composer:
composer require bitexpert/sulu-securitytxt-bundle
- Register the bundle in the file
BitExpert\Sulu\SecuritytxtBundle\BitExpertSuluSecuritytxtBundle::class => ['all' => true],
- Create file
config/packages/securitytxt.yamlto expose the
- Configure the routing as follows:
- Run Doctrine Schema Update
./bin/adminconsole doctrine:schema:update -f
Now, when you open Sulu Admin and navigate to the Webspaces menu, you should see an additional tab "Security.txt" which allows you to manage the Security.txt files for each of your webspaces. Be aware that you can only save one security.txt file for one specific webspace!
If you like the module, let us know!