blog-image

Enclosed

  • dHENRY
  • 27/01/2025
  • (Reading time : 2 mn)

(**) Translated with www.DeepL.com/Translator

Enclosed is a minimalistic web application designed for sending private and secure notes.

All notes are end-to-end encrypted, ensuring that the server and storage have zero knowledge of the content. Users can set a password, define an expiration period (TTL), and choose to have the note self-destruct after being read.

A live instance is available at enclosed.cc.

Simplicity is a priority, both in terms of installation and operation.

I have, however, noticed a small problem regarding the use of NFS volumes in my Kubernetes installation. The recurring task of ‘cleaning’ files does not work as expected.

The program goes through the files present in the directory specified by the environment variable ‘STORAGE_DRIVER_FS_LITE_PATH’ (which is ‘./.data’).

In my case, the volume contains the ’lost+found’ directory, which belongs to root, and this seems to cause an error that interrupts the task.

To remedy this, I changed the storage path for the notes by adjusting the value of the environment variable ‘STORAGE_DRIVER_FS_LITE_PATH’ to ‘./.data/mynotes’, in order to prevent the cleaning job from encountering the ’lost+found’ directory.

The volume remains mounted on the directory mentioned in the documentation, but the notes are now stored in the subdirectory specified by ‘STORAGE_DRIVER_FS_LITE_PATH’, and the service no longer reports any errors. The deletion of notes is functioning normally.

+++

(**) Translated with www.DeepL.com/Translator