mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2573] [CLOSED] SECURITY.md: which paths answer without the API key (the app's pages, /health, a generated image's URL) #4138
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4138
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/2573
Author: @qiuzan2001
Created: 10/15/2026
Status: ❌ Closed
Base:
main← Head:chief-docs/security-image-files📝 Commits (1)
7d50a54SECURITY.md: which paths answer without the API key (the app's pages, /health, a generated image's URL)📊 Changes
1 file changed (+5 additions, -1 deletions)
View changed files
📝
SECURITY.md(+5 -1)📄 Description
What it changes. SECURITY.md's API-key bullet said the key "is required on
/v1/*".GET /v1/images/files/<name>(a generated image, with image generation set up) answers without it on purpose: the name issecrets.token_hex(16)+.png(128 random bits) and is the access, as an OpenAI image URL is (serve/server.pydo_GET,serve/images.pystore/FILE_NAME). The bullet now names every path that answers without a key: the web app's pages and files (/,/api-monitorwhen on,/web/*,/fonts/*),/healthand/api/health(and what they tell: the model's name, context size, loaded, pictures / image generation on, whether a key is set) and that image URL.What it leaves alone. The server, and every other line of SECURITY.md. It does not overlap #2564 (the CORS bullet).
How it was checked. Every
do_GETbranch with a key set (_authorized()or not), and an audit of every route with a key: everything else answers 401. A sub-agent reviewer checked the list againstdo_GET/do_OPTIONS; its additions (/api/health,/fonts/*, the full/healthcontents) are in.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.