Replace Antminer plugin with ASIC-RS#479
Draft
ankitgoswami wants to merge 2 commits into
Draft
Conversation
🔐 Codex Security Review
Review SummaryOverall Risk: MEDIUM Findings[MEDIUM] Stock Antminer Firmware Upload Uses the Wrong Multipart Field
[MEDIUM] Firmware Upload Buffers Large Images and Error Bodies in Memory
[MEDIUM] Log Download Caps gRPC Pages but Not Total Log Memory
NotesNo hardcoded wallet, payout address, or pool hijack logic was found in the reviewed diff. No new SQL injection or authentication bypass findings stood out in the changed hunks. Generated by Codex Security Review | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
plugin/asicrsthe stock Antminer driver.mastercommit43d706ef31aa154f8bea0bd7ef8e81caa9cbe491and enable stock Antminer support.000087to move activedriver_name = 'antminer'discovered devices toasicrsand normalize stock Antminer discovery port from4028to80.Test Plan
cargo checkinplugin/asicrscargo testinplugin/asicrsjust rebuild-plugin asicrsjust test-contractDB_PASSWORD=fleet go test ./internal/domain/stores/sqlstores -run TestMigration000087_MigratesPairedAntminerDiscoveredDevicesToAsicrs -count=1go test ./internal/domain/plugins -count=1go test ./cmd/fleetnode ./internal/domain/plugins ./internal/domain/telemetrygo test ./internal/domain/miner -run 'TestEffectiveCapabilitiesForDevice'go test ./internal/domain/fleetmanagement -run 'TestListMinerStateSnapshots_PopulatesSiteIDAndLabel'go test ./internal/domain/pairing -run 'TestHandleAuthenticationRequiredPairing|TestCanonicalCIDR|TestMergeAutoDiscoveryTargets|TestResolveNmapTargets|TestValidateNmapTargets|TestShouldSkipNetworkOrGatewayAddress'go test ./internal/domain/command -run 'TestUpdateMinerPassword|TestCapability|TestHasAnyCapability'go work syncgit diff --check