Skip to content

Commit 7e2ae0d

Browse files
committed
Add details when access key creation fails in Jupyter
1 parent b7b0ccd commit 7e2ae0d

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

python/jupyter_notebook/CipherStash-Getting-Started.ipynb

+19-7
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,17 @@
4545
{
4646
"cell_type": "markdown",
4747
"id": "0d2fd39b-86a2-4e34-a214-7c9bf13f9579",
48-
"metadata": {},
48+
"metadata": {
49+
"jp-MarkdownHeadingCollapsed": true
50+
},
4951
"source": [
5052
"### Log into the workspace\n",
5153
"\n",
52-
"Check that you have `stash` command available in your PATH, and run the command below in your shell (not here in this notebook) and follow the instructions.\n",
54+
"Make sure that you have `stash` command available in your PATH, and run the command below in your terminal (not here in this notebook) and follow the instructions.\n",
5355
"You will be either automatically be logged into your workspace, or be prompted to log into one of them.\n",
5456
"Note the **Workspace ID** shown here.\n",
5557
"\n",
56-
"> stash login"
58+
"> `stash login`"
5759
]
5860
},
5961
{
@@ -66,8 +68,14 @@
6668
"> **NOTE**: If you already have an access key and prefer to use that rather than create a new one, you can use it instead. However, it is recommended that you create one here to use with this notebook.\n",
6769
"\n",
6870
"Now you need to create an access key for the workspace.\n",
69-
"Run the following command and securely store the values for **CS_CLIENT_ACCESS_KEY** as you will not be able to recover it if you lose it.\n",
70-
"The `CS_WORKSPACE_ID` should be the same value as the Workspace ID shown at the step above."
71+
"Run the following command and **securely store** the value for **CS_CLIENT_ACCESS_KEY** as you will not be able to recover it if you lose it.\n",
72+
"The `CS_WORKSPACE_ID` should be the same value as the Workspace ID shown at the step above.\n",
73+
"\n",
74+
"> **NOTE**: If you receive an error like **\"Unable to create access key: Request failed: Duplicate key error: ...\"**, unless you have used this key anywhere else, you can revoke the key from your terminal like:\n",
75+
"> \n",
76+
"> `stash access-keys revoke cipherstash_getting_started_access_key`\n",
77+
"> \n",
78+
"> and run the 'access-keys create' command again"
7179
]
7280
},
7381
{
@@ -497,7 +505,9 @@
497505
"cell_type": "code",
498506
"execution_count": null,
499507
"id": "698c6970-62f0-4cfb-b779-7a5dbbe11d3a",
500-
"metadata": {},
508+
"metadata": {
509+
"scrolled": true
510+
},
501511
"outputs": [],
502512
"source": [
503513
"from pprint import pprint\n",
@@ -1062,7 +1072,9 @@
10621072
"cell_type": "code",
10631073
"execution_count": null,
10641074
"id": "37e59466-3959-4c2e-ba95-219949ea9078",
1065-
"metadata": {},
1075+
"metadata": {
1076+
"scrolled": true
1077+
},
10661078
"outputs": [],
10671079
"source": [
10681080
"! printf '\\\\x \\n select * from examples where id = {record_id};' | PGPASSWORD=postgres psql -h localhost -p 5432 -U postgres cipherstash_getting_started"

0 commit comments

Comments
 (0)