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/
Verified that API responses contain the token. No testing done in Cloudflare yet to check that it actually works.
Did you use AI (e.g. Claude, ChatGPT, Copilot, etc.) to help produce this PR?
https://github.com/GrandComicsDatabase/gcd-django/pull/778
(1 file)
—
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.![]()
@adia pushed 1 commit.
—
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.![]()
@adia pushed 1 commit.
—
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.![]()
—
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.![]()
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.![]()
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.![]()