![Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack](https://cdn.sanity.io/images/cgdhsj6q/production/6af25114feaaac7179b18127c83327568ff592d1-1024x1024.webp?w=800&fit=max&auto=format)
Security News
Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
security-txt-policy-server
Advanced tools
Security TXT Policy Server serves `.well-known/security.txt` files.
Readme
Security TXT Policy Server serves .well-known/security.txt
files.
Run the following command to create a source distribution:
python3 setup.py sdist
Run the following command to install the package from PyPI:
pip3 install security-txt-policy-server
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
.
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/.
Start Security TXT Policy Server manually with:
bin/security-txt-policy-server
Find the systemd configuration in security-txt-policy-server.service
.
Use a proxy that terminates SSL. E.g. HAProxy.
Run tests with pytest:
DATABASE_PATH=security-txt-policy-server.json pytest tests/
The tests must be run from the project root.
FAQs
Security TXT Policy Server serves `.well-known/security.txt` files.
We found that security-txt-policy-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.
Security News
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.