A secure middleware that connects graphxr to various backend databases with zero trust architecture.
1.6K
A secure middleware that connects GraphXRβ to various backend databases with zero trust architecture.
git clone https://github.com/Kineviz/graphxr-database-proxy.git
cd graphxr-database-proxy
uv venv
source .venv/bin/activate # or .venv/bin/activate on Windows
uv pip install -e ".[ui]"
uv pip install -r requirements.txt
cd frontend && npm install && npm run build && cd -
graphxr-proxy --ui
# Install from PyPI
pip install graphxr-database-proxy[ui]
# Or from source
git clone https://github.com/Kineviz/graphxr-database-proxy.git
cd graphxr-database-proxy
uv venv
source .venv/bin/activate # or .venv/bin/activate on Windows
uv pip install -e ".[ui]"
uv pip install -r requirements.txt
cd frontend && npm install && npm run build && cd -
pip install -e .[ui]
Option 1: Web UI (Recommended)
graphxr-proxy --ui
Open http://localhost:9080/adminβ for configuration
Option 2: Python Code
from graphxr_database_proxy import DatabaseProxy
proxy = DatabaseProxy()
service_account_json = {
"type": "service_account",
"project_id": "your-gcp-project-id",
"private_key": "-----BEGIN PRIVATE KEY-----\\n...\\n-----END PRIVATE KEY-----\\n",
"client_email": "[email protected]",
...
}
project_id = proxy.add_project(
project_name="project_name",
database_type="spanner",
project_id="gcp-project-id",
instance_id="spanner-instance-id",
database_id="spanner-database-id",
credentials=service_account_json,
graph_name="graph_name" # Optional
)
proxy.start(
host="0.0.0.0",
port=9080,
show_apis=True
)
docker run -d -p 9080:9080 \
--name graphxr-database-proxy \
-v ${HOME}/graphxr-database-proxy/config:/app/config \
kineviz/graphxr-database-proxy:latest
You can visit http://localhost:9080/adminβ for configuration after starting the container.
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License - see the LICENSEβ file for details.
Built with β€οΈ by Kinevizβ
Content type
Image
Digest
sha256:5115eb4d6β¦
Size
159.7 MB
Last updated
28 days ago
docker pull kineviz/graphxr-database-proxy