PeerTube icon indicating copy to clipboard operation
PeerTube copied to clipboard

Private instance (family, restricted community...)

Open Antoine948398 opened this issue 8 years ago • 17 comments

Hello,

My question can be weird, but it is possible to made video accessible only for logged user on my instance ? I would like to make a platform to share videos ONLY with my family and I don't know if peertube could be suitable for this use.

Thanks in advance !

Antoine948398 avatar Apr 21 '18 23:04 Antoine948398

Would be awesome, and complementary to https://github.com/Chocobozzz/PeerTube/issues/371

mokas01 avatar Apr 22 '18 15:04 mokas01

For now you have 2 solutions:

  • Create 1 account that you'll share with your family and upload the videos in private privacy
  • Upload your videos in unlisted (they will be federated but people will need to find the correct URL to watch it) and share the URL with your family

To have a real restricted instance, we would need:

  • An admin option to forbid followers
  • An admin option to allow only logged users to list/watch videos

Chocobozzz avatar Apr 23 '18 07:04 Chocobozzz

Wouldn't this be equivalent to Mastodon's followers only privacy setting? With the account set up for non-automatic follow approval.

benrob0329 avatar Apr 23 '18 15:04 benrob0329

On YunoHost you can keep the web interface behind the SSO. So only the users who are logged in on YunoHost will be able to access the web interface. Further only group of users on YunoHost can be given access to the web interface,all other users will be treated same as pubic users and will not have access to the web interface of PeerTube.

anmol26s avatar Jun 17 '18 14:06 anmol26s

I tried to use HTTP AUTH in the Nginx in front of the peertube, but any call by the js client to /api/ would not use the HTTP auth :/ no luck then. If anyone has a better idea :) (or I will end up with a port knocker on location / through a crude php script...)

vincib avatar Oct 29 '18 18:10 vincib

For now you have 2 solutions:

* Create 1 account that you'll share with your family and upload the videos in `private` privacy

* Upload your videos in `unlisted` (they will be federated but people will need to find the correct URL to watch it) and share the URL with your family

To have a real restricted instance, we would need:

* An admin option to forbid followers

* An admin option to allow only logged users to list/watch videos

I do not think that a full private instance was what the OP has in mind.

Actually what I would really like in an instance is the possibility to set a video as only viewable by the users of my instance, on a per video basis. This would allow a semi-public instance that can be federated with others but with some videos (or channels maybe) that are only listed if you are connected on the local instance (and of course not federated).

Private video are not exactly what I want because they are not listed for connected users. I do not want to have to share a link for each video. Also, I specifically want that the video can only be viewed if the user is logged in MY instance. With private videos, if the private link is leaked, your only option is to remove the video. Of course that does not solve the problem of a malicious user of the instance downloading the video and leaking the video file itself, but if I want to set an instance for family usage, I can probably trust them not to.

Anyway, great software. I would be glad to take a look at how this can be implemented but as it deals with privacy, it may take some time to first really understand how peertube handles this and then propose the change :)

hauspie avatar Nov 14 '18 15:11 hauspie

How does WebTorrent work with this kind of privacy? Is it possible to restrict who is able to torrent the video files? If someone downloads a video, but is then restricted from viewing it, can they still seed the video?

And if your audience is intentionally small and isolated from the rest of the vidiverse (or even the fediverse) do you really need to be using WebTorrent? I do understand the desire for a personal social network for sharing videos, but this seems like the wrong technology for it.

I wouldn't be against this feature being implemented, I just would want to know what the security of it would look like before I relied on it.

realityfabric avatar Jun 17 '19 20:06 realityfabric

I am also interested by having a private instance. I am adopting PeerTube for a small education institution and we would like to restrict access to our videos so only connected users can watch them.

Coupled with #2242 it would allow our instance to be fully controlled by our team and ensure that our content is only watched by our students.

Of course, it turns PeerTube into a full-private instance but I think it's a use case that companies or institutions might be interested in: it would let them rely on PeerTube to host their video content while ensuring that it remains private and intern to the company/institution.

GauthierPLM avatar Nov 21 '19 09:11 GauthierPLM

I added an Internal privacy mode in https://github.com/Chocobozzz/PeerTube/commit/22a73cb879a5cc775d4bec3d72fa9c9cf52e5175 that you can set per video. In this setting, only logged in users of your instance will be able to list and watch it. The video is not federated.

If you would like to allow your users to only upload "Internal" videos, you can subscribe to https://github.com/Chocobozzz/PeerTube/issues/1969

Chocobozzz avatar Dec 12 '19 15:12 Chocobozzz

Awesome! many thanks!

hauspie avatar Dec 12 '19 16:12 hauspie

Thanks a lot :)

Antoine948398 avatar Dec 12 '19 18:12 Antoine948398

I am trying to set up this private access functionnality on peertube and I think I have found some solutions to close totaly an instance on server and client side. I think that with a little more time and more work I would be able to make a Pull Request to add this feature even if won't be perfect.

Bricklou avatar Jan 03 '20 21:01 Bricklou

I have somethink that is worker but I would like to know if it is usefull to restrict assets and statics file access when instance is configured as private ? By example, block videos and preview when user is not logged in.

(PS, my repo is there: https://github.com/Bricklou/PeerTube/tree/private_mode)

Bricklou avatar Jan 04 '20 19:01 Bricklou

I hope my commit was not redundant, but I have a similar request here: https://github.com/Chocobozzz/PeerTube/issues/3470

Agorise avatar Dec 15 '20 16:12 Agorise

I am also interested by having a private instance. I am adopting PeerTube for a small education institution and we would like to restrict access to our videos so only connected users can watch them.

Coupled with #2242 it would allow our instance to be fully controlled by our team and ensure that our content is only watched by our students.

Of course, it turns PeerTube into a full-private instance but I think it's a use case that companies or institutions might be interested in: it would let them rely on PeerTube to host their video content while ensuring that it remains private and intern to the company/institution.

Hello @GauthierPLM, did you succeed in setting the private Peertube? I am currently thinking of doing exactly the same, and would really appreciate any help or feedback.

AlbertBaubleDeem avatar Jan 20 '21 14:01 AlbertBaubleDeem

I think in this case https://mediagoblin.org/pages/tour.html

Is a much more appropriate solution

tomaytotomato avatar Apr 20 '21 08:04 tomaytotomato

I think in this case https://mediagoblin.org/pages/tour.html

Is a much more appropriate solution

Yes, it looks like it! Especially because it allows sharing so many different media types. I am looking into it atm and getting in touch with project's main contributors. I will keep this thread posted.

AlbertBaubleDeem avatar Apr 21 '21 05:04 AlbertBaubleDeem