Skip to content

Commit

Permalink
Merge pull request #989 from felddy/improvement/cloudflare-redaction
Browse files Browse the repository at this point in the history
Add redaction regex for Cloudflare pre-signed URLs
  • Loading branch information
felddy authored Jun 9, 2024
2 parents 36feeeb + 90423b5 commit 95af7e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@

MAIN_SERVICE_NAME = "foundry"
REDACTION_REGEXES = [
# AWS S3 pre-signed URL
re.compile(r"AWSAccessKeyId=(.*?)&Signature=(.*?)&"),
# Cloudflare R2 pre-signed URL
re.compile(r"\?verify=([0-9]+-[a-zA-Z0-9%]+)"),
]
VERSION_FILE = "src/_version.py"
VERSION_SERVICE_NAME = f"{MAIN_SERVICE_NAME}-version"
Expand Down

0 comments on commit 95af7e0

Please sign in to comment.