Page MenuHomePhabricator

Migrate web services using LDAP authentication towards the readonly LDAP replicas
Open, MediumPublic

Description

We recently introduced two new LDAP readonly replicas which are behind LVS, the Cloud VPS instances are in the process of migrating fully towards those. This task tracks the migration of our web-based services (where applicable).

Once all readonly consumers are migrated we can doublecheck via tcpdump for a few days and restrict access to serpens/seaborgium to the services performing actual write changes.

Details

SubjectRepoBranchLines +/-
operations/puppetproduction+18 -14
operations/puppetproduction+4 -3
operations/puppetproduction+4 -4
operations/puppetproduction+4 -2
operations/puppetproduction+2 -1
operations/puppetproduction+19 -14
operations/puppetproduction+2 -2
operations/puppetproduction+11 -6
operations/puppetproduction+1 -1
operations/puppetproduction+4 -2
operations/puppetproduction+4 -3
operations/puppetproduction+6 -2
operations/puppetproduction+6 -2
operations/puppetproduction+9 -4
operations/puppetproduction+6 -1
operations/puppetproduction+8 -5
operations/puppetproduction+2 -1
operations/puppetproduction+5 -2
operations/puppetproduction+2 -1
operations/puppetproduction+5 -2
operations/puppetproduction+2 -2
operations/puppetproduction+1 -1
operations/puppetproduction+2 -1
Show related patches Customize query in gerrit

Event Timeline

Restricted Application added a subscriber: Aklapper. ยท View Herald TranscriptJul 10 2019, 10:58 AM

Change 524479 had a related patch set uploaded (by Muehlenhoff; owner: Muehlenhoff):
[operations/puppet@production] piwik: Read LDAP servers from Hiera and switch to read-only replicas

https://gerrit.wikimedia.org/r/524479

Change 524487 had a related patch set uploaded (by Muehlenhoff; owner: Muehlenhoff):
[operations/puppet@production] puppetboard: Read LDAP servers from Hiera and switch to read-only replicas

https://gerrit.wikimedia.org/r/524487

Change 524489 had a related patch set uploaded (by Muehlenhoff; owner: Muehlenhoff):
[operations/puppet@production] debmonitor: Read LDAP servers from Hiera and switch to read-only replicas

https://gerrit.wikimedia.org/r/524489

Change 524494 had a related patch set uploaded (by Muehlenhoff; owner: Muehlenhoff):
[operations/puppet@production] netbox: Read LDAP server from Hiera and switch to read-only replicas

https://gerrit.wikimedia.org/r/524494

Change 524479 merged by Elukey:
[operations/puppet@production] piwik: Read LDAP servers from Hiera and switch to read-only replicas

https://gerrit.wikimedia.org/r/524479

Change 524519 had a related patch set uploaded (by Muehlenhoff; owner: Muehlenhoff):
[operations/puppet@production] grafana: Read LDAP servers from Hiera and switch to read-only replicas

https://gerrit.wikimedia.org/r/524519

Change 524540 had a related patch set uploaded (by Muehlenhoff; owner: Muehlenhoff):
[operations/puppet@production] icinga: Read LDAP servers from Hiera and switch to read-only replicas

https://gerrit.wikimedia.org/r/524540

Change 523992 had a related patch set uploaded (by Dzahn; owner: Dzahn):
[operations/puppet@production] static-rt: LDAP config, use ro, Hiera and new password classes

https://gerrit.wikimedia.org/r/523992

Change 523994 had a related patch set uploaded (by Dzahn; owner: Dzahn):
[operations/puppet@production] librenms: use ldap-ro, stop using ldap-labs, use Hiera

https://gerrit.wikimedia.org/r/523994

Change 523991 had a related patch set uploaded (by Dzahn; owner: Dzahn):
[operations/puppet@production] microsites/transparency: use ldap-ro, stop using ldap-labs, use Hiera

https://gerrit.wikimedia.org/r/523991

Change 523995 had a related patch set uploaded (by Dzahn; owner: Dzahn):
[operations/puppet@production] xhgui::app: use ldap-ro, stop using ldap-labs, use Hiera

https://gerrit.wikimedia.org/r/523995

Change 523993 had a related patch set uploaded (by Dzahn; owner: Dzahn):
[operations/puppet@production] tendril: use ldap-ro, use Hiera, refactor to profile

https://gerrit.wikimedia.org/r/523993

Change 524583 had a related patch set uploaded (by Dzahn; owner: Dzahn):
[operations/puppet@production] netbox: stop using ::passwords::ldap:wmf_cluster

https://gerrit.wikimedia.org/r/524583

