0

Hardware Metadata gRPC Client

A Python tool for secure, multithreaded retrieval of hardware metadata over gRPC

Overview

At Collins Aerospace, I developed a Hardware Metadata gRPC Client in Python that connects to any hardware device by IP and retrieves its full metadata in a secure, isolated way. Using multithreading and a dataclass-based wrapper, the tool ensures each client session stays completely segregated, with zero cross-client data leaks during live RF signal monitoring.

Key Features

  • gRPC Connectivity: Dynamic client stubs auto-generated from .proto definitions
  • Dataclass Wrappers: Typed request/response models for clear, maintainable code
  • Multithreaded Fetching: Parallel metadata retrieval from multiple devices with low latency
  • IP-Based Targeting: Connect to hardware endpoints directly by IP address
  • Secure Isolation: Each thread runs in its own context to prevent data bleed

Built With

  • Python 3.10+
  • grpcio & grpcio-tools for gRPC communication
  • dataclasses module for structured message handling
  • concurrent.futures.ThreadPoolExecutor for multithreading
  • In-house security libraries to enforce isolation policies

Impact

  • Enabled real-time aggregation of device metadata across fleets of RF units
  • Achieved zero cross-client data breaches in production tests
  • Simplified client integration by swapping only IP and dataclass parameters