mirror of
https://github.com/devnullvoid/pvetui.git
synced 2026-04-25 05:15:51 +03:00
[GH-ISSUE #72] Optional Age Folder Location #15
Labels
No labels
bug
bug
documentation
enhancement
pull-request
question
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/pvetui#15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tylerdotrar on GitHub (Dec 31, 2025).
Original GitHub issue: https://github.com/devnullvoid/pvetui/issues/72
Originally assigned to: @devnullvoid on GitHub.
For context, my current
pvetuiconfiguration is storing the config YAML file along withcache_dirwithin a separate internal SMB share -- this allows me to sharepvetuifunctionality between multiple internal hosts without duplicating API token configurations or storing duplicate configurations on hosts.With that said, upon setting up a new personal workstation I was confused when trying to use
pvetuiwith the configuration file stored on my SMB share resulted in an "authentication failed: invalid credentials" error message. After checking multiple times between my hosts, literal same verbatim syntax but getting a different result, I realized that the working workstation had.age-identityand.age-recipientfiles within$env:APPDATAdespite mypve_cachebeing stored elsewhere.To be fair, I am unfamiliar with
ageencryption, but after looking through the codebase (specificallyencryption.go) and skimming through theageGithub project -- I learned my invalid credentials message had to do with my new workstation not having the proper.age-identityand.age-recipientfiles stored within%appdata%.With all that said, would an optional
agefile location location within the config file be feasible? I recognize it may not be the most secure approach in the world, but a verbose override would be greatly appreciated. On one hand, it could be stored in thecache_dirby default (though I'd wager the--no-cacheparameter would result in some issues), but also adding an optionalage_folderwithin the config file could also prevent this.pvetuiversions tested are versions 1.0.12 - 1.0.15, all built from source viago installon both Windows 24H2 and 22H2. Happy to include more information if needed, as well as admit this is a very niche case and implementation may be low priority.@devnullvoid commented on GitHub (Jan 1, 2026):
Ahh this is a use case I did not consider. The defaults on Windows are:
Config file and age keys: stored in
%APPDATA%\pvetuiCache files and debug log stored in
%LOCALAPPDATA%\pvetuiOn Linux\macOS:
Config and age keys:
$XDG_CONFIG_HOME\pvetuiCache files and debug log:
$XDG_CACHE_HOME\pvetuiI was considering moving the age keys default locations to %LOCALAPPDATA%\pvetui on Windows and
$XDG_STATE_HOME(or$XDG_DATA_HOME) on Linux/macOS... but keeping the existing locations as a fallback for current users... that could be for another time, though.Adding a variable in the config file itself, such as
age_dirshould not be a problem at all, and should not be disruptive to any current users either.Let me see if I can squeeze this is in with the fixes/changes I'm currently prepping for the next release (mostly for #69 and #70)
@devnullvoid commented on GitHub (Jan 1, 2026):
Fix is on develop and verified (Windows, including UNC paths). Added age_dir/--age-dir/PVETUI_AGE_DIR override for age key location, plus ~ expansion. Release pending.