Expose AISHub as an optional ships-layer backup when AISStream is silent.

Wire AISHUB_USERNAME into API Keys and onboarding, and surface backup status on the AIS outage banner so operators can keep vessel coverage without changing the AISStream proxy.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
BigBodyCobain
2026-08-09 18:56:30 -06:00
co-authored by Cursor
parent 00f02c2687
commit dc0f69a0b9
12 changed files with 194 additions and 109 deletions
@@ -0,0 +1,9 @@
from services.api_settings import ALLOWED_ENV_KEYS, API_REGISTRY
def test_aishub_username_is_in_api_registry():
entry = next((item for item in API_REGISTRY if item.get("env_key") == "AISHUB_USERNAME"), None)
assert entry is not None
assert entry["category"] == "Maritime"
assert entry["required"] is False
assert "AISHUB_USERNAME" in ALLOWED_ENV_KEYS