Documentation
¶
Overview ¶
Package redact removes credentials from a workflow before it leaves the instance it runs on.
Index ¶
Constants ¶
const Placeholder = "[REDACTED]"
Placeholder replaces a plaintext API key in an exported workflow. It is not a {{ }} template on purpose: a template would resolve to a secret of whatever name it gave in the importing vhost, or silently to nothing, whereas this fails the provider call loudly until someone sets the key.
Variables ¶
This section is empty.
Functions ¶
func AIKeys ¶
func AIKeys(nodes []storage.WorkflowNode) []storage.WorkflowNode
AIKeys returns nodes with every plaintext API key on an AI node replaced by Placeholder. A key written as a {{ }} reference (a vhost secret) is a name, not a credential, and is kept. The nodes passed in are not modified; a node whose config changes gets its own copy of the map.
Types ¶
This section is empty.