feat: share env files as encrypted links #54

Merged
keb merged 25 commits from share-files into main 2026-10-13 14:55:22 +02:00
2 changed files with 8 additions and 6 deletions
Showing only changes of commit 0757898d61 - Show all commits

No files matched your search

+6 -4
View File
@@ -51,10 +51,12 @@ const (
maxFiles = 1 << 20 maxFiles = 1 << 20
) )
// workFactor is age's scrypt work factor for sealing (its default); // workFactor is the scrypt work factor for sealing: 2^15, about 40 ms
// maxWorkFactor is the most opening accepts, so a link can't make it // each way, instead of age's 2^18 (a third of a second). scrypt makes
// work for minutes. // guessing a weak passphrase slow; a key keeping to the rules is random
var workFactor, maxWorkFactor = 18, 20 // and long enough not to need that. maxWorkFactor is the most opening
// accepts, so a link can't make it work for minutes.
var workFactor, maxWorkFactor = 15, 20
// File is a shared file. // File is a shared file.
type File struct { type File struct {
+2 -2
View File
@@ -17,8 +17,8 @@ import (
"git.kebcloud.no/keb/lazysecrets/internal/share" "git.kebcloud.no/keb/lazysecrets/internal/share"
) )
// scryptWait is how long the driver waits for encrypting and decrypting, // scryptWait is how long the driver waits for encrypting and decrypting:
// which take about a second on purpose. // tens of milliseconds, more than its usual wait, and more under load.
const scryptWait = 20 * time.Second const scryptWait = 20 * time.Second
// demoRules take the demo key, made up to be remembered. // demoRules take the demo key, made up to be remembered.