Skip to content

NFC is not enforced / checked #82

Description

@bwbroersma

Example sectxt:

# Hallå!
Contact: https://example.org
Expires: 2024-12-31T23:59:59Z
Canonical: https://example.org/.well-known/security.txt

Make sure it is in NFD (which is wrong):

$ cat sectxt-plain | uconv -x any-nfd > sectxt-plain-nfd

This is not detected

Python 3.11.2 (main, Sep 14 2024, 03:00:30) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from sectxt import Parser
>>> p = Parser(open("sectxt-plain-nfd","rb").read(65000))
>>> p.is_valid()
True
>>> p.errors
[]
>>> p.recommendations
[{'code': 'not_signed', 'message': 'security.txt should be digitally signed.', 'line': None}]
>>> p.notifications
[]

Note in case of PGP signing the result actually is:

[{'code': 'pgp_data_error', 'message': 'Signed message did not contain a correct ASCII-armored PGP block.', 'line': 1}]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions