Skip to content

Interface: FsSecretLiteralsGuardNode ​

Defined in: core/dist/ast/domain/fs-secret-literals-guard-node.d.ts:8

Passive AST node scanning proposed file writes for hardcoded secret literals (fs.secretLiterals).

Inspects pre-flight and post-flight file write contents against built-in and optional custom secret regex patterns before allowing mutations.

Extends ​

Properties ​

PropertyModifierTypeDescriptionInherited fromDefined in
idreadonlystringLogical identifier of the guard instance.BasePolicyGuardASTNode.idcore/dist/ast/base/base-policy-guard-ast-node.d.ts:13
patterns?readonlyreadonly string[]Optional custom regex pattern strings for secret detection.-core/dist/ast/domain/fs-secret-literals-guard-node.d.ts:10
typereadonly"fs:secret-literals"Unique string-literal discriminant of the policy guard node.BasePolicyGuardASTNode.typecore/dist/ast/base/base-policy-guard-ast-node.d.ts:11

Released under the MIT License.