mithril-security / blindai

Confidential AI deployment with secure enclaves :lock:
https://www.mithrilsecurity.io/
Apache License 2.0
500 stars 35 forks source link

Client telemetry #49

Closed cchudant closed 2 years ago

cchudant commented 2 years ago

Description

Here are the info it collects:

For every event,

Event list:

class ConnectEvent(Event):
    simulation: bool
    policy_allow_debug: Optional[bool]
    server_sgx_enabled: bool
    server_platform: str
    server_version: str
class SendModelEvent(Event):
    simulation: bool
    policy_allow_debug: Optional[bool]
    server_sgx_enabled: bool
    server_platform: str
    server_version: str
    sign: bool
class RunModelEvent(Event):
    simulation: bool
    policy_allow_debug: Optional[bool]
    server_sgx_enabled: bool
    server_platform: str
    server_version: str
    sign: bool

server_platform, server_platform and server_version are sent by the server to the client using the GetServerInfo call.

This builds upon #48, so i expect conflicts if #48 gets new commits.

Questions

These questions will need to get answered before I can make more progress :) @dhuynh95 @JoFrost

Related Issue

Closes #46

Type of change

How Has This Been Tested?

Tested locally and using the amplitude dashboard, and it works :)

Checklist: