server icon indicating copy to clipboard operation
server copied to clipboard

Privacy enhancements for contacts menu

Open MariusBluem opened this issue 9 years ago • 36 comments

Follow up of #4656:

  • [ ] possibility to disable contacts menu from config.php? 🤔

  • [x] If username-autocompletion is disabled, the contacts-menu should never ever show local users: bildschirmfoto 2017-05-05 um 10 04 08

  • [x] Groups, which are excluded from sharing should not see local users at all: bildschirmfoto 2017-05-05 um 10 04 16

  • [x] If sharing is restricted to users own groups, he should only see contacts from his groups: bildschirmfoto 2017-05-05 um 10 04 38

We may also want to overthink the federation lookup-settings, since they could be also used for contacts-menu on user-side: 🤔 @schiessle
bildschirmfoto 2017-05-05 um 10 08 29

@ChristophWurst

MariusBluem avatar May 25 '17 08:05 MariusBluem

Hi. In the JSXC app there are also requests for such restrictions (e.g. https://github.com/jsxc/jsxc/issues/306). For the best UX I think it's very important that the implementation is the same.

How should this be implemented in the Chat app?

  • "Groups, which are excluded from sharing should not see local users at all" so this does also mean they can't Chat?
  • "If sharing is restricted to users own groups, he should only see contacts from his groups" so these users can only Chat with users in their own group.

(Note that this still is important even if the contacts menu and roster will by merged (https://github.com/nextcloud/jsxc.nextcloud/issues/21), because otherwise users could manually start a conversation)

LEDfan avatar Jul 02 '17 06:07 LEDfan

This is really essential to address. Users should be able to look up and autocomplete users in their groups and their groups ONLY. At the moment, autocomplete really makes a big security hole revealing users (ands their email addresses!) to each other

zeigerpuppy avatar Aug 03 '17 22:08 zeigerpuppy

As all group-/autocomplete-related issues are pointing to this issue, I'll add my findings when using 12.0.1 here in relation to the admin-option: "Allow username autocompletion in share dialog. If this is disabled the full username needs to be entered."

  1. This option seems to have an effect on both searching in the contacts menu and when sharing files. When disabling this option:
    1. The contacts menu doesn't show anyone (this is unexpected)
    2. You can only share with another user if you type the full username (this is expected)
  2. As coined in other comments, when enabled, the autocomplete should be limited to users you're in a group (any group) with:
    1. when sharing for the contacts menu
    2. but also in the contacts menu

Quick update: PR 5107 @ #5585 seems to fix part 2.ii, but not 2.i or either of the issues below 1..

ebogaard avatar Aug 09 '17 12:08 ebogaard

@ebogaard, there is another aspect: 1.iii. The user pop-up menu (e.g. in the Activity app) doesn't show the email-to action (this is unexpected)

1.i and 1.iii should come in separate settings (separate from username autocompletion). Actually, my usecase is not about exposing usernames but email addresses only.

I just learned that users can hide their email address from others, but this is not the default. I.e. when an admin creates a user with his email address (to send the welcome message), then this email address is exposed immediately until the user logs in and changes the privacy setting. Shall I open another ticket for this issue?

heinrichmartin avatar Aug 13 '17 22:08 heinrichmartin

@ebogaard

  1. This option seems to have an effect on both searching in the contacts menu and when sharing files. When disabling this option:
    1. The contacts menu doesn't show anyone (this is unexpected)

Why is this unexpected? As I see it the Contacts menu is meant as the start-point for Collaboration (Sharing, E-mailing, Chatting ... ) and we want the options to limit and control sharing to have the same effects on the other forms of collaboration. I agree the options should be renamed then a bit. See e.g. https://github.com/nextcloud/server/issues/4656#issuecomment-298860891 cc @MariusBluem @jancborchardt @ChristophWurst this POV is correct right?

LEDfan avatar Aug 16 '17 15:08 LEDfan

Another issue I was facing: shouldn't the Groups, which are excluded from sharing should not see local users at all option also make sure the users which are excluded doesn't show up in the Contacts menu? Since these users can't Share/Collaborate it wouldn't be ideal to show them in the Contacts menu, since a not excluded user then can share/collaborate with them.

LEDfan avatar Aug 16 '17 15:08 LEDfan

@LEDfan

Why is this unexpected?

This is unexpected for two reasons:

  1. When autocomplete is enabled, you get a list of contacts before you even start typing in the contacts menu. If you disable this option, no contacts are shown. If that's correct (which I think it is), the configuration option should then also read something like: "don't show/suggest any contacts in the contacts menu". But then a better description ;-)
  2. If you disable this option, no contact is shown, even when you type in the full name. This differs from the way it works when sharing files/folders: there you get to see the user if you type the full name.

If I think of it: if you only look at the contacts menu, the disable autocomplete-option should actually read "Disable contacts menu".

ebogaard avatar Aug 16 '17 15:08 ebogaard

This is really essential to address. Users should be able to look up and autocomplete users in their groups and their groups ONLY.

@schiessle @blizzz @LukasReschke can you look at this? All the cases noted here should be integrated in the existing options.

jancborchardt avatar Aug 21 '17 16:08 jancborchardt

This is really essential to address. Users should be able to look up and autocomplete users in their groups and their groups ONLY.

@schiessle @blizzz @LukasReschke can you look at this? All the cases noted here should be integrated in the existing options.

Depending on the sharing options. There you can limit it to groups only. I would not restrict it to this by default, since a group structure is not necessary and the default experience would appear broken ("I cannot interact with anyone!").

blizzz avatar Aug 29 '17 12:08 blizzz

even if you limit share to a group, you can see all contacts

jimbowarrior avatar Aug 30 '17 11:08 jimbowarrior

Will this be backported to NC12 ?

Unless this feature is disabled or at least restriced to groups i cannot upgrade to version 12.

BornToBeRoot avatar Aug 31 '17 13:08 BornToBeRoot

@BornToBeRoot it is not even there in the code yet, that would be the first step. i backported it manually as this is really a deal-breaker...

rotanid avatar Aug 31 '17 16:08 rotanid

I bumped my PR for some love 😜 To all the people in this thread can you please test the PR and see if it has the desired result for you?

@BornToBeRoot my PR will be backported to 12 and IMO other improvements should be too.

LEDfan avatar Aug 31 '17 17:08 LEDfan

what do you mean PR ? personal repo ? pre release ? How can I test ? I'm using stable branch NC12.0.2 but I can upload some code in my test server.

jimbowarrior avatar Aug 31 '17 17:08 jimbowarrior

i agree this option !

Moimemeici avatar Sep 08 '17 09:09 Moimemeici

@MorrisJobke : shloud be implemented into 12.0.3 version ?

jimbowarrior avatar Sep 18 '17 12:09 jimbowarrior

@jimbowarrior 12.0.3 is already released (RC2)

Please implement in 12.0.4! So i can finally migrate from 11 to 12

BornToBeRoot avatar Sep 18 '17 13:09 BornToBeRoot

Backport at https://github.com/nextcloud/server/pull/6554

LukasReschke avatar Sep 18 '17 15:09 LukasReschke

contacts

Please see #5606 - someone has referenced that issue and said it is duplicate of this, while it is not.

While this share-and-see-users-outside-group bug is solved (I have confirmed it) in todays build, the Contact main link (header menu - present on all pages - see attachment) is still leaking data from other groups. Very important to get that bug solved.

For reference is also OwnCloud suggesting years back (google it) that groups is suggested to be used to completely isolate business. It would be strange to do something completely different here.

Another thing is that it doesn't do anything (if this is by intent and developer really wants users to search outside your goup). You can search in contact, but when you click them, nothing happens. So it is only a showstopper and no-one has any use to just search usernames? I would just disable this Contact-menu-option in this case (where you have opted to not share outside groups). It will not kill any known functionality.

ixmann99 avatar Sep 27 '17 17:09 ixmann99

maybe there is a problem with the backport to the stable branch? @ixmann99 i assume you tried the stable branch only?

rotanid avatar Sep 28 '17 00:09 rotanid