Skip to content

Remove wee_alloc and verify credential output safety - #32

Merged
gabehamilton merged 1 commit into
mainfrom
fix/security-alerts
Nov 2, 2026
Merged

gabehamilton merged 1 commit into
mainfrom
fix/security-alerts

Conversation

@gabehamilton

@gabehamilton gabehamilton commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

The contract inherits the unmaintained wee_alloc allocator from NEAR SDK defaults (Dependabot #32). Disable defaults for both normal and test SDK dependencies so WASM uses Rust’s standard allocator, and remove wee_alloc and its unused dependencies from the lockfile. This changes the contract WASM/code hash.

CodeQL alerts #1–#5 trace secret-key input into intentionally printed public keys. The parser returns the public 32-byte suffix of the NEAR seed || public_key encoding; no seed bytes reach those outputs. Add nine CLI regression tests for stdout/stderr, malformed input, credential-file modes, and redaction; run them in a read-only, SHA-pinned Actions workflow. Document this evidence rather than suppressing the logging query globally.

Validation:

  • Nine Python credential-output tests passed.
  • All 23 approval-contract unit tests passed.
  • Release WASM build passed with Rust 1.98.
  • Rust formatting, actionlint, and whitespace checks passed.
  • All nine GitHub checks passed, including pinned-toolchain formatting/Clippy/unit tests, reproducible WASM, all four NEAR sandbox tests, credential-output tests, and CodeQL.

Additional local verification: all four sandbox integration tests passed against the canonical reproducible CI artifact; workspace Clippy passed with warnings denied.

@gabehamilton
gabehamilton marked this pull request as ready for review October 30, 2026 16:23
@gabehamilton
gabehamilton merged commit 9352bd9 into main Nov 2, 2026
9 checks passed
@gabehamilton
gabehamilton deleted the fix/security-alerts branch November 2, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant