Skip to content

P1: Add release-workflow secret hygiene scanner and artifact redaction tests #8726

Closed

Description

@Git-on-my-level

Problem

Release workflows are high-risk because they transform private CI secrets into build artifacts, app env files, Docker builds, release notes, logs, and crash/debug artifacts. PR #8717 adds important public-client secret boundary checks; we should ensure release workflow secret hygiene is complete and durable across all release paths.

Scope

Add or extend scanners/tests that prevent release workflows from writing server-only secrets into public client artifacts or logs.

If PR #8717 fully covers a sub-scope, this issue can become a follow-up tracker for remaining release paths and real artifact scans.

Proposed deliverables

  • Scanner checks for dangerous patterns such as:
    • echo SECRET=$SECRET >> .env for denied secret classes
    • set -x around secret-handling blocks
    • provider/server secrets passed as Docker build args for public images
    • secret-looking values in generated release artifacts/log fixtures
  • Allowlist for explicitly public client config variables.
  • Fake sentinel tests that prove redaction/detection.
  • Documentation for release workflow authors.

Acceptance criteria

  • Public CI runs scanner/tests without private credentials.
  • Scanner allows documented public config but rejects denied server-only secret classes.
  • Tests cover mobile, desktop, web, plugin/Docker, and workflow fixture paths as applicable.
  • Real release artifact scans are documented as maintainer-only post-build evidence where private artifacts are involved.
  • The issue is closed only after confirming overlap with PR Harden public client secret boundaries #8717 and tracking any uncovered release paths.

Related context


Safety / agent notes

  • Do not include raw secrets, tokens, provider keys, private keys, or user content in PRs, logs, fixtures, docs, or issue comments.
  • Public code should run without production credentials. Prefer fake fixtures, dry-run/read-only modes, and PASS / FAIL / SKIP_NO_CREDENTIALS / NOT_RUN outputs.
  • Production writes, key rotation/revocation, deploys, traffic shifts, and break-glass actions require explicit maintainer approval outside this issue.
  • If implementation changes setup, deploy commands, env vars, safety rules, service boundaries, or runtime contracts, update docs/AGENTS.md as appropriate.

Activity

  1. added
    p1
    security-review
    workflow-review
    on Jul 1, 2026
  2. added a commit that references this issue on Jul 1, 2026
    4b87596
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    p1security-reviewworkflow-review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions