Skip to content

Commit b9c2c48

Browse files
committed
docs: refactor diag to make operations explicit
1 parent 3199576 commit b9c2c48

File tree

1 file changed

+22
-17
lines changed

1 file changed

+22
-17
lines changed

docs/utilities/data_masking.md

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,29 @@ The data masking utility provides a simple solution to mask or encrypt incoming
1010
```mermaid
1111
stateDiagram-v2
1212
direction LR
13-
Source: Customer information <br/><br/> Sensitive data <br/><br/> PII <br/><br/>
14-
LambdaInit: Lambda invocation
15-
Processor: Data Masker
16-
Handler: Your function
17-
YourLogic: Your logic to mask or encrypt data
18-
LambdaResponse: Logs
19-
20-
Source --> LambdaInit
21-
22-
LambdaInit --> Processor
23-
Processor --> Handler
24-
25-
state Processor {
26-
[*] --> Handler
27-
Handler --> YourLogic
13+
LambdaFn: Your Lambda function
14+
DataMasking: DataMasking
15+
Operation: Masking operation
16+
Input: Sensitive value
17+
Mask: <strong>Mask</strong>
18+
Encrypt: <strong>Encrypt</strong>
19+
Decrypt: <strong>Decrypt</strong>
20+
Provider: Encryption provider
21+
Result: Data transformed <i>(masked, encrypted, or decrypted)</i>
22+
23+
LambdaFn --> DataMasking
24+
DataMasking --> Operation
25+
26+
state Operation {
27+
[*] --> Input
28+
Input --> Mask: Irreversible
29+
Input --> Encrypt
30+
Input --> Decrypt
31+
Encrypt --> Provider
32+
Decrypt --> Provider
2833
}
2934
30-
Handler --> Processor: Collect results
31-
Processor --> LambdaResponse: Masked/encrypted data
35+
Operation --> Result
3236
```
3337

3438
## Key features
@@ -64,6 +68,7 @@ If using your own encryption provider, make sure to have the necessary resources
6468
### Working with nested data
6569

6670
#### JSON
71+
6772
When using the data masking utility with dictionaries or JSON strings, you can provide a list of keys to obfuscate the corresponding values. If no fields are provided, the entire data object will be masked or encrypted. You can select values of nested keys by using dot notation.
6873

6974
???+ note

0 commit comments

Comments
 (0)