opensearch-project / opensearch-k8s-operator

OpenSearch Kubernetes Operator
Apache License 2.0
387 stars 202 forks source link

[FEATURE] Add maskedFields to OpensearchRole #765

Closed cgroschupp closed 6 months ago

cgroschupp commented 6 months ago

To support field masking it is necessary to add maskedFields to the indexPermissions within the OpensearchRole resource.

Example OpensearchRole:

apiVersion: opensearch.opster.io/v1
kind: OpensearchRole
metadata:
  name: mask
spec:
  opensearchCluster:
    name: test
  name: mask
  indexPermissions:
    - indexPatterns:
        - "*"
      allowedActions:
        - "read"
      maskedFields:
        - "message"
salyh commented 6 months ago

This would absolutely make sense. Thank you for your contribution.