Page MenuHomePhabricator

Generate SSH key pair for MediaWiki deployment
Closed, ResolvedPublic

Description

Author: ori

Description:

(For context, see the thread '[Ops] Shared ssh key' from October.)
Here's what we need next to transition scap to a securely-shared deployment key model:
* Create a private / public key pair for MediaWiki deployments. The private key should have a passphrase.
* Put the public key in operations/puppet:modules/mediawiki/files/authorized_keys.mwdeploy (currently just a placeholder).
* Put the private key in the private Puppet repository as files/ssh/tin/mwdeploy_rsa.
* Provision the private key on tin by merging <https://gerrit.wikimedia.org/r/172919>.
* Disseminate the private key's passphrase to roots, either by adding it to the private Puppet repository, or via some other secure mean. (Chris Steipp's preference is to not have the passphrase in the private Puppet repository.)

Details

Reference
rt8857

Event Timeline

rtimport raised the priority of this task from to Medium.Dec 18 2014, 2:18 AM
rtimport set Reference to rt8857.

all done as requested. thanks for the detailed preparation.
private key added to private repo, public key added to public repo,
merged the change to provision private key on tin and watched it.
<root at tin:~/> ls
authorized_keys known_hosts mwdeploy_rsa
passphrase in /srv/passwords/mediawiki-deployment-key-passphrase on iron

Status changed from 'new' to 'open' by RT_System

key length is 4096 bits. passphrase is 20 chars a-zA-Z0-9
merged: https://gerrit.wikimedia.org/r/#/c/173103/
merged : https://gerrit.wikimedia.org/r/#/c/172919/

Status changed from 'open' to 'resolved' by dzahn

Dzahn changed the visibility from "WMF-NDA (Project)" to "All Users".Apr 1 2015, 2:07 AM
Dzahn changed the edit policy from "WMF-NDA (Project)" to "All Users".
Dzahn set Security to None.
Dzahn changed the visibility from "All Users" to "Public (No Login Required)".Apr 1 2015, 2:23 AM