Skip to content

Conversation

@blt04
Copy link
Contributor

@blt04 blt04 commented Oct 2, 2025

This adds three new ImportAsset attributes to allow custom integrations to specify that their fingerprint data should be trusted, even if the data cannot be normalized by runZero's fingerprint engine:

  • trust_os - Trusts the os attribute and use it to set Asset OS
  • trust_os_version - Trusts the os_version attribute and use it to set Asset OS
  • trust_device_type - Trusts the device_type attribute and use to to set Asset Type

Without these options set, os, os_version and device_type will only be used to set the runZero asset fingerprint if they can be normalized via runZero's fingerprint engine. os, os_version and device_type are always available under the custom integrations attributes, even when the corresponding trust_* options are not set.

Example:

asset = ImportAsset(
  id=f"test-asset-{i}",
  hostnames=[f"test-asset-{i}"],
  device_type="Custom Type",
  os="Custom OS",
  os_version="0.1.2",
  trust_device_type=True,
  trust_os=True,
  trust_os_version=True,
)

@blt04 blt04 requested a review from TomSellers October 2, 2025 15:19
@blt04 blt04 self-assigned this Oct 2, 2025
TomSellers
TomSellers previously approved these changes Oct 2, 2025
@blt04 blt04 force-pushed the add-import-asset-trust branch from 6eb6900 to 60c3608 Compare October 2, 2025 17:16
@blt04 blt04 merged commit 0fcf014 into main Oct 2, 2025
10 checks passed
@blt04 blt04 deleted the add-import-asset-trust branch October 2, 2025 17:30
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.

3 participants