homeperms

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package homeperms is the single enumeration of the config-home secret paths and their canonical modes, shared by init (the seeder) and doctor (the fixer) so they can never disagree. Mirrors facade._secret_perms + SECRET_DIR/FILE_MODE.

Index

Constants

View Source
const (
	DirMode  os.FileMode = 0o700
	FileMode os.FileMode = 0o600
)

Secret modes for the config home.

Variables

This section is empty.

Functions

func SecretPerms

func SecretPerms(p paths.Paths) []perms.ManagedPath

SecretPerms returns every config-home secret path with its canonical mode.

"Secret" is read broadly. The state models are not key material, but the manifest maps every hostname and login the user talks to, providers.json can hold API tokens for the deployment backends, and a bundle's .contents sidecar names every key in the archive. None of that should be readable by other local accounts.

Types

This section is empty.

Jump to

Keyboard shortcuts

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