nvflare.app_opt.confidential_computing.cc_manager module

class CCManager(cc_issuers_conf: [typing.Dict[str, str]], cc_verifier_ids: [<class 'str'>], verify_frequency=600, critical_level=2)[source]

Bases: FLComponent

Manage all confidential computing related tasks.

This manager does the following tasks: obtaining its own CC token preparing the token to the server keeping clients’ tokens in server validating all tokens in the entire NVFlare system not allowing the system to start if failed to get CC token shutdown the running jobs if CC tokens expired

Parameters:
  • cc_issuers_conf – configuration of the CC token issuers. each contains the CC token issuer component ID, and the token expiration time

  • cc_verifier_ids – CC token verifiers component IDs

  • verify_frequency – CC tokens verification frequency

  • critical_level – critical_level

handle_event(event_type: str, fl_ctx: FLContext)[source]

Handles events.

Parameters:
  • event_type (str) – event type fired by workflow.

  • fl_ctx (FLContext) – FLContext information.