Skip to content

Commit db0fbf5

Browse files
added curl command for consistency
1 parent f1d9119 commit db0fbf5

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

content/en/ninja-workshops/10-advanced-otel/6-sensitive-data/6-1-configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ weight: 1
66

77
In this step, we'll modify `agent.yaml` to include the `attributes` and `redaction` processors. These processors will help ensure that sensitive data within span attributes is properly handled before being logged or exported.
88

9-
Previously, you may have noticed that some span attributes displayed in the console contained personal data. We'll now configure the necessary processors to filter out and redact this information effectively.
9+
Previously, you may have noticed that some span attributes displayed in the console contained personal and sensitive data. We'll now configure the necessary processors to filter out and redact this information effectively.
1010

1111
```text
1212
<snip>
@@ -40,7 +40,7 @@ We'll **update** the `user.phone_number`, **hash** the `user.email`, and **delet
4040
action: delete
4141
```
4242
43-
**Add a `redaction` Processor**: This processor will detect and redact sensitive values based on predefined patterns. We'll block credit card numbers using regular expressions.
43+
**Add a `redaction` Processor**: This processor will detect and redact sensitive data values based on predefined patterns. We'll block credit card numbers using regular expressions.
4444

4545
```yaml
4646
redaction/redact: # Processor Type/Name

content/en/ninja-workshops/10-advanced-otel/6-sensitive-data/6-2-test-delete-tag.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ In this exercise, we will **delete** the `user.account_password`, **update** the
2424

2525
1. In the **Test** terminal window change into the `6-sensitive-data` directory.
2626
2. Send the span containing **sensitive data** by running the `curl` command to send `trace.json`.
27+
```sh
28+
curl -X POST -i http://localhost:4318/v1/traces -H "Content-Type: application/json" -d "@trace.json"
29+
```
2730

2831
**Check the debug output**: For both the **Agent** and **Gateway** debug output, confirm that `user.account_password` has been removed, and both `user.phone_number` & `user.email` have been updated.
2932

content/en/ninja-workshops/10-advanced-otel/6-sensitive-data/6-3-test-redaction.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ In this exercise, we will **redact** the `user.visa` & `user.mastercard` **value
4545
```
4646

4747
**Send a span**: Run the `curl` command and in the **Test** terminal window to send `trace.json`.
48+
```sh
49+
curl -X POST -i http://localhost:4318/v1/traces -H "Content-Type: application/json" -d "@trace.json"
50+
```
4851

4952
**Check the debug output**: For both the **Agent** and **Gateway** confirm the values for `user.visa` & `user.mastercard` have been updated. Notice `user.amex` attribute value was NOT redacted because a matching regex pattern was not added to `blocked_values`
5053

0 commit comments

Comments
 (0)