From 55cea42d30841ff590a5921b3c244eaa0b9b134a Mon Sep 17 00:00:00 2001 From: lyie28 Date: Thu, 20 Jul 2023 16:18:55 +0200 Subject: [PATCH] fix broken link --- .../docs/tutorials/api/whisper_tutorial.ipynb | 25 +++---------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/docs/docs/tutorials/api/whisper_tutorial.ipynb b/docs/docs/tutorials/api/whisper_tutorial.ipynb index 3ccbdefc..b4ca6b1b 100644 --- a/docs/docs/tutorials/api/whisper_tutorial.ipynb +++ b/docs/docs/tutorials/api/whisper_tutorial.ipynb @@ -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", @@ -397,7 +397,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/", @@ -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\u001b[0m in \u001b[0;36m\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",