feat: add Windows platform support

This commit is contained in:
2025-09-03 17:48:58 +02:00
parent e8c6e602a2
commit 20bc506e36
8 changed files with 348 additions and 23 deletions

View File

@@ -0,0 +1,11 @@
//go:build !windows
package config
import "os"
// SetSecureFilePermissions configures secure permissions on Unix systems
func SetSecureFilePermissions(filepath string) error {
// Set file permissions to 0600 (owner read/write only)
return os.Chmod(filepath, 0600)
}