Feature: Implement a RSTUF state recovery from TUF Metadata (or other solution)
kairoaraujo opened this issue · comments
Kairo Araujo commented
To recover an RSTUF setup or to RSTUF to certain state, it requires the following data and infrastructure data restoration:
- Backup the TUF Metadata stored in
RSTUF_STORAGE_BACKEND
- Backup the Private Online Key in the
RSTUF_KEYVAULT_BACKEND
- Backup the Postgres RSTUF Database
RSTUF_SQL_SERVER
- Backup the Redis databases
RSTUF_REDIS_SERVER
Originally posted by @kairoaraujo in #425 (comment)
This discussion brings an idea to RSTUF Feature: The possibility of minimizing the low-level backups/restore.
It would be possible to:
- Restore the Database from TUF Metadata, recreating the database from the existent Metadata JSON Files (
rstuf_targets_roles
andrstuf_targets_files
) - (??) Restore the Configuration from the existent TUF Metadata (expiration ??)
- (??) Create an endpoint for generating a backup (database, metadata, settings)