MCPcopy Create free account
hub / github.com/compozy/agh / rejectTaskSecretText

Function rejectTaskSecretText

internal/task/block_service.go:498–503  ·  view source on GitHub ↗
(path string, value string)

Source from the content-addressed store, hash-verified

496}
497
498func rejectTaskSecretText(path string, value string) error {
499 if redactTaskSecretText(value) != value {
500 return fmt.Errorf("%w: %s must not embed raw secret material", ErrValidation, path)
501 }
502 return nil
503}
504
505func rejectTaskSecretJSON(path string, value []byte) error {
506 if len(value) == 0 {

Callers 3

ClearTaskBlockMethod · 0.85
RecoverTaskMethod · 0.85
taskBlockFromRequestMethod · 0.85

Calls 1

redactTaskSecretTextFunction · 0.85

Tested by

no test coverage detected