betterwithage commited on
Commit
44d2c74
·
verified ·
1 Parent(s): 6ea3c60

chore(sync): mirror backend .py + Dockerfile to Space (hf-sync-backend)

Browse files

Automated backend sync from szl-holdings/a11oy main via hf-sync-backend.
Updated (differed from the Space): serve.py
Deleted (gone from the repo + Dockerfile COPY set): (none)

Keeps the Space-built backend (serve.py + the Dockerfile-COPY'd .py
modules) identical to GitHub main so the Space never rebuilds from a
stale backend, new endpoints don't 404 there, and orphaned modules
removed from the repo don't linger in the Space tree.

Files changed (1) hide show
  1. serve.py +5 -0
serve.py CHANGED
@@ -8834,6 +8834,7 @@ from fastapi.responses import PlainTextResponse
8834
 
8835
  # ---- Shared ECDSA P-256 signing key (persistent secret, ephemeral fallback) ----
8836
  _A11OY_KEYID = "unavailable"
 
8837
  _A11OY_PAYLOAD_TYPE = "application/vnd.szl.receipt+json"
8838
  _A11OY_PRIV = None
8839
  _A11OY_PUB_PEM = None
@@ -8854,6 +8855,9 @@ try:
8854
  _A11OY_KEYID = _hashv2.sha256(
8855
  _A11OY_PUB_PEM.strip().encode("ascii")
8856
  ).hexdigest()
 
 
 
8857
  import szl_dsse as _a11oy_runtime_dsse
8858
  _a11oy_runtime_dsse.configure_runtime_public_key(_A11OY_PUB_PEM)
8859
  except Exception as _e: # pragma: no cover
@@ -12639,6 +12643,7 @@ try:
12639
  expected_keyid = _A11OY_KEYID
12640
  accepted_keyids = {
12641
  expected_keyid,
 
12642
  "a11oy-inimage-ecdsa-p256",
12643
  }
12644
  matching_sigs = [
 
8834
 
8835
  # ---- Shared ECDSA P-256 signing key (persistent secret, ephemeral fallback) ----
8836
  _A11OY_KEYID = "unavailable"
8837
+ _A11OY_LEGACY_RAW_PEM_KEYID = "unavailable"
8838
  _A11OY_PAYLOAD_TYPE = "application/vnd.szl.receipt+json"
8839
  _A11OY_PRIV = None
8840
  _A11OY_PUB_PEM = None
 
8855
  _A11OY_KEYID = _hashv2.sha256(
8856
  _A11OY_PUB_PEM.strip().encode("ascii")
8857
  ).hexdigest()
8858
+ _A11OY_LEGACY_RAW_PEM_KEYID = _hashv2.sha256(
8859
+ _A11OY_PUB_PEM.encode("ascii")
8860
+ ).hexdigest()
8861
  import szl_dsse as _a11oy_runtime_dsse
8862
  _a11oy_runtime_dsse.configure_runtime_public_key(_A11OY_PUB_PEM)
8863
  except Exception as _e: # pragma: no cover
 
12643
  expected_keyid = _A11OY_KEYID
12644
  accepted_keyids = {
12645
  expected_keyid,
12646
+ _A11OY_LEGACY_RAW_PEM_KEYID,
12647
  "a11oy-inimage-ecdsa-p256",
12648
  }
12649
  matching_sigs = [