The purpose of this machine is twofold:
- It is the place where Agencies will be dumping pre-transition logs via SFTP
- Is it the place where we will collect our Fastly CDN logs
- SFTP for Agencies ====================
In order to add a new user for SFTP, it needs to be added to the
hieradata
and then the CI puppet config deployed. Deployment instructions are available in the ci-deployment
repository on GitHub Enterprise.
To create the new key for the Agency, you can can use the following command:
ssh-keygen -t rsa -b 2048 -f agency_key -N ""
That will create a new RSA private key called agency_key
. The new public key will be agency_key.pub
and this is what needs to be pasted into the new user in Puppet.
These users will be unable to connect for an interactive session, only scp/sftp type connections will work.
Connection Details to be supplied to the agency:
Protocol: SFTP
User: <the user created>
Pass: <empty>
Host: <the DNS name of the transition-logs machine>
Key: <the private key created>
Agencies may not be using Linux tools to transfer their logs. On Windows, there are two popular applications which can be used: WinSCP and PuTTY sftp - look for the psftp.exe link. If using PuTTY sftp, note that connections with PuTTY itself won't work, it must be PuTTY sftp.
Both of these programs use the same key format (PPK) and instructions for converting an OpenSSH private key are available here
- CDN Logs ===========