[PR #16] [MERGED] Add encrypted config support #33

Closed
opened 2026-02-26 18:43:17 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/devnullvoid/pvetui/pull/16
Author: @devnullvoid
Created: 7/5/2025
Status: Merged
Merged: 7/5/2025
Merged by: @devnullvoid

Base: developHead: codex/add-sops/age-decryption-support


📝 Commits (5)

  • 0393050 Remove unused sops key env helper
  • 58965d6 log when decrypting config
  • 0100088 Use logger for config decryption
  • 41f4263 Inject logger for config decryption
  • 31b30f9 Log config decryption with standard logger

📊 Changes

9 files changed (+492 additions, -18 deletions)

View changed files

.sops.yaml (+4 -0)
📝 CHANGELOG.md (+4 -0)
📝 README.md (+11 -0)
📝 go.mod (+104 -3)
📝 go.sum (+293 -6)
📝 internal/config/config.go (+32 -0)
📝 internal/config/config_test.go (+32 -0)
📝 internal/keys/parse.go (+7 -4)
📝 internal/keys/parse_test.go (+5 -5)

📄 Description

Summary

  • support SOPS/age encrypted config files
  • allow specifying an age key file via flag or env
  • detect and decrypt encrypted config files
  • search default key in $XDG_CONFIG_HOME/sops/age/keys.txt
  • provide .sops.yaml for easier sops usage
  • document encrypted config usage
  • add encrypted config test
  • note change in changelog
  • drop unused helper that set SOPS_AGE_KEY_FILE

Testing

  • git submodule update --init --recursive
  • make build
  • make lint
  • go vet ./...
  • make test

https://chatgpt.com/codex/tasks/task_e_68687500934c8328add5dd2ea6c15673


🔄 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/devnullvoid/pvetui/pull/16 **Author:** [@devnullvoid](https://github.com/devnullvoid) **Created:** 7/5/2025 **Status:** ✅ Merged **Merged:** 7/5/2025 **Merged by:** [@devnullvoid](https://github.com/devnullvoid) **Base:** `develop` ← **Head:** `codex/add-sops/age-decryption-support` --- ### 📝 Commits (5) - [`0393050`](https://github.com/devnullvoid/pvetui/commit/039305022aa80fca109a5979c45a3281f884aa2f) Remove unused sops key env helper - [`58965d6`](https://github.com/devnullvoid/pvetui/commit/58965d67cf60f23cd6bbdbec6df21047a0254394) log when decrypting config - [`0100088`](https://github.com/devnullvoid/pvetui/commit/0100088466e897fd93a8da23624761ea9c3654da) Use logger for config decryption - [`41f4263`](https://github.com/devnullvoid/pvetui/commit/41f42637824c377d580f4c0b3ab189e81086f0b0) Inject logger for config decryption - [`31b30f9`](https://github.com/devnullvoid/pvetui/commit/31b30f9b092ec33b98455f32575982ec3caec8d5) Log config decryption with standard logger ### 📊 Changes **9 files changed** (+492 additions, -18 deletions) <details> <summary>View changed files</summary> ➕ `.sops.yaml` (+4 -0) 📝 `CHANGELOG.md` (+4 -0) 📝 `README.md` (+11 -0) 📝 `go.mod` (+104 -3) 📝 `go.sum` (+293 -6) 📝 `internal/config/config.go` (+32 -0) 📝 `internal/config/config_test.go` (+32 -0) 📝 `internal/keys/parse.go` (+7 -4) 📝 `internal/keys/parse_test.go` (+5 -5) </details> ### 📄 Description ## Summary - support SOPS/age encrypted config files - allow specifying an age key file via flag or env - detect and decrypt encrypted config files - search default key in `$XDG_CONFIG_HOME/sops/age/keys.txt` - provide `.sops.yaml` for easier sops usage - document encrypted config usage - add encrypted config test - note change in changelog - drop unused helper that set `SOPS_AGE_KEY_FILE` ## Testing - `git submodule update --init --recursive` - `make build` - `make lint` - `go vet ./...` - `make test` ------ https://chatgpt.com/codex/tasks/task_e_68687500934c8328add5dd2ea6c15673 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 18:43:17 +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/pvetui#33
No description provided.