secitem

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: BSD-3-Clause Imports: 0 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 secitem is the cgo-free Security.framework binding for the darwin keychain backend. It resolves the SecItem CRUD calls, the kSec* attribute constants, and the SecAccess/SecACL calls that build the trust-all ACL, all through purego over the CoreFoundation primitives in the sibling cf package.

The trust-all ACL (SecAccessCreate with a NULL trusted-application list on the decrypt authorization) reproduces `security add-generic-password -A`: any process of the same user reads the item without a prompt, and a rebuilt binary keeps access. Those SecAccess/SecACL calls are deprecated but not removed and still operate on the legacy login keychain; if a future OS drops them, Load records the loss and TrustAllAccess reports it so the backend can fall back.

The package is internal to keychain and carries real code only on darwin; this file keeps it a valid, buildable package on every other GOOS.

Jump to

Keyboard shortcuts

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