8000 Suppress warnings for unsafe cert · Issue #45 · homeylab/bookstack-file-exporter · GitHub
[go: up one dir, main page]

Skip to content
Suppress warnings for unsafe cert #45
Closed
@vmario89

Description

@vmario89

Hi, when using untrusted cert, we get a lot of warnings

/opt/bookstack-venv/lib/python3.12/site-packages/urllib3/connectionpool.py:1099: InsecureRequestWarning: Unverified HTTPS request is being made to host 'docs.redacted.org'. Adding certif 571B icate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings

i added some suppression to make the output of the log readable.

vim /opt/bookstack-venv/lib/python3.12/site-packages/bookstack_file_exporter/common/util.py

from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)

when we configure to be insecure means we know the risk. so it makes sense to me to suppress them by code

what do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0