Skip to content

redact replaces an entire JSON Schema with <redacted:private-key> #12

Description

@kjanat

Version

envctl v0.6.0

Reproduction

Run redact over a normal JSON Schema document:

$ envctl redact < src/data/schemas/gameplay.schema.json
<redacted:private-key>

The input is a 37,499-byte draft-06 JSON Schema with SHA-256:

d2702cc7bc4884401f38af9cf37c3a906f0a7dcbb2408fdfd0c9cd8fc8d0057e

gameplay.schema.json

stall-visuals.schema.json

The schema contains no private key, credential, or private-key token. Small schema constructs such as $schema, $ref, type, and definitions pass through normally. None of the individual objects under definitions produces this whole-document marker when tested separately; the false positive occurs on the complete document.

Actual behavior

The entire schema is replaced with:

<redacted:private-key>

Expected behavior

Ordinary JSON Schema content should remain structurally intact. Only actual secret values should be redacted; document size or an aggregate of normal schema text should not cause the whole document to be classified as a private key.

Metadata

Metadata

Assignees

Labels

area: coreCore parsing, editing, and file handlingenhancementNew feature or requestreliabilityCorrectness under real-world input; not losing or mangling data

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions