From 7e3e37ee66691f604564794c2baf6cc367943d24 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Fri, 24 Jul 2020 23:22:16 +0200 Subject: [PATCH] TT#87554 Remove nagios voip subscriber with hardcoded password This user/password combination is not used any longer by the monitoring system and it is a security risk as it is using a hardcoded password instead of the one from constants.yml. Change-Id: If00789343e57c5e1e058e431d3dcfc59a6e3fd58 --- db_scripts/diff/15613.down | 14 ++++++++++++++ db_scripts/diff/15613.up | 3 +++ 2 files changed, 17 insertions(+) create mode 100644 db_scripts/diff/15613.down create mode 100644 db_scripts/diff/15613.up diff --git a/db_scripts/diff/15613.down b/db_scripts/diff/15613.down new file mode 100644 index 00000000..c7bc3e71 --- /dev/null +++ b/db_scripts/diff/15613.down @@ -0,0 +1,14 @@ +USE provisioning; + +INSERT + INTO voip_subscribers + (username, domain_id, uuid, password, create_timestamp, modify_timestamp) + SELECT + 'nagios', + id, + 'ac1697cf-6933-45ef-9abf-b1278054ded0', + 'nagios4Sipwise!', + '0', + '1970-01-01 00:00:00' + FROM voip_domains + WHERE domain = 'voip.sipwise.local'; diff --git a/db_scripts/diff/15613.up b/db_scripts/diff/15613.up new file mode 100644 index 00000000..38209a22 --- /dev/null +++ b/db_scripts/diff/15613.up @@ -0,0 +1,3 @@ +USE provisioning; + +DELETE FROM voip_subscribers WHERE username = 'nagios';