mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-11 14:00:29 +00:00
452a19eafa
Changed Authorization headers in ssh-config and verify-temperature-ssh API calls to use the runtime $AUTH_TOKEN variable instead of compile-time hardcoded authToken. This fixes a bug where users who override the auth token via: - PULSE_SETUP_TOKEN environment variable - Interactive prompt (when auth_token URL param omitted) ...would still send an empty Bearer token in the Authorization headers, causing API calls to fail with 401 Unauthorized. Changes: - Line 4748: -H "Authorization: Bearer %s" → -H "Authorization: Bearer $AUTH_TOKEN" - Line 4937: -H "Authorization: Bearer %s" → -H "Authorization: Bearer $AUTH_TOKEN" - Removed 2 authToken arguments from fmt.Sprintf (lines 5059) Now the script respects runtime token overrides in all code paths. Identified by Codex during fmt.Sprintf argument alignment review.
Internal API Package
This directory contains the API server implementation for Pulse.
Important Note About frontend-modern/
The frontend-modern/ subdirectory that appears here is:
- AUTO-GENERATED during builds
- NOT the source code - just a build artifact
- IN .gitignore - never committed
- REQUIRED BY GO - The embed directive needs it here
Frontend Development Location
👉 Edit frontend files at: /opt/pulse/frontend-modern/src/
Why This Structure?
Go's //go:embed directive has limitations:
- Cannot use
../paths to access parent directories - Cannot follow symbolic links
- Must embed files within the Go module
This is a known Go limitation and our structure works around it.