Skip to content

Commit b54514e

Browse files
committed
Remove uploading empty dataset config
1 parent 8fd55e7 commit b54514e

File tree

1 file changed

+3
-52
lines changed

1 file changed

+3
-52
lines changed

languages/python/jupyter_notebook/CipherStash-Getting-Started.ipynb

Lines changed: 3 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"## Prerequisites\n",
1313
"\n",
1414
"You must have:\n",
15-
"* [PostgreSQL](https://www.postgresql.org/)\n",
15+
"* [PostgreSQL **client**](https://www.postgresql.org/) (The server will be run using Docker in this notebook)\n",
1616
"* [Python 3](https://www.python.org/)\n",
1717
"* [Jupyter Notebook](https://jupyter.org/install)\n",
1818
"* [Docker](https://docs.docker.com/get-started/get-docker/)\n",
@@ -36,6 +36,7 @@
3636
"This file requires you to set up a few environment variables:\n",
3737
"\n",
3838
"* `CS_WORKSPACE_ID`\n",
39+
"* `CS_DATASET_ID`\n",
3940
"* `CS_CLIENT_ACCESS_KEY`\n",
4041
"* `CS_ENCRYPTION__CLIENT_ID`\n",
4142
"* `CS_ENCRYPTION__CLIENT_KEY`\n",
@@ -152,56 +153,6 @@
152153
"! stash clients create --dataset-id {os.environ['CS_DATASET_ID']} cipherstash_getting_started_client"
153154
]
154155
},
155-
{
156-
"cell_type": "markdown",
157-
"id": "0ff6337a-7619-47ea-b8bc-437a6c1d0254",
158-
"metadata": {},
159-
"source": [
160-
"## Upload empty dataset config\n",
161-
"\n",
162-
"> **NOTE**: This step will be unnecessary in the near future\n",
163-
"\n",
164-
"Dataset configuration describes which columns of which tables are to be encrypted, indexed and how.\n",
165-
"Itis stored in the same database as your encrypted data now, but currently an empty dataset configuration must be uploaded to ZeroKMS due to historic reasons.\n",
166-
"\n",
167-
"There is an empty dataset configuration file provided as `dataset.yml`.\n",
168-
"Replace the `<client_id>` and `<client_key>` values in the following `%env` to set the environment variables.\n",
169-
"After that, run the command below them.\n",
170-
"\n",
171-
"You might see some error messages like \"yes: standard output: Broken pipe\" but if the command output ends with \"Uploaded dataset_config to Cipherstash\" or something similar, it means the upload was successful."
172-
]
173-
},
174-
{
175-
"cell_type": "code",
176-
"execution_count": null,
177-
"id": "c9f9a859-9f64-4cd3-a4b5-f55fc8654659",
178-
"metadata": {},
179-
"outputs": [],
180-
"source": [
181-
"%env CS_CLIENT_ID=<client_id>"
182-
]
183-
},
184-
{
185-
"cell_type": "code",
186-
"execution_count": null,
187-
"id": "3f8a545d-4e45-4347-bef1-da0e11923b3c",
188-
"metadata": {},
189-
"outputs": [],
190-
"source": [
191-
"%env CS_CLIENT_KEY=<client_key>"
192-
]
193-
},
194-
{
195-
"cell_type": "code",
196-
"execution_count": null,
197-
"id": "c29f4da8-34e1-4573-b393-254ec6b283da",
198-
"metadata": {},
199-
"outputs": [],
200-
"source": [
201-
"import os\n",
202-
"! yes | head -n 1 | stash datasets config upload --file dataset.yml --client-id {os.environ['CS_CLIENT_ID']} --client-key {os.environ['CS_CLIENT_KEY']}"
203-
]
204-
},
205156
{
206157
"cell_type": "markdown",
207158
"id": "fe337548-771c-4d62-a912-2a80e4f9a2d8",
@@ -323,7 +274,7 @@
323274
"outputs": [],
324275
"source": [
325276
"%env PGPASSWORD=postgres\n",
326-
"! curl https://github.com/cipherstash/encrypt-query-language/releases/latest/download/cipherstash-eql.sql | psql -h localhost -p 5432 -U postgres cipherstash_getting_started"
277+
"! curl -L https://github.com/cipherstash/encrypt-query-language/releases/latest/download/cipherstash-encrypt.sql | psql -h localhost -p 5432 -U postgres cipherstash_getting_started"
327278
]
328279
},
329280
{

0 commit comments

Comments
 (0)