• Stefy Lanza (nextime / spora )'s avatar
    ocr: the attach path must not be one keystroke from a public one · 23b49d60
    Stefy Lanza (nextime / spora ) authored
    The fan-out gateway lived at /v1/ocr/engine/<lease>/… and the new catalogue at
    /v1/ocr/engines. They do not collide, but both auth gates exempt the gateway by
    PREFIX — so any later route under /v1/ocr/engine* would have inherited that
    exemption silently, and the two names are indistinguishable at a glance in a
    middleware condition.
    
    The gateway is now /v1/ocr/attach/<lease>/…: internal by name, and nothing a
    public path family will grow into. Tests assert /v1/ocr/engines still requires
    ordinary authentication at both gates, and that a plausible future sibling
    (/v1/ocr/engine-stats) does too.
    
    Free to rename because nothing consumes the lease URL yet — it is minted per
    attachment at run time and never written down.
    Co-Authored-By: 's avatarClaude Opus 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_01PxYHWbCAjjjD7A1rhFKtaW
    23b49d60
Name
Last commit
Last update
..
admin Loading commit data...
api Loading commit data...
backends Loading commit data...
broker Loading commit data...
cluster Loading commit data...
compose Loading commit data...
frontproxy Loading commit data...
models Loading commit data...
ocr Loading commit data...
openai Loading commit data...
pydantic Loading commit data...
queue Loading commit data...
tasks Loading commit data...
util Loading commit data...
__init__.py Loading commit data...
cli.py Loading commit data...
config.py Loading commit data...
main.py Loading commit data...
platform_paths.py Loading commit data...
system_app.py Loading commit data...