[PR #10881] [MERGED] client: add request signing to the client #12129

Closed
opened 2025-11-12 16:29:26 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/10881
Author: @pdevine
Created: 5/27/2025
Status: Merged
Merged: 5/27/2025
Merged by: @pdevine

Base: mainHead: pdevine/auth-token


📝 Commits (4)

📊 Changes

2 files changed (+52 additions, -0 deletions)

View changed files

📝 api/client.go (+50 -0)
📝 envconfig/config.go (+2 -0)

📄 Description

If OLLAMA_AUTH is set, sign each request w/ a timestamp and pass the signature in the token header


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/10881 **Author:** [@pdevine](https://github.com/pdevine) **Created:** 5/27/2025 **Status:** ✅ Merged **Merged:** 5/27/2025 **Merged by:** [@pdevine](https://github.com/pdevine) **Base:** `main` ← **Head:** `pdevine/auth-token` --- ### 📝 Commits (4) - [`e855b17`](https://github.com/ollama/ollama/commit/e855b17485ce89940e23ab9370e5f5933513139e) client: add request signing to the client - [`6b17ece`](https://github.com/ollama/ollama/commit/6b17ece96ff79ffc10a1c94d0b805e1a9c4d7542) feed the linter - [`483c61e`](https://github.com/ollama/ollama/commit/483c61ed311f0c332098c92c7798c1215669b248) address comments - [`d919dba`](https://github.com/ollama/ollama/commit/d919dbaf56de80e131af691ac881d4664691f598) change envconfig variable ### 📊 Changes **2 files changed** (+52 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `api/client.go` (+50 -0) 📝 `envconfig/config.go` (+2 -0) </details> ### 📄 Description If OLLAMA_AUTH is set, sign each request w/ a timestamp and pass the signature in the token header --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-12 16:29:26 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama-ollama#12129