Skip to content

Commit

Permalink
Config updater: propagate mysql password into bundled fleetspeak config.
Browse files Browse the repository at this point in the history
  • Loading branch information
mol123 committed Oct 14, 2020
1 parent dad69fa commit b3fed9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion grr/server/grr_response_server/bin/config_updater_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,9 @@ def _WriteEnabled(self, config):
cp = config_pb2.Config()
cp.configuration_name = "Fleetspeak"
cp.components_config.mysql_data_source_name = (
"{user}:@tcp({host}:{port})/{db}".format(
"{user}:{password}@tcp({host}:{port})/{db}".format(
user=self.mysql_username,
password=self.mysql_password,
host=self.mysql_host,
port=self.mysql_port,
db=self.mysql_database))
Expand Down

0 comments on commit b3fed9d

Please sign in to comment.