Documentation
¶
Overview ¶
Package audit records reads and writes of secret variable values. An event is best-effort by design: losing one audit row is better than blocking the action it describes, so Record logs failures instead of returning them.
Index ¶
Constants ¶
const ( Reveal = "reveal" // shown unmasked in the UI Copy = "copy" // fetched for the clipboard Edit = "edit" // pre-filled into an edit form Read = "read" // listed unmasked over the API Set = "set" // value written Delete = "delete" // variable removed )
Actions. "Read" actions mean the plaintext left the server.
Variables ¶
This section is empty.
Functions ¶
func Actor ¶
Actor names the logged-in user for the web surfaces; API and share-link callers build their own actor strings ("api:<key>", "share-link:<id>").
func PanelViews ¶
PanelViews logs the panel renders that put a secret's plaintext in the markup, an explicit ?reveal= or an ?edit= pre-fill. Copy never touches the DOM; it fetches from ServeValue, which logs itself.
func ServeValue ¶
func ServeValue(c echo.Context, s repo.Store, vars []repo.Variable, ownerKind, ownerID, action string) error
ServeValue finds ?name= in the scope's variables, records the read under the action the caller's button performs, and returns the plaintext. Copy and the tile tab's Reveal share this endpoint but are not the same act.
Types ¶
This section is empty.