[PR #3225] [MERGED] Writable deploy keys (closes #671) #16834

Closed
opened 2025-11-02 12:20:11 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/3225
Author: @vtemian
Created: 12/18/2017
Status: Merged
Merged: 1/6/2018
Merged by: @lafriks

Base: masterHead: writable-deploy-keys-671


📝 Commits (10+)

  • 9d44308 Add is_writable checkbox to deploy keys interface
  • 0bb3228 Add writable key option to deploy key form
  • 147063e Add support for writable ssh keys in the interface
  • e4315d9 Rename IsWritable to ReadOnly
  • 96e85d7 Test: create read-only and read-write deploy keys via api
  • 8becb7e Add DeployKey access mode migration
  • 1142740 Update gitea sdk via govendor
  • 1dc6f3e Fix deploykey migration
  • 9256cf6 Add unittests for writable deploy keys
  • dde53ee Move template text to locale

📊 Changes

13 files changed (+184 additions, -13 deletions)

View changed files

📝 integrations/api_keys_test.go (+53 -0)
models/fixtures/deploy_key.yml (+1 -0)
📝 models/migrations/migrations.go (+2 -0)
models/migrations/v55.go (+23 -0)
📝 models/ssh_key.go (+17 -4)
📝 modules/auth/user_form.go (+4 -3)
📝 options/locale/locale_en-US.ini (+4 -0)
📝 routers/api/v1/repo/key.go (+1 -1)
📝 routers/repo/setting.go (+1 -1)
routers/repo/settings_test.go (+61 -0)
📝 templates/repo/settings/deploy_keys.tmpl (+10 -1)
📝 vendor/code.gitea.io/sdk/gitea/repo_key.go (+4 -0)
📝 vendor/vendor.json (+3 -3)

📄 Description

Add support for read/write deploy key (as github has).

It introduces a new option for write access and an info note that will show the user key's access mode (read/write).
Those options are supported by the API as well.
deploys
add-ssh


🔄 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/go-gitea/gitea/pull/3225 **Author:** [@vtemian](https://github.com/vtemian) **Created:** 12/18/2017 **Status:** ✅ Merged **Merged:** 1/6/2018 **Merged by:** [@lafriks](https://github.com/lafriks) **Base:** `master` ← **Head:** `writable-deploy-keys-671` --- ### 📝 Commits (10+) - [`9d44308`](https://github.com/go-gitea/gitea/commit/9d4430829823c8f1986828a14343460178edc3da) Add is_writable checkbox to deploy keys interface - [`0bb3228`](https://github.com/go-gitea/gitea/commit/0bb3228a6720b2a9f7938bbe5daa605b67153e4c) Add writable key option to deploy key form - [`147063e`](https://github.com/go-gitea/gitea/commit/147063e65eb356563e1f7da46255814f26513f17) Add support for writable ssh keys in the interface - [`e4315d9`](https://github.com/go-gitea/gitea/commit/e4315d9e061480de1b8c734cf2cbda972f599b8a) Rename IsWritable to ReadOnly - [`96e85d7`](https://github.com/go-gitea/gitea/commit/96e85d73361830631cc1fe3603aec4ddd73dcfb0) Test: create read-only and read-write deploy keys via api - [`8becb7e`](https://github.com/go-gitea/gitea/commit/8becb7e71db47099e7815fc147f7a9d7a4e465ea) Add DeployKey access mode migration - [`1142740`](https://github.com/go-gitea/gitea/commit/1142740661fd8e515d9f5622567e158997341fbe) Update gitea sdk via govendor - [`1dc6f3e`](https://github.com/go-gitea/gitea/commit/1dc6f3e059f72107482d8a8aadeb6bdfa067243b) Fix deploykey migration - [`9256cf6`](https://github.com/go-gitea/gitea/commit/9256cf61abae73387f0691c0d6a2416de2418444) Add unittests for writable deploy keys - [`dde53ee`](https://github.com/go-gitea/gitea/commit/dde53ee83c72a506db5c5f014a88ee33cf0f405f) Move template text to locale ### 📊 Changes **13 files changed** (+184 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `integrations/api_keys_test.go` (+53 -0) ➕ `models/fixtures/deploy_key.yml` (+1 -0) 📝 `models/migrations/migrations.go` (+2 -0) ➕ `models/migrations/v55.go` (+23 -0) 📝 `models/ssh_key.go` (+17 -4) 📝 `modules/auth/user_form.go` (+4 -3) 📝 `options/locale/locale_en-US.ini` (+4 -0) 📝 `routers/api/v1/repo/key.go` (+1 -1) 📝 `routers/repo/setting.go` (+1 -1) ➕ `routers/repo/settings_test.go` (+61 -0) 📝 `templates/repo/settings/deploy_keys.tmpl` (+10 -1) 📝 `vendor/code.gitea.io/sdk/gitea/repo_key.go` (+4 -0) 📝 `vendor/vendor.json` (+3 -3) </details> ### 📄 Description Add support for read/write deploy key (as github has). It introduces a new option for write access and an info note that will show the user key's access mode (read/write). Those options are supported by the API as well. ![deploys](https://user-images.githubusercontent.com/639771/34102810-25e9e55e-e3f3-11e7-934e-e7cc9c1e491b.png) ![add-ssh](https://user-images.githubusercontent.com/639771/34102811-26354ae4-e3f3-11e7-985e-eab3ce011ac2.png) --- <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-02 12:20:11 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#16834