rhertogh/yii2-security.txt

A Yii2 extension to serve .well-known/security.txt

Installs: 551

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

1.0.0-alpha2 2024-08-19 19:02 UTC

This package is auto-updated.

Last update: 2024-11-19 19:32:41 UTC


README

Latest Stable Version build Status Code Coverage Scrutinizer Code Quality GitHub

A Yii2 extension to serve .well-known/security.txt
RFC 9116: A File Format to Aid in Security Vulnerability Disclosure.
You can view generated examples here.

📑 Contents

🐣 Getting started

Requirements:

  • The minimum required PHP version is 8.1 (compatibility tested up till and including PHP 8.3).
  • The minimum required Yii version is 2.0.49.

Installation:

The preferred way to install this extension is through composer.

composer require rhertogh/yii2-security.txt

Full installation and configuration details can be found in the docs under Installing Yii2 security.txt

🏎️ Test Drive

You can run a local preview instance using Docker:

docker run --rm -p 82:80 --name Yii2SecurityTxt ghcr.io/rhertogh/yii2-securitytxt:master

After the container is started you can access the sample server on localhost:82.

Hint: The port number on the host machine is specified by the first part of the -p argument. This can be changed if desired (e.g. -p 88:80).

To access the CLI of the Docker container you can run:

docker container exec -it Yii2SecurityTxt bash

📖 Documentation

There are two main sections in the documentation:

🔮 FAQ

The FAQ can be found here.

📜 Versioning & Change Log

The Yii2 security.txt project follows Semantic Versioning 2.0
Please see the Change Log for more information on version history and the Upgrading Instructions when upgrading to a newer version.

🔎 Reporting Security issues

In case you found a security issue please contact us directly DO NOT use the issue tracker or discuss it in public as it will cause more damage than help.

Please note that as a non-commercial OpenSource project we are not able to pay bounties.

📂 Directory Structure

docker/     Docker container definition
docs/       Documentation (for both usage and development)
sample/     Sample app for the server
src/        Yii2SecurityTxt source
tests/      Codeception unit and functional tests

🚀 Contributing

The Yii2SecurityTxt extension is Open Source. You can help by:

Thanks in advance for your contribution!

🎉 Credits

✒️ License

The Yii2SecurityTxt extension is free software. It is released under the terms of the Apache License. Please see LICENSE.md for more information.