Skip to content

Fix pre-release review findings - #46

Merged
archlemon merged 1 commit into
mainfrom
fix/prerelease-review
Nov 14, 2026
Merged

archlemon merged 1 commit into
mainfrom
fix/prerelease-review

Conversation

@archlemon

Copy link
Copy Markdown
Member

Fixes #45. Second fresh review over v0.1.0..main.

  1. Regression fixed: YAML merge keys (<<: *base) were rejected by the strict-key check. CheckKeys now follows merges (alias, sequence of aliases, inline mapping) and checks the merged keys too.
  2. Dry-run validates like send: Sender.Describe now returns (string, error); smtp parses recipients (shared recipients() with Send), http/exec return build/render errors instead of embedding them in the text, and the CLI validates retries before the dry-run return. --dry-run exits non-zero for retries: -1 or to: ["not an address"].
  3. No https→http redirects (same host was allowed before; would leak headers/body in cleartext). http→https upgrade still followed.
  4. Masking covers url.QueryEscape / url.PathEscape forms of env values.
  5. sensitive() adds pass, cookie, session, signature, credential.
  6. README: masking claim limited to what is masked (${VAR} values ≥4 bytes; not {{ env }}); retry text no longer promises zero duplicates.

Verified: merge-key and dry-run repros fixed; full example config dry-runs with webhook secrets masked and -s 'disk full' → [production] my-app: disk full.

- CheckKeys follows YAML merge keys (<<) into the merged mapping(s)
  instead of rejecting them; v0.1.0 accepted merges.
- Sender.Describe returns an error, and --dry-run reports the
  configuration errors a real send would hit: SMTP recipients are parsed
  and retries validated before the dry-run return.
- Refuse https -> http redirects, which would send headers and the body
  in cleartext.
- Mask URL query/path-escaped forms of env values as well.
- Treat pass, cookie, session, signature and credential field names as
  sensitive in dry-run output.
- README: describe masking and retry duplication limits precisely.

Fixes #45
@archlemon archlemon added bug Something isn't working security Security-relevant fix or hardening labels Nov 14, 2026
@archlemon
archlemon merged commit 9e470e8 into main Nov 14, 2026
2 checks passed
@archlemon
archlemon deleted the fix/prerelease-review branch November 14, 2026 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working security Security-relevant fix or hardening

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pre-release review: merge keys, dry-run validation, redirect downgrade, masking gaps

1 participant