You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -219,7 +220,7 @@ This is very similar to the TarGz importer except that it looks for `.rpm` packa
219
220
220
221
1.`-rpm_repo_path` which should point to the path on the local file system that contains `.rpm` files
221
222
222
-
#### GCP
223
+
#### GCP (Google Cloud Platform)
223
224
224
225
This importer can extract files from GCP disk [images](https://cloud.google.com/compute/docs/images). This is done in few steps:
225
226
@@ -230,7 +231,7 @@ This importer can extract files from GCP disk [images](https://cloud.google.com/
230
231
1. Copy raw_disk.tar.gz from GCS to local hashR storage
231
232
1. Extract raw_disk.tar.gz and pass the disk image to Plaso
232
233
233
-
List of GCP projects containing public GCP images can be found [here](https://cloud.google.com/compute/docs/images/os-details#general-info). In order to use this importer you need to have a GCP project and follow these steps:
234
+
List of GCP projects containing public GCP images can be found [here](https://cloud.google.com/compute/docs/images/os-details#general-info). In order to use this importer you need to have a GCP project and follow these steps:
234
235
235
236
Step 1: Create HashR service account, if this was done while setting up Cloud Spanner please go to step 4.
236
237
@@ -324,6 +325,37 @@ To use this importer you need to specify the following flag(s):
324
325
1.`-hashrGCPProject` GCP project that will be used to store copy of disk images for processing and also run Cloud Build
325
326
1.`-hashrGCSBucket` GCS bucket that will be used to store output of Cloud Build (disk images in .tar.gz format)
326
327
328
+
#### GCR (Google Container Registry)
329
+
This importer extracts files from container images stored in GCR repositories. In order to set ip up follow these steps:
330
+
331
+
Step 1: Create HashR service account, skip to step 4 if this was done while setting up other GCP dependent components.
332
+
333
+
```shell
334
+
gcloud iam service-accounts create hashr-sa --description="HashR SA key." --display-name="hashr"
335
+
```
336
+
337
+
Step 2: Create service account key and store in your home directory. Make sure to set *<project_name>* to your project name:
338
+
339
+
```shell
340
+
gcloud iam service-accounts keys create ~/hashr-sa-private-key.json --iam-account=hashr-sa@<project_name>.iam.gserviceaccount.com
341
+
```
342
+
343
+
Step 3: Point GOOGLE_APPLICATION_CREDENTIALS env variable to your service account key:
Step 4: Grant hashR service account key required permissions to access given GCR repository.
350
+
351
+
```shell
352
+
gsutil iam ch serviceAccount:hashr-sa@<project_name>.iam.gserviceaccount.com:objectViewer gs://artifacts.<project_name_hosting_gcr_repo>.appspot.com
353
+
```
354
+
355
+
To use this importer you need to specify the following flag(s):
356
+
357
+
1.`-gcr_repos` which should contain comma separated list of GCR repositories from which you want to import the container images.
358
+
327
359
#### Windows
328
360
329
361
This importer extracts files from official Windows installation media in ISO-13346 format, e.g. the ones you can download from official Microsoft [website](https://www.microsoft.com/en-gb/software-download/windows10ISO).
0 commit comments