waggle-sensor / beehive-server

Waggle cloud software for aggregation, storage and analysis of sensor data from Waggle nodes.
13 stars 17 forks source link

Ensure credentials are automatically backed up #33

Open seanshahkarami opened 6 years ago

seanshahkarami commented 6 years ago

We need to make sure critical pieces of credential information are automatically backed up and that we're able to restore the state of beehive from it.

For reference, I have a list of the credentials in use here: https://github.com/waggle-sensor/waggle/wiki/Credentials-Overview

I can't emphasis enough how crucial this is...

seanshahkarami commented 6 years ago

This is important enough that until this is in effect, we should probably hold off on major redesign work on beehive in case something goes wrong.

seanshahkarami commented 6 years ago

I started addressing the backup step with this: https://github.com/waggle-sensor/ansible/blob/master/beehive/backup-credentials.yml

We just need a secure, reliable place to store all of this.

seanshahkarami commented 6 years ago

I went ahead and included MySQL in this. Currently, all ssh keys, all TLS/SSL and all MySQL tables are archived and backed up using the backup-credentials playbook.

seanshahkarami commented 6 years ago

@geeklair @rajeshxsankaran I just need approval of a secure, reliable location to close this.

seanshahkarami commented 6 years ago

I have a snapshotting job putting a archived copy of the credentials in /digital/backup as backup-%Y%m%d.tar.gz.