Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

url_preview_ip_range_blacklist not honored #9417

Description

@dani

Description

URL preview is not honoring url_preview_ip_range_blacklist anymore since 1.25 (or was it 1.26 ?)

Steps to reproduce

I have enabled url_preview in my config and configured ip blacklist so private IP are not previewed

url_preview_enabled: True
url_preview_ip_range_blacklist:
  - '127.0.0.0/8'
  - '10.0.0.0/8'
  - '172.16.0.0/12'
  - '192.168.0.0/16'
  - '100.64.0.0/10'
  - '169.254.0.0/16'
max_spider_size: 10M

This used to work as expected, but since a few versions, it's not honoring url_preview_ip_range_blacklist anymore. URL corresponding to private IP are being previewed. I haven't noted the exact version in which the problem was introduced but I think it was either 1.25.0 or 1.26.0

Version information

  • Synapse 1.27.0
  • manual install with PIP
  • CentOS Linux 7 with Python 3.6.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    X-Needs-InfoThis issue is blocked awaiting information from the reporter

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions