Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli/demo: sanitize the printing of connection URLs
Prior to this patch, the printing of connection URLs for secondary tenant servers was too simplistic. Acknowledging that tenant servers are just regular servers, this commit uses the same code for both types of tenants. Before: ``` system tenant (webui) http://127.0.0.1:8083/demologin?password=demo8336&username=demo (sql) postgresql://demo:demo8336@127.0.0.1:26260/defaultdb?sslmode=require&sslrootcert=%2Ftmp%2Fdemo1374536428%2Fca.crt (sql/jdbc) jdbc:postgresql://127.0.0.1:26260/defaultdb?password=demo8336&sslmode=require&sslrootcert=%2Ftmp%2Fdemo1374536428%2Fca.crt&user=demo (sql/unix) postgresql://demo:demo8336@/defaultdb?host=%2Ftmp%2Fdemo1374536428&port=26260 tenant 1: (sql): postgresql://demo:demo8336@127.0.0.1:26257/movr?sslmode=require&sslrootcert=%2Ftmp%2Fdemo1374536428%2Fca-client-tenant.crt tenant 2: (sql): postgresql://demo:demo8336@127.0.0.1:26258/movr?sslmode=require&sslrootcert=%2Ftmp%2Fdemo1374536428%2Fca-client-tenant.crt ... ``` After: ``` system tenant (webui) http://127.0.0.1:8083/demologin?password=demo36514&username=demo (sql) postgresql://demo:demo36514@127.0.0.1:26260/defaultdb?sslmode=require&sslrootcert=%2Ftmp%2Fdemo1584871889%2Fca.crt (sql/jdbc) jdbc:postgresql://127.0.0.1:26260/defaultdb?password=demo36514&sslmode=require&sslrootcert=%2Ftmp%2Fdemo1584871889%2Fca.crt&user=demo (sql/unix) postgresql://demo:demo36514@/defaultdb?host=%2Ftmp%2Fdemo1584871889&port=26260 tenant 1: (webui) https://127.0.0.1:8080/demologin?password=demo36514&username=demo (sql) postgresql://demo:demo36514@127.0.0.1:26257/movr?sslmode=require&sslrootcert=%2Ftmp%2Fdemo1584871889%2Fca-client-tenant.crt (sql/jdbc) jdbc:postgresql://127.0.0.1:26257/movr?password=demo36514&sslmode=require&sslrootcert=%2Ftmp%2Fdemo1584871889%2Fca-client-tenant.crt&user=demo tenant 2: (webui) https://127.0.0.1:8081/demologin?password=demo36514&username=demo (sql) postgresql://demo:demo36514@127.0.0.1:26258/movr?sslmode=require&sslrootcert=%2Ftmp%2Fdemo1584871889%2Fca-client-tenant.crt (sql/jdbc) jdbc:postgresql://127.0.0.1:26258/movr?password=demo36514&sslmode=require&sslrootcert=%2Ftmp%2Fdemo1584871889%2Fca-client-tenant.crt&user=demo ... ``` Release note: None
- Loading branch information