Skip to content

Commit 161a142

Browse files
committed
Drop HOTDATA_TOKEN fallback from runtime auth resolution.
Require HOTDATA_API_KEY as the single environment contract so runtime behavior and docs stay unambiguous.
1 parent d3a7823 commit 161a142

3 files changed

Lines changed: 3 additions & 7 deletions

File tree

CONTRACT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Adapters should import from `hotdata_runtime` and treat this surface as the stab
6060

6161
### Env Resolution
6262

63-
- `default_api_key()` reads `HOTDATA_API_KEY` then `HOTDATA_TOKEN`.
63+
- `default_api_key()` reads `HOTDATA_API_KEY`.
6464
- `default_host()` reads `HOTDATA_API_URL` (default: `https://api.hotdata.dev`) and normalizes it.
6565
- `default_session_id()` reads `HOTDATA_SANDBOX`.
6666
- `pick_workspace()` prefers explicit env workspace, then active workspace, then first workspace.

hotdata_runtime/client.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ def __init__(
7878
def from_env(cls) -> HotdataClient:
7979
api_key = default_api_key()
8080
if not api_key:
81-
raise RuntimeError(
82-
"HOTDATA_API_KEY or HOTDATA_TOKEN must be set."
83-
)
81+
raise RuntimeError("HOTDATA_API_KEY must be set.")
8482
host = default_host()
8583
session = default_session_id()
8684
workspace_id = pick_workspace(api_key, host, session)

hotdata_runtime/env.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ def normalize_host(url: str) -> str:
1919

2020

2121
def default_api_key() -> str:
22-
return os.environ.get("HOTDATA_API_KEY", "") or os.environ.get(
23-
"HOTDATA_TOKEN", ""
24-
)
22+
return os.environ.get("HOTDATA_API_KEY", "")
2523

2624

2725
def explicit_workspace_id() -> str | None:

0 commit comments

Comments
 (0)