restrict access to notary db

This commit is contained in:
Tan Jiang 2017-03-22 18:15:16 +08:00
parent 6e09ae89e3
commit 3c16d6c1a1
3 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
CREATE DATABASE IF NOT EXISTS `notaryserver`;
CREATE USER "server"@"%" IDENTIFIED BY "";
CREATE USER "server"@"notary-server.%" IDENTIFIED BY "";
GRANT
ALL PRIVILEGES ON `notaryserver`.*
TO "server"@"%";
TO "server"@"notary-server.%"

View File

@ -1,7 +1,7 @@
CREATE DATABASE IF NOT EXISTS `notarysigner`;
CREATE USER "signer"@"%" IDENTIFIED BY "";
CREATE USER "signer"@"notary-signer.%" IDENTIFIED BY "";
GRANT
ALL PRIVILEGES ON `notarysigner`.*
TO "signer"@"%";
TO "signer"@"notary-signer.%";

View File

@ -47,7 +47,7 @@ services:
syslog-address: "tcp://127.0.0.1:1514"
tag: "notary-signer"
notary-db:
image: mariadb:10.1.10
image: vmware/harbor-notary-db:mariadb-10.1.10
container_name: notary-db
networks:
notary-mdb: