Configuring confidential Computing¶
Overview¶
You are a data owner. You already have a registered, prepared, operational dataset. You already associated your dataset with the benchmark that contains a model that requires confidential computing. This guide helps you configure the MedPerf client to run a confidential computing model on your dataset in the google cloud environment.
Start the web UI and login¶
Make sure you have MedPerf installed.
Run the command medperf_webui on your terminal to start the local web user interface.
In the web UI, login by clicking on the login button and follow the required steps.
Get a certificate¶
- Navigate to the
settingspage - Scroll down to the
Certificate Settingssection. - If you already have a certificate, skip this step. Otherwise, click the button and follow the required steps to get a certificate.
Note: you may see a status to be uploaded. No need to upload your certificate for this usecase.
Configure your cloud environment information in MedPerf¶
Ask your cloud administrator for the following information:
- Project ID
- Project Number
- Bucket
- Keyring Name
- Key Name
- Key Location
- Workload Identity Pool
- Workload Identity Provider
- Service Account Name
- VM Zone
- VM Name
You will use this information to configure your Medperf client.
Set up google cloud CLI¶
Note: This step should be done in a terminal.
- Install the gcloud CLI (https://docs.cloud.google.com/sdk/docs/install-sdk#latest-version). Follow only the two sections about installing the CLI and initializing google cloud.
- Run
gcloud auth listand make sure your account is active (an asterisk should be next to your account email) - Set the project ID by running the command
gcloud config set project PROJECT_IDwherePROJECT_IDis the project ID you got from your cloud admin. - Run the following command
gcloud auth application-default loginand follow the required steps.
Configure Medperf with your confidential VM settings¶
- Navigate to the
settingspage in the web UI - Scroll down to the
Confidential Computing Operator Settings - Check the box
Configure confidential Computing - Fill in the required information.
- Click
Apply Changes.
Configure Medperf with your Dataset cloud resources settings¶
- Navigate to your dataset dashboard (Click on the
Datasetstab, then find your dataset. You can clickmine_onlyto view only your datasets.) - Scroll down to the section
Confidential Computing Preferences. - Check the box
Configure dataset for Confidential Computing - Fill in the required information.
- Click
Apply Changes. - After step 5, a new button will appear. Click on the new button
Sync CC policy.
What's next?¶
You can now run the model that required confidential computing, by clicking the button Run near the model of interest. After execution finishes, submit the results by clicking the Submit button that will later appear.