From b5d6b3fa9ed05fd174af61ea2d584d723c607383 Mon Sep 17 00:00:00 2001
From: Rustam_Lotsmanenko <rustam_lotsmanenko@epam.com>
Date: Mon, 13 Mar 2023 10:47:56 +0200
Subject: [PATCH] update docs with new Indexer acc config

---
 provider/indexer-gc/docs/anthos/README.md | 13 ++++++++++++-
 provider/indexer-gc/docs/gc/README.md     | 16 ++++++++++++++--
 2 files changed, 26 insertions(+), 3 deletions(-)

diff --git a/provider/indexer-gc/docs/anthos/README.md b/provider/indexer-gc/docs/anthos/README.md
index 702760243..9800216a3 100644
--- a/provider/indexer-gc/docs/anthos/README.md
+++ b/provider/indexer-gc/docs/anthos/README.md
@@ -49,7 +49,7 @@ Note that properties can be set in Partition as `sensitive` in that case in prop
 This variable should be present in environment of service that need that variable.
 
 Example:
-```
+```json
     "elasticsearch.port": {
       "sensitive": false, <- value not sensitive 
       "value": "9243"  <- will be used as is.
@@ -60,6 +60,17 @@ Example:
     }
 ```
 
+## Indexer account configuration
+Google cloud OSDU platform doesn't use a single Tenant account which provides access to all groups for each service,
+instead, separate accounts should be used. But the Indexer should have access to all data groups, no matter when they were created.
+To achieve that add an Indexer account to the partition configuration:
+```json
+    "indexer.service.account": {
+        "sensitive": false,
+        "value": "indexer@service.local"
+    }
+```
+Related issue: https://community.opengroup.org/osdu/platform/system/storage/-/issues/153
 
 ## Elasticsearch configuration
 
diff --git a/provider/indexer-gc/docs/gc/README.md b/provider/indexer-gc/docs/gc/README.md
index 4fbcefb06..8edb09a71 100644
--- a/provider/indexer-gc/docs/gc/README.md
+++ b/provider/indexer-gc/docs/gc/README.md
@@ -63,7 +63,7 @@ It is possible, but not necessary to adjust consumer throughput via Partition se
 
 <https://community.opengroup.org/osdu/platform/system/lib/cloud/gcp/oqm/-/blob/master/src/main/java/org/opengroup/osdu/core/gcp/oqm/driver/pubsub/config/PsThroughputConfiguration.java>
 
-```
+```json
     "max.sub.parallel.streams": {
       "sensitive": false, 
       "value": 2 
@@ -85,7 +85,7 @@ This variable should be present in environment of service that need that variabl
 
 Example:
 
-```
+```json
     "elasticsearch.port": {
       "sensitive": false, <- value not sensitive 
       "value": "9243"  <- will be used as is.
@@ -98,6 +98,18 @@ Example:
 
 There is no hardcode in services, all behaviour defined by sensitivity of property.
 
+## Indexer account configuration
+Google cloud OSDU platform doesn't use a single Tenant account which provides access to all groups for each service,
+instead, separate accounts should be used. But the Indexer should have access to all data groups, no matter when they were created.
+To achieve that add an Indexer account to the partition configuration:
+```json
+    "indexer.service.account": {
+        "sensitive": false,
+        "value": "indexer@service.local"
+    }
+```
+Related issue: https://community.opengroup.org/osdu/platform/system/storage/-/issues/153
+
 ## Elasticsearch configuration
 
 **prefix:** `elasticsearch`
-- 
GitLab