Skip to main content

security-txt-policy-server serves `.well-known/security.txt` files.

Project description

python3-cyberfusion-security-txt-policy-server

security-txt-policy-server serves .well-known/security.txt files.

Install

PyPI

Run the following command to install the package from PyPI:

pip3 install python3-cyberfusion-security-txt-policy-server

Debian

Run the following commands to build a Debian package:

mk-build-deps -i -t 'apt -o Debug::pkgProblemResolver=yes --no-install-recommends -y'
dpkg-buildpackage -us -uc

Configure

App

The following environment variables may be specified:

; The app name is used in several places for this app to identify itself (string)
; Default: security-txt-policy-server
APP_NAME=

; The server will bind to this host (string)
; Default: ::1
LISTEN_HOST=

; The server will listen to this port (integer)
; Default: 8080
LISTEN_PORT=

; IP addresses of proxies that are trusted with proxy headers (comma separated list of strings)
; Default: ::1
TRUSTED_PROXY_ADDRESSES=

; The path to your JSON database (string)
; Default: none
DATABASE_PATH=

Only DATABASE_PATH is required to be set. We recommend setting it to /var/lib/security-txt-policy-server.json.

JSON Database

Find an example JSON database in security-txt-policy-server.json.

Properties:

  • domains. List of domains that this security.txt policy is served for.
  • expires_timestamp. UNIX timestamp of security.txt 'Expires' field.
  • email_contacts. (Do not add prefix mailto: which is required by security.txt - the server does this.)
  • url_contacts
  • encryption_key_urls
  • acknowledgment_urls
  • preferred_languages
  • policy_urls
  • opening_urls

Find information about these properties on https://securitytxt.org/.

Usage

Manually

bin/security-txt-policy-server

systemd

systemctl start security-txt-policy-server.service

SSL

Use a proxy that terminates SSL. E.g. HAProxy.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

File details

Details for the file python3_cyberfusion_security_txt_policy_server-1.0.5.1.2.tar.gz.

File metadata

File hashes

Hashes for python3_cyberfusion_security_txt_policy_server-1.0.5.1.2.tar.gz
Algorithm Hash digest
SHA256 551364f49a42427b49293741ab533b4d65c9b16ba34b3ccb1859af97a0da1713
MD5 d45c718acd5fac91a52b6b748d136e11
BLAKE2b-256 f71a2dcba9cb8e125370449af55e5a1053c9cefcf8de2baa9ce934ff66e4efa0

See more details on using hashes here.

File details

Details for the file python3_cyberfusion_security_txt_policy_server-1.0.5.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for python3_cyberfusion_security_txt_policy_server-1.0.5.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5ed960f1c4254c58651cad3b4460c6dca73a9b247773b2d78d679b4665a842a6
MD5 62efdb1633b679b5ac48d20beb6aa3f5
BLAKE2b-256 e7ee32b19c8846748f1c77fb9693367dc6de2d1952acd17a3451e2e32259eff9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page