How Does the Milvus Vector Database Ensure Data Security?

Learn about user authentication and encryption in transit in Milvus.

Cover image

What is database security and why is it important?

How does the Milvus vector database ensure data security?

User authentication

The authentication workflow in the Milvus vector database

authetication_workflow
credential_update_workflow

How to manage user authentication in the Milvus vector database

from pymilvus import connections
connections.connect(
alias='default',
host='localhost',
port='19530',
user='root_user',
password='Milvus',
)
from pymilvus import utility
utility.create_credential('user', 'password', using='default')
from pymilvus import connections
connections.connect(
alias='default',
host='localhost',
port='19530',
user='user',
password='password',
)
from pymilvus import utility
utility.reset_password('user', 'new_password', using='default')

TLS connection

How to enable TLS in the Milvus vector database

mkdir cert && cd cert
touch openssl.cnf gen.sh
chmod +x gen.sh
./gen.sh
tls:
serverPemPath: configs/cert/server.pem
serverKeyPath: configs/cert/server.key
caPemPath: configs/cert/ca.pem

common:
security:
tlsEnabled: true
from pymilvus import connections

_HOST = '127.0.0.1'
_PORT = '19530'

print(f"\nCreate connection...")
connections.connect(host=_HOST, port=_PORT, secure=True, client_pem_path="cert/client.pem",
client_key_path="cert/client.key",
ca_pem_path="cert/ca.pem", server_name="localhost")
print(f"\nList connections:")
print(connections.list_connections())

What’s next

--

--

Scalable similarity search on unstructured data (such as image, video, and natural language) powered by https://milvus.io

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Milvus

Open-source Vector Database Powering AI Applications. #SimilaritySearch #Embeddings #MachineLearning