Skip to content

Commit

Permalink
Fix metrics exporter user restriction to localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
AMecea authored and calind committed Mar 21, 2019
1 parent e1aa7f0 commit 659e9fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/sidecar/apphelper.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ func configureExporterUser(cfg *Config) error {
query := `
SET @@SESSION.SQL_LOG_BIN = 0;
CREATE USER IF NOT EXISTS ?@'localhost';
ALTER USER ?@'localhost' IDENTIFIED BY ? WITH MAX_USER_CONNECTIONS 3;
CREATE USER IF NOT EXISTS ?@'127.0.0.1';
ALTER USER ?@'127.0.0.1' IDENTIFIED BY ? WITH MAX_USER_CONNECTIONS 3;
GRANT SELECT, PROCESS, REPLICATION CLIENT ON *.* TO ?@'localhost';
GRANT SELECT, PROCESS, REPLICATION CLIENT ON *.* TO ?@'127.0.0.1';
`

user := cfg.MetricsUser
Expand Down

0 comments on commit 659e9fc

Please sign in to comment.