fix: authenticate device config sync like upload client

- send X-Device-Name and X-Api-Key to /api/device-config
- require YARIS_DEVICE_NAME alongside shared upload creds
- fix server create_device output to match actual Pi env names
- document shared upload/config sync credential requirements

Co-authored-by: Copilot <[email protected]>
This commit is contained in:
Mathieu Moran
2026-08-10 17:42:40 -04:00
co-authored by Copilot
parent 5a5058adca
commit a114939914
6 changed files with 47 additions and 42 deletions
+3 -3
View File
@@ -40,9 +40,9 @@ def main():
print(f"Device '{device_name}' registered (id={device_id}).")
print()
print("Save these on the Pi (e.g. in server/.env-style local config, gitignored):")
print(f" YARIS_UPLOAD_DEVICE_NAME={device_name}")
print(f" YARIS_UPLOAD_API_KEY={raw_key}")
print("Save these on the Pi (e.g. in db/upload_creds.env, gitignored):")
print(f" YARIS_DEVICE_NAME={device_name}")
print(f" YARIS_API_KEY={raw_key}")
print()
print("This key will not be shown again - only its hash is stored server-side.")