mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 02:35:17 +01:00
restrict access to notary db
This commit is contained in:
parent
6e09ae89e3
commit
3c16d6c1a1
@ -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.%"
|
||||
|
@ -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.%";
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user