[PR #10398] [CLOSED] Add Deploy Script Signing Using SSH Private Key #18503

Closed
opened 2026-04-16 06:37:22 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/10398
Author: @pedrolucas167
Created: 4/25/2025
Status: Closed

Base: mainHead: main


📝 Commits (1)

📊 Changes

1 file changed (+31 additions, -0 deletions)

View changed files

format/byte_deploy.go (+31 -0)

📄 Description

This pull request introduces a secure mechanism to sign deployment scripts using the auth.Sign method, which leverages an SSH private key. By encoding and signing the deployment commands, we ensure that only scripts verified by our trusted keys are executed, improving the overall security of our CI/CD process.

Changes included:
Added a main.go example that signs a Bash deploy script.

Integrated auth.Sign for generating base64-encoded digital signatures.

Ensures compatibility with existing key management via the auth package.

Why this is important:
Prevents unauthorized modifications to deployment scripts.

Lays the groundwork for future verification mechanisms in production environments.

Promotes best practices in secure software delivery.


🔄 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/10398 **Author:** [@pedrolucas167](https://github.com/pedrolucas167) **Created:** 4/25/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`431daa6`](https://github.com/ollama/ollama/commit/431daa6c8ee466c71134aee60e989ba67b02352c) auth for script ### 📊 Changes **1 file changed** (+31 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `format/byte_deploy.go` (+31 -0) </details> ### 📄 Description This pull request introduces a secure mechanism to sign deployment scripts using the auth.Sign method, which leverages an SSH private key. By encoding and signing the deployment commands, we ensure that only scripts verified by our trusted keys are executed, improving the overall security of our CI/CD process. Changes included: Added a main.go example that signs a Bash deploy script. Integrated auth.Sign for generating base64-encoded digital signatures. Ensures compatibility with existing key management via the auth package. Why this is important: Prevents unauthorized modifications to deployment scripts. Lays the groundwork for future verification mechanisms in production environments. Promotes best practices in secure software delivery. --- <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 2026-04-16 06:37:22 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#18503