Skip to content

Add platform headers (X-Agent-OS, X-Agent-Arch) to update check requests #164

Merged
iAziz786 merged 1 commit intomainfrom
push-wsnsnokvrkyu
Jan 25, 2026
Merged

Add platform headers (X-Agent-OS, X-Agent-Arch) to update check requests #164
iAziz786 merged 1 commit intomainfrom
push-wsnsnokvrkyu

Conversation

@iAziz786
Copy link
Contributor

No description provided.

… requests

- Create internal/httpclient package with AgentTransport RoundTripper
- AgentTransport injects X-Agent-Version, X-Agent-OS, X-Agent-Arch headers
- Remove currentVersion parameter from Check() method (breaking change)
- Add ErrUnsupportedPlatform error for 400 responses
- Log unsupported platform at WARN level instead of ERROR
- Update main.go to use httpclient.NewClient()
This allows the control plane to serve the correct binary for the agent's
OS/architecture combination during self-updates.
@iAziz786 iAziz786 self-assigned this Jan 25, 2026
@iAziz786 iAziz786 changed the title feat: add platform headers (X-Agent-OS, X-Agent-Arch) to update check requests - Create internal/httpclient package with AgentTransport RoundTripper - AgentTransport injects X-Agent-Version, X-Agent-OS, X-Agent-Arch headers - Remove currentVersion parameter from Check() method (breaking change) - Add ErrUnsupportedPlatform error for 400 responses - Log unsupported platform at WARN level instead of ERROR - Update main.go to use httpclient.NewClient() This allows the control plane to serve the correct binary for the agent's OS/architecture combination during self-updates. Add platform headers (X-Agent-OS, X-Agent-Arch) to update check requests Jan 25, 2026
@iAziz786 iAziz786 merged commit cf28ae7 into main Jan 25, 2026
1 check passed
@iAziz786 iAziz786 deleted the push-wsnsnokvrkyu branch January 25, 2026 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant