Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix broken link #185

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 3 additions & 22 deletions docs/docs/tutorials/api/whisper_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@
"id": "f2blJaY5SD2R"
},
"source": [
"It is at this point that the attestation process is triggered. There is a technical explanation of what goes on in [our confidential computing guide](../../getting-started/confidential_computing.md). \n",
"It is at this point that the attestation process is triggered. There is a technical explanation of what goes on in [our confidential computing guide](https://blindai.mithrilsecurity.io/en/latest/docs/getting-started/confidential_computing/). \n",
"\n",
"But if you haven't read it yet, all you need to know at this point is that the attestation process **verifies** that the **application code** running in the enclave has **not been modified**. To do so, it will check that the Mithril server instance is running a real enclave using **genuine hardware**. \n",
"\n",
Expand All @@ -397,7 +397,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
Expand All @@ -406,26 +406,7 @@
"id": "4xCEJSZmREwH",
"outputId": "ca195d1e-b1bf-42fc-b9df-8c9863ba56b4"
},
"outputs": [
{
"ename": "AttestationError",
"evalue": "ignored",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mTypeError\u001b[0m Traceback (most recent call last)",
"\u001b[0;32m/usr/local/lib/python3.9/dist-packages/blindai/client.py\u001b[0m in \u001b[0;36m__init__\u001b[0;34m(self, addr, unattested_server_port, attested_server_port, model_management_port, hazmat_manifest_path, hazmat_http_on_unattested_port, simulation_mode, use_cloud_manifest)\u001b[0m\n\u001b[1;32m 604\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 605\u001b[0;31m validate_attestation(\n\u001b[0m\u001b[1;32m 606\u001b[0m \u001b[0mquote\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;32m/usr/local/lib/python3.9/dist-packages/blindai/_dcap_attestation.py\u001b[0m in \u001b[0;36mvalidate_attestation\u001b[0;34m(quote, collateral, enclave_held_data, manifest_path, use_cloud_manifest)\u001b[0m\n\u001b[1;32m 187\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mmanifest_path\u001b[0m \u001b[0;32mis\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0;32mNone\u001b[0m \u001b[0;32mand\u001b[0m \u001b[0muse_cloud_manifest\u001b[0m \u001b[0;32mis\u001b[0m \u001b[0;32mTrue\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 188\u001b[0;31m raise TypeError(\n\u001b[0m\u001b[1;32m 189\u001b[0m \u001b[0;34m\"Input inconsistency. You cannot set a manifest path and ask to use the cloud manifest in the same time\"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;31mTypeError\u001b[0m: Input inconsistency. You cannot set a manifest path and ask to use the cloud manifest in the same time",
"\nDuring handling of the above exception, another exception occurred:\n",
"\u001b[0;31mAttestationError\u001b[0m Traceback (most recent call last)",
"\u001b[0;32m<ipython-input-6-9ac48413e7b9>\u001b[0m in \u001b[0;36m<cell line: 3>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[0mget_ipython\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0msystem\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'touch fake_manifest.toml'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 3\u001b[0;31m connection = blindai.core.connect(\n\u001b[0m\u001b[1;32m 4\u001b[0m \u001b[0mDEFAULT_BLINDAI_ADDR\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[0mhazmat_http_on_unattested_port\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mTrue\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;32m/usr/local/lib/python3.9/dist-packages/blindai/client.py\u001b[0m in \u001b[0;36mconnect\u001b[0;34m(addr, unattested_server_port, attested_server_port, model_management_port, hazmat_manifest_path, hazmat_http_on_unattested_port, simulation_mode, use_cloud_manifest)\u001b[0m\n\u001b[1;32m 838\u001b[0m \"\"\"\n\u001b[1;32m 839\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 840\u001b[0;31m return BlindAiConnection(\n\u001b[0m\u001b[1;32m 841\u001b[0m \u001b[0maddr\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 842\u001b[0m \u001b[0munattested_server_port\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;32m/usr/local/lib/python3.9/dist-packages/blindai/client.py\u001b[0m in \u001b[0;36m__init__\u001b[0;34m(self, addr, unattested_server_port, attested_server_port, model_management_port, hazmat_manifest_path, hazmat_http_on_unattested_port, simulation_mode, use_cloud_manifest)\u001b[0m\n\u001b[1;32m 613\u001b[0m \u001b[0;32mraise\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 614\u001b[0m \u001b[0;32mexcept\u001b[0m \u001b[0mException\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0me\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 615\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0mAttestationError\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"Attestation verification failed\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 616\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 617\u001b[0m \u001b[0;31m# requests (http library) takes a path to a file containing the CA\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;31mAttestationError\u001b[0m: Attestation verification failed"
]
}
],
"outputs": [],
"source": [
"# !touch fake_manifest.toml\n",
"\n",
Expand Down
Loading