Graphistry supports bridged connectors, which eases tasks like crossing from a cloud server to on-prem databases. It is designed to work with enterprise firewall policies: it runs as an out-going connection over HTTP/HTTPS. Instead of Graphistry directly making requests against your API servers, Graphistry sends the requests to the data bridge server, which then proxies the query and sends the results back. Graphistry can run a mixture of direct and bridged connectors.
- Standard Graphistry GPU application server (ex: cloud), with admin access
- Data bridge docker container. You can find
bridge.tar.gzin your distribution's release bundle and, for managed Graphistry users, by logging into the instance and scp'ing/home/ubuntu/graphistry/bridge.tar.gz. - Server to use as a bridge (typically on-prem), with admin access
- CPU-only OK
- Linux:
dockeranddocker-compose
- Firewall permissions between DB <> bridge and bridge <> Graphistry
Starting with 2.23.0, you can use old bridge server versions with new Graphistry distributions. So updating your Graphistry application server, unless otherwise stated in the release note history, should keep working with your existing bridge server. The bridge server will automatically reconnect to the GRAPHISTRY_HOST its connector.env points to.
Graphistry GPU application server
- Bridge-mode connectors: Built into standard Graphistry servers
- Individual database connectors can be configured to use a bridged connector instead of a direct API connector
Graphistry data bridge server
- Separate install
- Proxies establish persistent outgoing http/https connections with your Graphistry server. This enables the server to quickly push queries to your proxy.
- For each connector, set unguessable UUID strings for the server and client - this enables either side to trust and revoke access. These go in the bridge's
connector.envand the main application server's.env - Revocation can occur by server or client due to use of 2 keys
- Can be any string
- Ex: Unguessable strings via
docker-compose exec pivot /bin/bash -c "../../../node_modules/uuid/bin/uuid v4"=><my_key_1>
- Configure: In
.env, setup the Splunk connector as usual and then setSPLUNK_USE_PROXYand the two keys to proxy through a data bridge server:
### Splunk connector config
SPLUNK_HOST=splunk.example.com
SPLUNK_WEB_PORT=3000
SPLUNK_USER=my_user
SPLUNK_KEY=my_pwd
### Splunk bridge settings
SPLUNK_USE_PROXY=true
SPLUNK_SERVER_KEY=my_key_1
SPLUNK_PROXY_KEY=my_key_2
- Launch: Restart Graphistry via
docker-compose stop pivot && docker-compose up -d pivot.
The connector will start looking for the data bridge.
- Test: In the connector settings panel of
/pivot/home, click thecheck statusbutton for the connector. It should report success and turn green if it successfully exchanges keys with your bridge and runs a proxied connector command
Edit connector.env:
#REQUIRED: Fill in with your server
GRAPHISTRY_HOST=https://graphistry.mysite.com
#LIKELY: Fill in for connectors this proxy provides
SPLUNK_USE_PROXY=true
SPLUNK_PROXY_KEY=my_key_2
SPLUNK_SERVER_KEY=my_key_1
If your Graphistry instance uses a non-standard prefix, set GRAPHISTRY_MOUNT_POINT=/my_subdir
- Install
tar -xvvf bridge.tar.gz
cd bridge
docker load -i bridge.tar
- Configure
Edit .env. See above example.
- Launch
docker-compose up -d
The data bridge will autoconnect to your Graphistry application server.
- Test
See test section for the Graphistry GPU application server.
The bridge and main server, upon interruption, will try regain the previous connection. This increases resiliency for typical interruptions: you do not need to do anything.
Re-pairing is automatic, but takes a bit more work:
- Stop the bridge: It needs to create a new connection, not resume a session
- Restart the server: This resets and frees up the connector slot for the next client
- Restart the bridge
The bridge is a standard minimal Docker container (alpine):
- Login as root (user 0):
docker exec -it -u 0 <container_id> - Install packages as root:
apt add curl - Watch logs via
docker-compose logs -f -t --tail=1
Modify connector.env and restart the bridge:
DEBUG=*
GRAPHISTRY_LOG_LEVEL=TRACE
Watch your bridge's logs and your app server's logs: docker-compose logs -f -t --tail=1
- Check your bridge server and Sraphistry server logs (see above)
- Try using
curlboth inside and outside of the bridge container (you may need to install viaapk/apt)
docker run -it --rm bridge_bridge_1 /bin/sh
root $ apk add curl
root $ curl -u admin:changeme -k https://<my_splunk>:8089/services/search/jobs -d search="search *"
root $ curl -u admin:changeme -k https://<my_splunk>:8089/services/search/jobs/<my_sid_here>
root $ curl -u admin:changeme -k https://<my_splunk>:8089/services/search/jobs/
- It's DNS. It's always DNS. If curl fails inside Docker but not outside:
- Identify your host's DNS server, such as by inspecting
/etc/resolv.conf - Update your bridge's
docker-compose.yml:
- Identify your host's DNS server, such as by inspecting
services:
bridge:
...
dns:
- "<MY.DNS.SERVER>"