Commit 23a483d0 authored by Rostislav Dublin (EPAM)'s avatar Rostislav Dublin (EPAM)
Browse files

GONRG-4517

parent 7638289d
Pipeline #99496 failed with stages
in 7 seconds
......@@ -5,7 +5,7 @@
* [Common properties for all environments](#Common-properties-for-all-environments)
* [For OSM Postgres](#For-OSM-Postgres)
* [For OBM MinIO](#For-OBM-MinIO)
* [Bucket configuration](#Bucket-configuration)
* [Object store configuration](#ObjectStoreConfig)
## Environment variables
......@@ -161,13 +161,26 @@ curl -L -X PATCH 'https:///api/partition/v1/partitions/opendes' -H 'data-partiti
</details>
#### Bucket configuration
### Object store configuration <a name="ObjectStoreConfig"></a>
#### Used Technology
MinIO (or any other supported by OBM)
#### Per-tenant buckets configuration
These buckets must be defined in tenants’ dedicated object store servers. OBM connection properties of these servers (url, etc.) are defined as specific properties in tenants’ PartitionInfo registration objects at the Partition service as described in accordant sections of this document.
<table>
<tr>
<td>Bucket Naming template
</td>
<td>Permissions required
</td>
</tr>
<tr>
<td>&lt;PartitionInfo.projectId>-&lt;PartitionInfo.name>-$FILE_DMS_BUCKET:<strong>file-dms-bucket</strong>
</td>
<td>ListObjects, CRUDObject
</td>
</tr>
</table>
At Minio should be created bucket:
**name:** `project-id + partition-id + GCP_FILE_DMS_BUCKET` ex `osdu-cicd-epam-opendes-file-dms-bucket`
It can be overridden by:
- through the Spring Boot property `file-dms-bucket`
- environment variable `FILE_DMS_BUCKET`
\ No newline at end of file
......@@ -4,7 +4,7 @@
* [Environment variables](#Environment-variables)
* [Common properties for all environments](#Common-properties-for-all-environments)
* [Datastore configuration](#Datastore-configuration)
* [GCS configuration](#GCS-configuration)
* [GCS configuration](#ObjectStoreConfig)
* [Google cloud service account configuration](#Google-cloud-service-account-configuration)
## Environment variables
......@@ -57,17 +57,27 @@ Example:
| `name=dataset--File.*` | | `https://community.gcp.gnrg-osdu.projects.epam.com/api/file/v2/files` | `true` | `true` |
| `name=dataset--File.*` | | | `false` | `true` |
## GCS configuration <a name="ObjectStoreConfig"></a>
## GCS configuration
### Per-tenant buckets configuration
These buckets must be defined in tenants’ “data” GCP projects that names are pointed in tenants’ PartitionInfo registration objects’ “projectId” property at the Partition service.
At Google cloud storage should be created bucket:
<table>
<tr>
<td>Bucket Naming template
</td>
<td>Permissions required
</td>
</tr>
<tr>
<td>&lt;PartitionInfo.projectId>-&lt;PartitionInfo.name>-$FILE_DMS_BUCKET:<strong>file-dms-bucket</strong>
</td>
<td>ListObjects, CRUDObject
</td>
</tr>
</table>
**name:** `project-id + partition-id + GCP_FILE_DMS_BUCKET` ex `osdu-cicd-epam-opendes-file-dms-bucket`
It can be overridden by:
- through the Spring Boot property `file-dms-bucket`
- environment variable `FILE_DMS_BUCKET`
## Google cloud service account configuration
TBD
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment