this post was submitted on 02 May 2025
29 points (100.0% liked)

Selfhosted

46677 readers
261 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

Hello.

My question is basically the title. Can a jellyfin installed with rootles docker access media that is stored on a encrypted hard drive?

I have almost zero docker experience since i just started using it and I just want to know if it's possible.

all 10 comments
sorted by: hot top controversial new old
[–] [email protected] 19 points 5 days ago (1 children)

Decryption is not related to root permission.

If the ENCRYPTED drive is mounted to the container, then the container can decrypt it.

If the DECRYPTED drive is mounted to the container, then the container never knows it was encrypted in the first place.

Second case is easier BTW. Just mount the drive on your host, type in the encryption password and you get a new, unencrypted drive. Specify this new drive in your docker compose/docker file.

[–] [email protected] 3 points 5 days ago (1 children)

Oh sorry seems i explained it poorly.

That encrypted drive drive is set to automount on boot since I added it to /etc/fstatb and /etc/crypttab.

This makes things easier. Thank you for clarifying.

[–] [email protected] 6 points 5 days ago (2 children)

That encrypted drive drive is set to automount on boot…

This makes things easier.…

But weakens your security posture. If you’re worried enough to encrypt the drive, you shouldn’t be auto mounting it.

[–] [email protected] 4 points 4 days ago

If you’re worried enough to encrypt the drive, you shouldn’t be auto mounting it.

This really depends on your threat model. If you are only concerned about the drive getting stolen, or wanting to keep the data on it private if you need to RMA the drive, mounting it automatically on boot with a key stored on the rootfs can be perfectly fine. If you are a journalist in a hostile country and protecting your sources from state level actors is a matter of life and death, then yeah, this would be woefully insufficient.

[–] [email protected] 3 points 5 days ago

Yes. But the main ssd where the OS is installed is also encrypted with different password. So you must first unlock the ssd anyway to automount the hdd.

[–] [email protected] 10 points 5 days ago (1 children)

The drive will be mounted by the host and you can use that to also decrypt it. This way Jellyfin in the docker container doesn’t know that the media is stored on an encrypted hard drive.

[–] [email protected] 2 points 5 days ago (1 children)

And if I make docker compose file for jellyfin and specify that path to encrypted hdd example( /media/user/sda1/jellyfin-media) will it be able to read that media?

[–] [email protected] 1 points 5 days ago

I’m not 100% on the paths regarding the mounts and where the containing files are accessible, but it looks correct to at the moment. One way to test this is to check if the user you are using to run the Jellyfin container is able to access the files without additional input/steps.

If your user can access it, then Jellyfin will be able to do that as well as soon as you have mounted it in the container.

[–] [email protected] 1 points 4 days ago

yes, i use this setup with linux and luks encrypted external usb hd