Documentation
¶
Overview ¶
Package secret holds credential-redaction primitives shared by the workflow export path and the job request-redact path. Leaf package (imports only regexp) so both internal/job and internal/job/workflow reuse it without a cycle (internal/job cannot import internal/job/workflow — G024).
Index ¶
Constants ¶
const Placeholder = "***REDACTED***"
Placeholder replaces a value that matched a secret pattern (SR403). Structure is preserved so a redacted request/spec stays a runnable template; the real value must be filled back in before re-running.
Variables ¶
This section is empty.
Functions ¶
func RedactString ¶
RedactString replaces credential-looking assignments/flags in s with Placeholder, keeping the key/flag so the output stays a usable template. Returns the scrubbed string and whether anything was redacted. 逐字迁自 export.go:40-62;另加命令行 位置密码(mysql -p<pass>、curl -u user:pass、URL user:pass@)。
func ScanSubmission ¶
ScanSubmission returns location labels only. It never returns matching text, so callers can safely print the warning without echoing a credential.
Types ¶
This section is empty.