Change 524584 had a related patch set uploaded (by Dzahn; owner: Dzahn):
[operations/puppet@production] icinga: stop using ::passwords::ldap:wmf_cluster

https://gerrit.wikimedia.org/r/524584

Change 524585 had a related patch set uploaded (by Dzahn; owner: Dzahn):
[operations/puppet@production] grafana: stop using ldap-labs, use ldap-ro

https://gerrit.wikimedia.org/r/524585

Change 524586 had a related patch set uploaded (by Dzahn; owner: Dzahn):
[operations/puppet@production] graphite: use ldap-ro, stop using ldap-labs, use Hiera

https://gerrit.wikimedia.org/r/524586

Change 524585 abandoned by Dzahn:
grafana: stop using ldap-labs, use ldap-ro

Reason:
duplicate of https://gerrit.wikimedia.org/r/c/operations/puppet/ /524519/

https://gerrit.wikimedia.org/r/524585

Change 524584 merged by Dzahn:
[operations/puppet@production] icinga: stop using ::passwords::ldap:wmf_cluster

https://gerrit.wikimedia.org/r/524584

Change 524487 merged by Muehlenhoff:
[operations/puppet@production] puppetboard: Read LDAP servers from Hiera and switch to read-only replicas

https://gerrit.wikimedia.org/r/524487

Change 524586 merged by Muehlenhoff:
[operations/puppet@production] graphite: use ldap-ro, stop using ldap-labs, use Hiera

https://gerrit.wikimedia.org/r/524586

Change 524494 merged by Muehlenhoff:
[operations/puppet@production] netbox: Read LDAP server from Hiera and switch to read-only replicas

https://gerrit.wikimedia.org/r/524494

Change 523994 merged by Muehlenhoff:
[operations/puppet@production] librenms: use ldap-ro, stop using ldap-labs, use Hiera

https://gerrit.wikimedia.org/r/523994

Change 524742 had a related patch set uploaded (by Muehlenhoff; owner: Muehlenhoff):
[operations/puppet@production] yarn: Read LDAP servers from Hiera and switch to read-only replicas

https://gerrit.wikimedia.org/r/524742

Change 524749 had a related patch set uploaded (by Muehlenhoff; owner: Muehlenhoff):
[operations/puppet@production] Superset: Read LDAP servers from Hiera and switch to read-only replicas

https://gerrit.wikimedia.org/r/524749

Change 524752 had a related patch set uploaded (by Muehlenhoff; owner: Muehlenhoff):
[operations/puppet@production] turnilo: Read LDAP servers from Hiera and switch to read-only replicas

https://gerrit.wikimedia.org/r/524752

Change 524489 merged by Muehlenhoff:
[operations/puppet@production] debmonitor: Read LDAP servers from Hiera and switch to read-only replicas

https://gerrit.wikimedia.org/r/524489

Change 524540 merged by Muehlenhoff:
[operations/puppet@production] icinga: Read LDAP servers from Hiera and switch to read-only replicas

https://gerrit.wikimedia.org/r/524540

Change 524752 merged by Elukey:
[operations/puppet@production] turnilo: Read LDAP servers from Hiera and switch to read-only replicas

https://gerrit.wikimedia.org/r/524752

Change 524742 merged by Elukey:
[operations/puppet@production] yarn: Read LDAP servers from Hiera and switch to read-only replicas

https://gerrit.wikimedia.org/r/524742

Change 524749 merged by Elukey:
[operations/puppet@production] Superset: Read LDAP servers from Hiera and switch to read-only replicas

https://gerrit.wikimedia.org/r/524749

Change 524519 merged by Muehlenhoff:
[operations/puppet@production] grafana: Read LDAP servers from Hiera and switch to read-only replicas

https://gerrit.wikimedia.org/r/524519

Change 523991 merged by Muehlenhoff:
[operations/puppet@production] microsites/transparency: use ldap-ro, stop using ldap-labs, use Hiera

https://gerrit.wikimedia.org/r/523991

Change 524791 had a related patch set uploaded (by Muehlenhoff; owner: Muehlenhoff):
[operations/puppet@production] profile::webperf::xhgui: Read LDAP servers from Hiera and switch to read-only replicas

https://gerrit.wikimedia.org/r/524791

Change 524798 had a related patch set uploaded (by Muehlenhoff; owner: Muehlenhoff):
[operations/puppet@production] librenms: Read LDAP servers from Hiera and switch to read-only replicas

https://gerrit.wikimedia.org/r/524798

Change 524810 had a related patch set uploaded (by Muehlenhoff; owner: Muehlenhoff):
[operations/puppet@production] maintain_dbusers: Read LDAP servers from Hiera and switch to read-only replicas

