Samui? Samui!David's Neighbour's Notizen über sein Leben als Auswanderer auf der Insel Koh Samui in Thailand. Auf Deutsch, und so...

Security

This module adds a security.txt file to your Hugo website with information about your preferred procedures to notify the developer team of your website about security issues on your website. Read more about security.txt , a proposed standard which allows websites to define security policies.

Please note, that security.txt is still in the early stages of development and changes might occur. This module will implement all changes and notify you in the hugo.log about (possibly future) missing configuration steps, if they occur.

This module DOES NOT make your website more secure. Just in case you were assuming that 😸

Usage

Install this plugin, then add your configuration to params.dnb.security.txt. The following configuration parameters are available and correspond to the values in security.txt :

[dnb]
  [dnb.security]
    [dnb.security.txt]
      acknowledgements = ''
      canonical = ''
      contact = ''
      encryption = ''
      expires = 365
      hiring = ''
      intro = 'Information related to reporting security vulnerabilities of this site.'
      languages = 'en'
      policy = ''
dnb:
  security:
    txt:
      acknowledgements: ""
      canonical: ""
      contact: ""
      encryption: ""
      expires: 365
      hiring: ""
      intro: Information related to reporting security vulnerabilities of this site.
      languages: en
      policy: ""
{
   "dnb": {
      "security": {
         "txt": {
            "acknowledgements": "",
            "canonical": "",
            "contact": "",
            "encryption": "",
            "expires": 365,
            "hiring": "",
            "intro": "Information related to reporting security vulnerabilities of this site.",
            "languages": "en",
            "policy": ""
         }
      }
   }
}

The values in this sample display the default configuration. The only required parameters are contact and expires (the latter being set to 365 days = 1 year by default). So the following configuration would be minimal and within the scope of the requirements:

[dnb]
  [dnb.security]
    [dnb.security.txt]
      contact = 'https://yourwebsite.com/contact/'
dnb:
  security:
    txt:
      contact: https://yourwebsite.com/contact/
{
   "dnb": {
      "security": {
         "txt": {
            "contact": "https://yourwebsite.com/contact/"
         }
      }
   }
}

The module will warn you in the CLI log if this parameter is missing.

Example Implementations

A few real-world implementation examples of security.txt

… and a few websites that are using hugo-security: