> For the complete documentation index, see [llms.txt](https://docs.openg2p.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.openg2p.org/platform/platform-services/master-data-service.md).

# Master Data Service

The **Master Data Service** is the OpenG2P source of master / reference data shared across the platform. It holds and serves the common lookup data that other services depend on — primarily:

* **Geographic data** — the location / administrative-area hierarchy used to qualify addresses and target programs.
* **Partner data** — the registry of partner organisations (mnemonics, key-manager reference IDs, active status) used for inter-service trust and routing.

It exposes simple read/lookup APIs (Geo and Partner) consumed by **PBMS, Registry, Bridge and SPAR**, so master data is defined once and reused consistently everywhere.

## Repository organisation

Everything for this service lives in a single consolidated repository:

* **Repository:** [`master-data-service`](https://github.com/OpenG2P/master-data-service)

This one repo contains all of the service's parts together — the application **code** (the FastAPI master-data API), the **Docker** image build, and the **Helm** chart used to deploy it. It replaces what were previously three separate repositories (one each for the code, the Docker build, and the Helm chart).

## Versions

<table><thead><tr><th width="160">Helm version</th><th width="280">Master Data Docker</th><th width="130">Last modified</th><th>Comments</th></tr></thead><tbody><tr><td><a href="https://github.com/OpenG2P/master-data-service/tree/develop/deployments/charts/openg2p-master-data">0.0.0-develop.8</a></td><td><a href="https://hub.docker.com/r/openg2p/master-data-api/tags">master-data-api:develop</a></td><td>10-Jul-2026</td><td>Changes since <a href="https://github.com/OpenG2P/master-data-service/commit/2ac3823aeb99baa0c6d91360058109992d8fc8ff"><code>2ac3823</code></a>: registry-DB integration + IAM auth for geo data-policy resolution; new geo-level APIs; <code>0.0.0-develop.N</code> chart versioning.</td></tr><tr><td><a href="https://github.com/OpenG2P/master-data-service/tree/develop/deployments/charts/openg2p-master-data">0.0.0-develop</a></td><td><a href="https://hub.docker.com/r/openg2p/master-data-api/tags">master-data-api:develop</a></td><td>15-Jun-2026</td><td><ol><li><strong>Single consolidated repository</strong> <code>master-data-service</code> — master-data source, Docker image, and the Helm chart now live in one repo (previously three separate repositories).</li><li>Single Helm chart <code>openg2p-master-data</code> under <code>deployments/charts</code>.</li><li>Docker image is built from local in-repo source and tagged with the repository ref — on <code>develop</code> the image is tagged <code>develop</code>.</li></ol></td></tr><tr><td><a href="https://github.com/OpenG2P/openg2p-gen2-master-data-deployment/tree/1.0.0">1.0.0</a></td><td><a href="https://hub.docker.com/layers/openg2p/openg2p-gen2-master-data-api/1.0.0/images/sha256-4739fd732e051c0102bea6245a01e3cfc479f00e71729a5e1640e27d475406a9">openg2p-gen2-master-data-api:v1.0.0</a></td><td>17-Apr-2026</td><td><ol><li>Initial version of the Master Data API — Partners and Geo lookup data.</li></ol><p><mark style="color:red;">THIS VERSION HAS BUGS</mark>. Use <code>develop</code>.</p></td></tr></tbody></table>

{% hint style="info" %}
On the `develop` branch the Docker image is tagged `develop` (the image tag always matches the `master-data-service` repository ref — a branch name or git tag). The Helm chart's base version is `0.0.0-develop`, but each publish appends the CI run number, so the artifact published to the Helm repo is `0.0.0-develop.<run-number>` (this keeps Rancher / the GH-Pages CDN from serving a stale cached chart). Release branches publish `N.N.0-develop.<run-number>`, and frozen `N.N.N` releases carry that semantic version with no suffix. The **Last modified** date of the `0.0.0-develop` row should be updated whenever that version changes.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.openg2p.org/platform/platform-services/master-data-service.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