https://gerrit.wikimedia.org/r/524810

Change 523995 merged by Dzahn:
[operations/puppet@production] xhgui::app: use ldap-ro, stop using ldap-labs

https://gerrit.wikimedia.org/r/523995

Change 523992 merged by Dzahn:
[operations/puppet@production] static-rt: LDAP config, use ro, Hiera and new password classes

https://gerrit.wikimedia.org/r/523992

Change 524583 merged by Dzahn:
[operations/puppet@production] netbox: stop using ::passwords::ldap:wmf_cluster

https://gerrit.wikimedia.org/r/524583

Change 523993 merged by Dzahn:
[operations/puppet@production] tendril: use ldap-ro, use Hiera, refactor to profile

https://gerrit.wikimedia.org/r/523993

Change 524798 merged by Dzahn:
[operations/puppet@production] librenms: Read LDAP servers from Hiera and switch to read-only replicas

https://gerrit.wikimedia.org/r/524798

Change 524791 merged by Muehlenhoff:
[operations/puppet@production] xhgui: Read LDAP servers from Hiera and switch to read-only replicas

https://gerrit.wikimedia.org/r/524791

Change 525057 had a related patch set uploaded (by Muehlenhoff; owner: Muehlenhoff):
[operations/puppet@production] kibana: Read LDAP servers from standard Hiera and switch to read-only replicas

https://gerrit.wikimedia.org/r/525057

Change 525069 had a related patch set uploaded (by Muehlenhoff; owner: Muehlenhoff):
[operations/puppet@production] kibana: Switch to read-only LDAPreplicas

https://gerrit.wikimedia.org/r/525069

Change 525069 merged by Muehlenhoff:
[operations/puppet@production] kibana: Switch to read-only LDAPreplicas

https://gerrit.wikimedia.org/r/525069

Change 524810 merged by Muehlenhoff:
[operations/puppet@production] maintain_dbusers: Read LDAP servers from Hiera and switch to read-only replicas

https://gerrit.wikimedia.org/r/524810

The following services have been converted to use the read-only replicas:

  • DB users sync on labstore100[45]
  • Debmonitor
  • Grafana
  • Graphite
  • Hive
  • Icinga
  • Kibana
  • LibreNMS
  • Netbox
  • Piwik
  • Puppetboard
  • Superset
  • Swap
  • Tendril/DBMonitor
  • Transparency report
  • Turnilo
  • XHGui
  • Yarn

Once the remaining Cloud VPS instances are switched to use the eqiad r/o servers, we can narrow down access to the r/w servers in Ferm.

Change 525057 abandoned by Muehlenhoff:
kibana: Read LDAP servers from standard Hiera and switch to read-only replicas

https://gerrit.wikimedia.org/r/525057

Gerrit has been switched to use readonly replicas today.

what is still left to change in order to complete this?

The last remaining patch should be https://gerrit.wikimedia.org/r/#/c/operations/puppet/+/525220/ (and some semi-related refactoring to switch more prod hosts to the new ldap Hiera settings.

Once that is done, I'm planning to tcpdump remaining accesses to the r/w servers to doublecheck and when that is all tightened down, ferm rules can be added to restrict access to the r/w hosts.

Removing task assignee due to inactivity, as this open task has been assigned for more than two years. See the email sent to the task assignee on February 06th 2022 (and T295729).

Please assign this task to yourself again if you still realistically [plan to] work on this task - it would be welcome.

If this task has been resolved in the meantime, or should not be worked on ("declined"), please update its task status via "Add Actionโ€ฆ ๐Ÿก’ Change Status".

Also see https://www.mediawiki.org/wiki/Bug_management/Assignee_cleanup for tips how to best manage your individual work in Phabricator.

I ran tcpdump for the LDAP ports on seaborgium and serpens for a little over an hour:

On serpens:

  • alert1001
  • alert2001
  • ldap-replica2005.wikimedia.org
  • ldap-replica2006.wikimedia.org
  • seaborgium

On seaborgium:

  • alert1001
  • alert2001
  • archiva1002
  • cloudcontrol1003
  • cloudcontrol1004
  • cloudcontrol1005
  • contint1001
  • labweb1001
  • labweb1002
  • ldap-replica1003
  • ldap-replica1004
  • nat.cloudgw.eqiad1.wikimediacloud.org
  • scan-08b.shadowserver.org
  • serpens

This looks promising, the only cases which a closer look at contint1001 and archiva, which should both be doing just fine by only using the replicas. Then we'd be close to restricting access to the r/w servers via Ferm.