securefile

package
v0.0.0-...-16aca47 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2026 License: GPL-2.0, GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package securefile centralizes permissions for local Sable secret files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PermissionWarning

func PermissionWarning(path string) (string, error)

PermissionWarning returns a human-readable warning when path is readable or writable by principals beyond the local operator/admin set.

func Restrict

func Restrict(path string) error

Restrict tightens permissions on an existing sensitive file.

func WriteFile

func WriteFile(path string, data []byte) error

WriteFile writes to an already-restricted temporary file and atomically replaces path. Sensitive bytes are never exposed through a broadly inherited ACL while the write is in progress.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL