[PR #398] [MERGED] feat: ssh AuthorizedKey type #439

Closed
opened 2026-02-28 00:42:12 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Telmate/proxmox-api-go/pull/398
Author: @Tinyblargon
Created: 1/28/2025
Status: Merged
Merged: 1/28/2025
Merged by: @Tinyblargon

Base: masterHead: #396


📝 Commits (1)

  • d5b1279 feat: ssh AuthorizedKey type

📊 Changes

9 files changed (+461 additions, -107 deletions)

View changed files

📝 go.mod (+2 -0)
📝 go.sum (+6 -0)
📝 proxmox/config_qemu_cloudinit.go (+1 -37)
📝 proxmox/config_qemu_cloudinit_test.go (+0 -36)
📝 proxmox/config_qemu_test.go (+38 -16)
proxmox/type_authorizedkey.go (+114 -0)
proxmox/type_authorizedkey_test.go (+254 -0)
📝 proxmox/util.go (+8 -0)
📝 test/data/test_data_qemu/type_PublicKey.go (+38 -18)

📄 Description

Add a proper type for SSH authorized keys.
Extract the SSH code from the cloud-init code as it will be reused by LXC.
Increase test coverage.
Custom JSON parser to allow for OpenSSH authorized keys.
All added dependencies are from the golang.org/x packages.

Closes #396


🔄 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/Telmate/proxmox-api-go/pull/398 **Author:** [@Tinyblargon](https://github.com/Tinyblargon) **Created:** 1/28/2025 **Status:** ✅ Merged **Merged:** 1/28/2025 **Merged by:** [@Tinyblargon](https://github.com/Tinyblargon) **Base:** `master` ← **Head:** `#396` --- ### 📝 Commits (1) - [`d5b1279`](https://github.com/Telmate/proxmox-api-go/commit/d5b127987b79b42b050311c56b618c3a436c28f0) feat: ssh `AuthorizedKey` type ### 📊 Changes **9 files changed** (+461 additions, -107 deletions) <details> <summary>View changed files</summary> 📝 `go.mod` (+2 -0) 📝 `go.sum` (+6 -0) 📝 `proxmox/config_qemu_cloudinit.go` (+1 -37) 📝 `proxmox/config_qemu_cloudinit_test.go` (+0 -36) 📝 `proxmox/config_qemu_test.go` (+38 -16) ➕ `proxmox/type_authorizedkey.go` (+114 -0) ➕ `proxmox/type_authorizedkey_test.go` (+254 -0) 📝 `proxmox/util.go` (+8 -0) 📝 `test/data/test_data_qemu/type_PublicKey.go` (+38 -18) </details> ### 📄 Description Add a proper type for SSH authorized keys. Extract the SSH code from the cloud-init code as it will be reused by LXC. Increase test coverage. Custom JSON parser to allow for OpenSSH authorized keys. All added dependencies are from the `golang.org/x` packages. Closes #396 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 00:42:12 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmox-api-go#439
No description provided.