feat: Add API Keys and Image Uploads support to Plummer dashboard/api - #7
feat: Add API Keys and Image Uploads support to Plummer dashboard/api#7kiyarose wants to merge 1 commit into
Conversation
Co-authored-by: kiyarose <75678535+kiyarose@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
plummer | 951bcac | Commit Preview URL Branch Preview URL |
Aug 13 2026, 01:41 AM |
This PR introduces two major features to Plummer:
API Keys Management & Authentication:
create,read,update,delete) and optional expiry/host scoping.checkApiKeyAuthto seamlessly intercept and enforce Bearer tokens on/api/*endpoints. Token hashes are stored in KV using aapikey:<host>:<id>format, while the user uses anid.secretstring allowing O(1) KV lookup./api/keysstrictly require core administrative Basic Auth.Image Link Hosting & Uploads:
isImagetoggle onto the link creation form in the admin dashboard, shifting the input to a file upload while disabling unnecessary fields like the destination URL.multipart/form-data, ensuring a hard size limit of 5MB.LINKIVERSEKV store mapped byimage:<host>:<slug>.Content-Typemapping instead of forwarding requests toguestiftype: 'image'is encountered.src/index.jsbackground scheduled link purge correctly cleans up any leftover KV image data when tombstoned images are purged.PR created automatically by Jules for task 9932901083538209952 started by @kiyarose