Fix field masking examples (#6193)
Updating field masking examples that were out of date and incorrect. Signed-off-by: Terry Quigley <77437788+terryquigleysas@users.noreply.github.com>
This commit is contained in:
parent
a258d7951a
commit
d41ccb8cd4
|
@ -58,14 +58,14 @@ You configure field masking using OpenSearch Dashboards, `roles.yml`, or the RES
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
someonerole:
|
someonerole:
|
||||||
cluster: []
|
index_permissions:
|
||||||
indices:
|
- index_patterns:
|
||||||
movies:
|
- 'movies'
|
||||||
_masked_fields_:
|
allowed_actions:
|
||||||
- "title"
|
- read
|
||||||
- "genres"
|
masked_fields:
|
||||||
'*':
|
- "title"
|
||||||
- "READ"
|
- "genres"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -82,14 +82,14 @@ To specify a different algorithm, add it after the masked field:
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
someonerole:
|
someonerole:
|
||||||
cluster: []
|
index_permissions:
|
||||||
indices:
|
- index_patterns:
|
||||||
movies:
|
- 'movies'
|
||||||
_masked_fields_:
|
allowed_actions:
|
||||||
- "title::SHA-512"
|
- read
|
||||||
- "genres"
|
masked_fields:
|
||||||
'*':
|
- "title::SHA-512"
|
||||||
- "READ"
|
- "genres"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -103,19 +103,19 @@ hr_employee:
|
||||||
- index_patterns:
|
- index_patterns:
|
||||||
- 'humanresources'
|
- 'humanresources'
|
||||||
allowed_actions:
|
allowed_actions:
|
||||||
- ...
|
- read
|
||||||
masked_fields:
|
masked_fields:
|
||||||
- 'lastname::/.*/::*'
|
- 'lastname::/.*/::*'
|
||||||
- '*ip_source::/[0-9]{1,3}$/::XXX::/^[0-9]{1,3}/::***'
|
- '*ip_source::/[0-9]{1,3}$/::XXX::/^[0-9]{1,3}/::***'
|
||||||
someonerole:
|
someonerole:
|
||||||
cluster: []
|
index_permissions:
|
||||||
indices:
|
- index_patterns:
|
||||||
movies:
|
- 'movies'
|
||||||
_masked_fields_:
|
allowed_actions:
|
||||||
- "title::/./::*"
|
- read
|
||||||
- "genres::/^[a-zA-Z]{1,3}/::XXX::/[a-zA-Z]{1,3}$/::YYY"
|
masked_fields:
|
||||||
'*':
|
- "title::/./::*"
|
||||||
- "READ"
|
- "genres::/^[a-zA-Z]{1,3}/::XXX::/[a-zA-Z]{1,3}$/::YYY"
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue