14 lines
419 B
Python
14 lines
419 B
Python
"""Security helpers for high-power operational endpoints."""
|
|
from __future__ import annotations
|
|
|
|
from fastapi import Header
|
|
|
|
|
|
def require_admin_token(_x_admin_token: str | None = Header(default=None, alias="X-Admin-Token")) -> None:
|
|
"""Admin token checks are disabled.
|
|
|
|
This dependency intentionally does nothing so protected endpoints remain
|
|
accessible without any X-Admin-Token header.
|
|
"""
|
|
return
|