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
Fixes #issue
> It's a good idea to open an issue first for discussion.
- [x] I have followed [Sample Format Guide](https://github.com/GoogleCloudPlatform/java-docs-samples/blob/master/SAMPLE_FORMAT.md)
- [x] `pom.xml` parent set to latest `shared-configuration`
- [x] Appropriate changes to README are included in PR
- [ ] API's need to be enabled to test (tell us)
- [ ] Environment Variables need to be set (ask us to set them)
- [x] **Tests** pass: `mvn clean verify` **required**
- [x] **Lint** passes: `mvn -P lint checkstyle:check` **required**
- [ ] **Static Analysis**: `mvn -P lint clean compile pmd:cpd-check spotbugs:check` **advisory only**
- [x] Please **merge** this PR for me once it is approved.
Copy file name to clipboardExpand all lines: dlp/README.md
+12-48
Original file line number
Diff line number
Diff line change
@@ -10,62 +10,27 @@ a powerful detection engine for personally identifiable information and other pr
10
10
## Setup
11
11
- A Google Cloud project with billing enabled
12
12
-[Enable](https://console.cloud.google.com/launcher/details/google/dlp.googleapis.com) the DLP API.
13
-
-(Local testing) [Create a service account](https://cloud.google.com/docs/authentication/getting-started)
13
+
-[Create a service account](https://cloud.google.com/docs/authentication/getting-started)
14
14
and set the `GOOGLE_APPLICATION_CREDENTIALS` environment variable pointing to the downloaded credentials file.
15
-
- (Local testing) Set the `DLP_DEID_WRAPPED_KEY` environment variable to an AES-256 key encrypted ('wrapped') [with a Cloud Key Management Service (KMS) key](https://cloud.google.com/kms/docs/encrypt-decrypt).
16
-
- (Local testing) Set the `DLP_DEID_KEY_NAME` environment variable to the path-name of the Cloud KMS key you wrapped `DLP_DEID_WRAPPED_KEY` with.
17
15
18
-
## Build
19
-
This project uses the [Assembly Plugin](https://maven.apache.org/plugins/maven-assembly-plugin/usage.html) to build an uber jar.
20
-
Run:
21
-
```
22
-
mvn clean package -DskipTests
23
-
```
24
-
25
-
## Retrieve InfoTypes
26
-
An [InfoType identifier](https://cloud.google.com/dlp/docs/infotypes-categories) represents an element of sensitive data.
27
-
28
-
[InfoTypes](https://cloud.google.com/dlp/docs/infotypes-reference#global) are updated periodically. Use the API to retrieve the most current InfoTypes.
- Ensure that `GOOGLE_APPLICATION_CREDENTIALS` points to authorized service account credentials file.
32
+
- Set the `DLP_DEID_WRAPPED_KEY` environment variable to an AES-256 key encrypted ('wrapped') [with a Cloud Key Management Service (KMS) key](https://cloud.google.com/kms/docs/encrypt-decrypt).
33
+
- Set the `DLP_DEID_KEY_NAME` environment variable to the path-name of the Cloud KMS key you wrapped `DLP_DEID_WRAPPED_KEY` with.
69
34
-[Create a Google Cloud Storage bucket](https://console.cloud.google.com/storage) and upload [test.txt](src/test/resources/test.txt).
70
35
- Set the `GCS_PATH` environment variable to point to the path for the bucket.
71
36
- Copy and paste the data below into a CSV file and [create a BigQuery table](https://cloud.google.com/bigquery/docs/loading-data-local) from the file:
@@ -77,7 +42,6 @@ Optional flags are explained in [this resource](https://cloud.google.com/dlp/doc
0 commit comments