|
12 | 12 | "## Prerequisites\n",
|
13 | 13 | "\n",
|
14 | 14 | "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", |
16 | 16 | "* [Python 3](https://www.python.org/)\n",
|
17 | 17 | "* [Jupyter Notebook](https://jupyter.org/install)\n",
|
18 | 18 | "* [Docker](https://docs.docker.com/get-started/get-docker/)\n",
|
|
36 | 36 | "This file requires you to set up a few environment variables:\n",
|
37 | 37 | "\n",
|
38 | 38 | "* `CS_WORKSPACE_ID`\n",
|
| 39 | + "* `CS_DATASET_ID`\n", |
39 | 40 | "* `CS_CLIENT_ACCESS_KEY`\n",
|
40 | 41 | "* `CS_ENCRYPTION__CLIENT_ID`\n",
|
41 | 42 | "* `CS_ENCRYPTION__CLIENT_KEY`\n",
|
|
152 | 153 | "! stash clients create --dataset-id {os.environ['CS_DATASET_ID']} cipherstash_getting_started_client"
|
153 | 154 | ]
|
154 | 155 | },
|
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 |
| - }, |
205 | 156 | {
|
206 | 157 | "cell_type": "markdown",
|
207 | 158 | "id": "fe337548-771c-4d62-a912-2a80e4f9a2d8",
|
|
323 | 274 | "outputs": [],
|
324 | 275 | "source": [
|
325 | 276 | "%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" |
327 | 278 | ]
|
328 | 279 | },
|
329 | 280 | {
|
|
0 commit comments