Skip to content

fix(mactrack): leave SNMP secrets out of the device export - #420

Merged
TheWitness merged 2 commits into
developfrom
fix/mactrack-device-export-credentials
Nov 12, 2026
Merged

TheWitness merged 2 commits into
developfrom
fix/mactrack-device-export-credentials

Conversation

@somethingwithproof

Copy link
Copy Markdown
Member

The device CSV export included each device's SNMP community string, v3 auth password and privacy passphrase. This drops those three columns from the export. The import matches columns by header name and only updates the columns it is given, so re-importing an export keeps the stored values. Importing into a new install now needs those values entered, either in the file or afterwards. The import still accepts the three columns.

The test fails on develop and passes here.

Fixes #317

The device CSV export included the community string, auth password and privacy passphrase. Drop those three columns; the import matches columns by name, so re-importing an export keeps the stored values.

Fixes #317

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
Copy the function into a temporary file and require it, so the tests no longer run code through eval().

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
3.7% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@TheWitness
TheWitness merged commit e171c17 into develop Nov 12, 2026
8 of 9 checks passed
@TheWitness
TheWitness deleted the fix/mactrack-device-export-credentials branch November 12, 2026 20:08
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.

hardening: improve output escaping and secure data exports

3 participants