redact

package
v1.18.2 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package redact removes credentials from a workflow before it leaves the instance it runs on.

Index

Constants

View Source
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.

Jump to

Keyboard shortcuts

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