[GrandComicsDatabase/gcd-django] api_v2: Add option to sign cover image URLs with HMAC token (PR #778)

5 views
Skip to first unread message

Alexandros Diamantidis

unread,
Sep 29, 2026, 7:30:58 PM (2 days ago) Sep 29
to GrandComicsDatabase/gcd-django, Subscribed

Description

Our production site is protected by Cloudflare. The API v2 issue endpoint returns the cover scan URL, but when API users try to access it, they might need to pass Cloudflare's challenge.

By setting URL_SIGN_SECRET_KEY in settings, cover URLs returned by the API are signed with a HMAC token which allows direct access to the URL, provided the setup at the following page is implemented:

https://developers.cloudflare.com/waf/custom-rules/use-cases/configure-token-authentication/

Testing

Verified that API responses contain the token. No testing done in Cloudflare yet to check that it actually works.

AI usage

Did you use AI (e.g. Claude, ChatGPT, Copilot, etc.) to help produce this PR?

  • Yes
  • No

You can view, comment on, or merge this pull request online at:

  https://github.com/GrandComicsDatabase/gcd-django/pull/778

Commit Summary

  • 364292e api_v2: Add option to sign cover image URLs with HMAC token

File Changes

(1 file)

Patch Links:

—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <GrandComicsDatabase/gcd-django/pull/778@github.com>

Alexandros Diamantidis

unread,
Sep 29, 2026, 7:36:40 PM (2 days ago) Sep 29
to GrandComicsDatabase/gcd-django, Push

@adia pushed 1 commit.

  • 1f98dd1 api_v2: Add option to sign cover image URLs with HMAC token

—
View it on GitHub or unsubscribe.


Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <GrandComicsDatabase/gcd-django/pull/778/before/364292e9fd961db10a6210b12908957783a83abc/after/1f98dd16aac5af4ab89c62bd6ba08cbf54097f61@github.com>

Alexandros Diamantidis

unread,
Sep 29, 2026, 7:39:02 PM (2 days ago) Sep 29
to GrandComicsDatabase/gcd-django, Push

@adia pushed 1 commit.

  • be3e829 api_v2: Add option to sign cover image URLs with HMAC token

—
View it on GitHub or unsubscribe.


Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <GrandComicsDatabase/gcd-django/pull/778/before/1f98dd16aac5af4ab89c62bd6ba08cbf54097f61/after/be3e82958b2b1a885ac96dedcb76e24f3a007f86@github.com>

JochenGCD

unread,
4:09 AM (17 hours ago) 4:09 AM
to GrandComicsDatabase/gcd-django, Subscribed

Merged #778 into api-v2.

—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <GrandComicsDatabase/gcd-django/pull/778/issue_event/32233395413@github.com>

JochenGCD

unread,
4:13 AM (17 hours ago) 4:13 AM
to GrandComicsDatabase/gcd-django, Subscribed
jochengcd left a comment (GrandComicsDatabase/gcd-django#778)

You have access to beta and cloudflare for setting this up ?

—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <GrandComicsDatabase/gcd-django/pull/778/c5927480991@github.com>

Alexandros Diamantidis

unread,
11:59 AM (9 hours ago) 11:59 AM
to GrandComicsDatabase/gcd-django, Subscribed

Thanks, I do! I see the change is already on beta, so I'll try applying the rule on Cloudflare to see if it'll work.

—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <GrandComicsDatabase/gcd-django/pull/778/c5935249718@github.com>

Reply all
Reply to author
Forward
0 new messages