Skip to content

Commit 2e4283c

Browse files
author
Inbal Tako
committed
Update redme
1 parent 1d1d759 commit 2e4283c

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,4 +193,29 @@ from securenative.config.securenative_options import SecureNativeOptions
193193

194194
options = SecureNativeOptions(api_key="YOUR_API_KEY", max_events=10, log_level="ERROR", proxy_headers=['CF-Connecting-IP'])
195195
securenative = SecureNative.init_with_options(options)
196+
```
197+
198+
199+
## Remove PII Data From Headers
200+
201+
By default SecureNative SDK remove any known pii headers from the received request.
202+
We also support using custom pii headers and regex matching via configuration, for example:
203+
204+
### Option 1: Using config file
205+
```ini
206+
SECURENATIVE_API_KEY: "YOUR_API_KEY"
207+
SECURENATIVE_PII_HEADERS: ["apiKey"]
208+
```
209+
210+
Initialize sdk as shown above.
211+
212+
### Options 2: Using ConfigurationBuilder
213+
214+
```python
215+
from securenative.securenative import SecureNative
216+
from securenative.config.securenative_options import SecureNativeOptions
217+
218+
219+
options = SecureNativeOptions(api_key="YOUR_API_KEY", max_events=10, log_level="ERROR", pii_regex_pattern='((?i)(http_auth_)(\w+)?)')
220+
securenative = SecureNative.init_with_options(options)
196221
```

0 commit comments

Comments
 (0)