webrecorder / pywb

Core Python Web Archiving Toolkit for replay and recording of web archives
https://pypi.python.org/pypi/pywb
GNU General Public License v3.0
1.34k stars 207 forks source link

Allow ACLJs to use *, SURT wildcard to match all URLs #882

Closed tw4l closed 3 months ago

tw4l commented 4 months ago

Fixes #881

Description

This PR adds the option to use *, as a SURT in ACLJ files to match any URL. This builds off of the existing ability to do this per-TLD, e.g. com,.

The PR also adds a passing test for the use case described in the issue (overriding default_access: block to all URLs for a specific user), and documents the new option.

Motivation and Context

This allows administrators to give access to all resources to specific (e.g. staff) users.

Types of changes

Checklist:

Quirinus commented 2 months ago

Thanks!