[PR #2573] [CLOSED] SECURITY.md: which paths answer without the API key (the app's pages, /health, a generated image's URL) #4138

Closed
opened 2026-11-07 15:33:31 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • 7d50a54 SECURITY.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 is secrets.token_hex(16) + .png (128 random bits) and is the access, as an OpenAI image URL is (serve/server.py do_GET, serve/images.py store / FILE_NAME). The bullet now names every path that answers without a key: the web app's pages and files (/, /api-monitor when on, /web/*, /fonts/*), /health and /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_GET branch 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 against do_GET / do_OPTIONS; its additions (/api/health, /fonts/*, the full /health contents) are in.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/2573 **Author:** [@qiuzan2001](https://github.com/qiuzan2001) **Created:** 10/15/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `chief-docs/security-image-files` --- ### 📝 Commits (1) - [`7d50a54`](https://github.com/Niko1221/Strata/commit/7d50a54e7b5bdc2dfbe7a6ad9077414e2f2c27b9) SECURITY.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) <details> <summary>View changed files</summary> 📝 `SECURITY.md` (+5 -1) </details> ### 📄 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 is `secrets.token_hex(16)` + `.png` (128 random bits) and is the access, as an OpenAI image URL is (`serve/server.py` `do_GET`, `serve/images.py` `store` / `FILE_NAME`). The bullet now names every path that answers without a key: the web app's pages and files (`/`, `/api-monitor` when on, `/web/*`, `/fonts/*`), `/health` and `/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_GET` branch 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 against `do_GET` / `do_OPTIONS`; its additions (`/api/health`, `/fonts/*`, the full `/health` contents) are in. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:33:31 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4138
No description provided.