Skip to content

v0.2.1

Choose a tag to compare

@github-actions github-actions released this 29 Nov 18:30
· 54 commits to main since this release
v0.2.1
2b51c20

Known issue: in GitHub Actions, actions/checkout adds an includeIf entry to the repository's git configuration, and 0.2.1 then scans the checkout as a plain directory, so the Action's diff-base fails with exit code 2. Fixed in v0.2.2; use that release.

Upgrading from 0.2.0: these changes can turn a passing job into a failing one, or change what a run reads.

  • spackle verify refuses a run made before this release, or one copied from another machine or user: scan again and verify the new run.
  • A runs folder is not read when git cannot read the repository around it, including one owned by another account.
  • A repository whose own git configuration uses includeIf, or names a program for core.fsmonitor, is scanned as a plain directory.

Changed

  • spackle verify runs the stored proofs of a run only if this user made it on this machine. Each run now gets an origin file, an HMAC of its id under a key Spackle keeps in your configuration directory (spackle/run-key under %AppData%, ~/.config or ~/Library/Application Support). A run folder that arrived any other way, or one made before this release, is refused: scan again and verify the new run. The scanned directory must be the current directory or inside it once symbolic links and junctions are resolved.
  • A runs folder is not read when git cannot say whether it is tracked (a broken or unsafe repository configuration, or one git refuses for dubious ownership).
  • A recorded fix patch hides every secret value of the original file on both sides of the diff, wherever it appears, and sandbox output (fix checks, debug checks, the evidence files) hides the secret values of the files the run was given.
  • A credential that the Dockerfile, Kubernetes and Terraform checks report is hidden wherever it appears in the file it was found in, in any form (continuation lines, several pairs on a line, flow maps, block scalars, escaped quotes), however the path to the file is spelled and through a symbolic link, and in a commit patch that touches the file. A value shaped like a token is also hidden everywhere else (patches, sandbox output, prompts); any other value is not, so a scanned repository cannot hide code from the model by writing it as a secret.
  • An Authorization value is redacted in code forms (Header.Set("Authorization", ...), []string{...}, setRequestHeader, =>, templates, f-strings, escaped JSON, XML, HTTP_AUTHORIZATION), for more schemes, and without a scheme when it holds letters and digits. Only values that look like credentials are reported.
  • The scope check for a running target refuses any percent sequence left after one decode, paths that are not valid UTF-8, and dot segments disguised with control, white space, invisible, combining or filler characters, look-alike dots, look-alike semicolons, or three or more dots; a segment holding a slash look-alike is refused.
  • Response headers whose name marks a credential are masked for more names (X-Csrf, X-Sid, X-Access-Key, X-Passphrase, X-Request-Signature and others), CORS headers stay readable, and the parameter values of Location, Content-Location, Refresh and Link URLs (query, fragment, path parameters) are masked.
  • git runs with lazy fetching off; a partial clone's remote programs are checked for every command, and one that needs objects Spackle will not fetch says so. A repository whose own config uses includeIf is refused; a plain include is checked like the rest, and core.fsmonitor is allowed only when every value git would read for it (included files and the worktree config too) is a boolean.
  • A git URL with a password is cloned without asking a credential helper, so none stores it. Errors and displays drop the user information of a URL even when the password holds a raw @, / or quote, and keep an @ in a path (repo@v2, /@scope).
  • The seeder status names every .semgrepignore and .gitleaksignore the scanners read from the target, at any depth.
  • base_url must be an absolute http or https URL with no white space, control character, quote, backtick, angle bracket, backslash or fragment. An endpoint that cannot be made into a request is not repeated in an error, and the Ollama hint drops the query and user information of base_url.

Redaction is pattern-based and best-effort: a secret in a form no rule or check recognizes can still reach the model provider. docs/PRIVACY.md says what is covered.

Verify this release

cosign verify-blob checksums.txt \
  --bundle checksums.txt.sigstore.json \
  --certificate-identity-regexp 'https://github.com/TMHSDigital/Spackle/.github/workflows/release.yml@refs/tags/v.*' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com
sha256sum --ignore-missing -c checksums.txt
gh attestation verify <archive> --repo TMHSDigital/Spackle