Skip to content

Add recovery fallback for secrets.json file #898

@brentru

Description

@brentru

Sometimes the secrets.json is either deleted (accidentally) or corrupted. Instead of this, @tyeth and I were discussing a way to store, on boot, the secrets.json's content in-memory and persist it through boot cycles.

On boot, the device would:

  1. check for the existence of this content, recover it and place into a new secrets.json file on the FS
  2. create a new secrets.json file (current operation)

We'd need to:

  • Profile the secret.json max. possible size
  • Consider using a struct or just a string depending on serialization/deserialization difficulty.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions