danielemery / keys

Static web app acting as a source of truth for public ssh keys, known hosts and pgp keys
2 stars 0 forks source link

Use sqlite for key persistence #26

Closed danielemery closed 3 months ago

danielemery commented 4 months ago

In order to make the keys project become usable by anyone but me, the keys themselves need to be dynamic. To keep the container as simple as possible this should be achieved with something like an sqlite database. Endpoints that can add and delete the different resource types also need to be in scope of this ticket.

Likely this will be considered a breaking change version of keys as it fundamentally changes the project.

danielemery commented 4 months ago

https://docs.deno.com/runtime/manual/basics/connecting_to_databases/#connect-to-sqlite-with-the-wasm-optimized-module Looks like a good choice for implementation

danielemery commented 4 months ago

I've been considering that one of the nice features of keys at the moment is not needing to worry about data management at all (backups, persistence etc). I'm now leaning towards an alternative of providing keys to the container via a config file or environment variables rather than dealing with a stateful application.

danielemery commented 3 months ago

Replaced by #29