Before ingesting Milvus metadata into Dawiso, create a Milvus user with read-only access to the metadata, and make sure Dawiso can reach your Milvus.

Dawiso reads only metadata through the Milvus REST API. It never queries or searches your collections, never loads or releases them and doesn’t change anything, so the user needs no Query, Search or write privileges.

Supported versions

  • Milvus (self-hosted): 2.5.0 or later. Earlier Milvus versions aren’t supported.
  • Zilliz Cloud (managed Milvus): supported. See Zilliz Cloud.
  • Milvus Lite isn’t supported, because it has no network endpoint.

For a private connection, use DIR 2026.5.23 or later.

Authentication

Dawiso supports three ways to authenticate, depending on your Milvus:

Your MilvusWhat to enter in the Dawiso connection
Self-hosted, authentication disabled (common.security.authorizationEnabled: false, the default)Nothing. Every request is anonymous and sees every database and collection.
Self-hosted, authentication enabledThe username and password of the user you create below.
Zilliz CloudAn API key, or the username and password of a cluster user.

Required privileges

When authentication is enabled, grant the Dawiso user a role with the following privileges on every database you want to ingest:

PrivilegeLevelWhat Dawiso reads with it
GetStatisticsCollectionRow counts of collections and partitions
GetLoadStateCollectionLoad state of collections
ShowPartitionsCollectionPartitions
IndexDetailCollectionIndexes
DescribeCollectionDatabaseCollection schema: fields, functions, aliases, properties
ListAliasesDatabaseAliases
DescribeDatabaseDatabaseDatabase ID and properties
ShowCollectionsDatabaseThe list of collections (checked by older Milvus versions)

Grant the collection-level privileges on all collections (*), so that collections created later are ingested too.

If the user later loses its collection-level privileges on one database while it still sees collections in another, Milvus lists that database’s collections as empty. Dawiso then removes them from the catalog with only a warning in the ingestion log. On a private connection that runs on Dawiso Integration Runtime (DIR), the warnings of a successful run don’t reach the ingestion log in Dawiso, so the deletion happens without any visible message. See Create Milvus data source.

Without GetStatistics, GetLoadState or DescribeDatabase, the attributes they fill stay empty and the ingestion log shows a warning. Without DescribeCollection, ShowPartitions or IndexDetail, the ingestion stops with an error, and the metadata from the last complete ingestion stays as it was.

Warning

Don’t rely on the built-in privilege group DatabaseReadOnly. A role that has only DatabaseReadOnly, or only database-level privileges such as DescribeCollection, sees the database but none of its collections: Milvus answers the collection list with an empty list and no error. Milvus shows a collection to a role only when the role has a collection-level privilege on it, such as the four listed above.

Dawiso stops the ingestion with an error when it finds no collection at all, rather than reporting an empty catalog and deleting the objects ingested earlier.

  • Don’t use CollectionReadOnly. It makes collections visible, but it also contains Query and Search, which read your data.
  • Don’t grant ListDatabases, or the ClusterReadOnly group that contains it, when you limit Dawiso to some databases. It makes every database visible. If the data source doesn’t list its databases, Dawiso then ingests the other databases as empty. Without ListDatabases, the user sees exactly the databases named in its grants.
  • Milvus gives the built-in public role DescribeCollection, ListAliases and IndexDetail by default. Grant them to the Dawiso role anyway: an administrator can revoke them from public, and public doesn’t make collections visible.
  • A custom privilege group can’t mix database-level and collection-level privileges. Use two groups, or grant the privileges one by one as below.

Create a user and grant the privileges

Run one of the following as root or another administrator. Replace the URL, the passwords and the database name. To give access to several databases, run the grants once per database, or use * for all databases.

With the Python SDK (pymilvus):

from pymilvus import MilvusClient

client = MilvusClient(uri="http://milvus.example.com:19530", token="root:<root-password>")

client.create_user(user_name="dawiso_scanner", password="<password>")
client.create_role(role_name="dawiso_metadata_ro")

DB = "sales"  # one database, or "*" for every database
for privilege in [
    # collection level: makes the collections visible, reads statistics, partitions and indexes
    "GetStatistics", "GetLoadState", "ShowPartitions", "IndexDetail",
    # database level: describes the database and its collections
    "DescribeCollection", "ListAliases", "DescribeDatabase", "ShowCollections",
]:
    client.grant_privilege_v2(role_name="dawiso_metadata_ro", privilege=privilege,
                              collection_name="*", db_name=DB)

client.grant_role(user_name="dawiso_scanner", role_name="dawiso_metadata_ro")

With the REST API (curl):

MILVUS=http://milvus.example.com:19530
ADMIN='root:<root-password>'
DB=sales   # one database, or '*' for every database

call() {
  curl -s -X POST "$MILVUS/v2/vectordb/$1" -H "Authorization: Bearer $ADMIN" \
       -H "Content-Type: application/json" -d "$2"; echo
}

call users/create '{"userName": "dawiso_scanner", "password": "<password>"}'
call roles/create '{"roleName": "dawiso_metadata_ro"}'
for p in GetStatistics GetLoadState ShowPartitions IndexDetail \
         DescribeCollection ListAliases DescribeDatabase ShowCollections; do
  call roles/grant_privilege_v2 "{\"roleName\": \"dawiso_metadata_ro\", \"privilege\": \"$p\", \"collectionName\": \"*\", \"dbName\": \"$DB\"}"
done
call users/grant_role '{"userName": "dawiso_scanner", "roleName": "dawiso_metadata_ro"}'

Every call should answer {"code":0,"data":{}}.

Verify the setup

Connect as the new user and list the collections of a database you granted:

curl -s -X POST "http://milvus.example.com:19530/v2/vectordb/collections/list" \
     -H "Authorization: Bearer dawiso_scanner:<password>" \
     -H "Content-Type: application/json" -d '{"dbName": "sales"}'

The answer must list your collections, for example {"code":0,"data":["customers","orders"]}. An empty list ("data":[]) for a database that has collections means that the collection-level privileges are missing.

Zilliz Cloud

Use the cluster endpoint from the Zilliz Cloud console as the URL, for example https://in03-xxxxxxxx.serverless.aws-eu-central-1.cloud.zilliz.com. To authenticate, use one of these:

  • An API key. In the Zilliz Cloud console, create a customized API key with the project role Data Viewer for the project that holds the cluster.
  • A cluster user with the built-in Read-Only cluster role. Cluster users are available only on Dedicated clusters.

On Serverless clusters, an API key with the Data Viewer role can still insert data into collections, so it isn’t a read-only identity. Dawiso only reads metadata and never writes, but if you need an identity that can’t write, use a Dedicated cluster with a Read-Only cluster user.

On Serverless clusters, no key can read the database details, so the database’s properties stay empty in Dawiso and the ingestion log shows a warning about databases/describe. Everything else is ingested.

Network access

  • Dawiso connects only to the Milvus proxy port, 19530 by default, over HTTP or HTTPS. Milvus serves its REST API and gRPC on the same port. The management port 9091 isn’t used.
  • If Milvus runs behind a Kubernetes ingress or a reverse proxy, it must forward POST requests to /v2/vectordb/* to the Milvus proxy.
Tip

To ingest metadata from your on-premises sources, whitelist Dawiso’s IP address so Dawiso can connect to your internal sources (pull method). Whitelist the same IP for Dawiso Integration Runtime (DIR) to send data from your on-premises infrastructure to Dawiso Cloud (push method).

Contact your Account Manager to get the Dawiso IP address.