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:
@@ -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.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user