Skip to content

[stable7] Ext storage share key not updated after changing applicable users #11181

Closed

Description

@PVince81

Steps to reproduce

  1. Enable encryption
  2. Enable external storage
  3. Create two users "user1" and "user2"
  4. Mount a external storage as system mount point (for example "Local") and give access to "user1"
  5. Create a non-empty file "test.txt" inside
  6. Check the share keys inside of $datadir/files_encryption/share-keys, see that there is a key for "user1".
  7. Change access of the mount point, remove "user1" and add "user2"
  8. Check the keys again

Expected result

Share keys for "user1" are gone.
Share keys for "user2" exist.

Actual result

Share keys for "user1" still exist even though the user has no more access.
Share keys for "user2" are missing.

Versions

ownCloud 7 stable7 (7930440)

I talked with @schiesbn and he said there is no hook to find out whenever a mount point has changed, so it is currently not possible to detect such updates.

Activity

  1. PVince81 commented on Sep 19, 2014

    @PVince81
    ContributorAuthor

    Would be cool if the external storage users were handled just like for shares, see proposal here: #11182

  2. PVince81 commented on Sep 19, 2014

    @PVince81
    ContributorAuthor
  3. PVince81 commented on Sep 22, 2014

    @PVince81
    ContributorAuthor

    @MTRichards I moved the "enhanced proposed" to the ticket that actually makes the proposal here: #11182

    Let's keep this ticket here for bugfixing, in case we find a short term solution.

    CC @karlitschek

  4. karlitschek commented on Mar 24, 2015

    @karlitschek
    Contributor

    @schiesbn is this still open?

  5. PVince81 commented on Mar 1, 2016

    @PVince81
    ContributorAuthor

    Very likely to still be an issue even with 9.0 because we still don't have hooks for when applicables are changed. But hopefully with the revamped external storage code it should be much easier to add these. Setting to 9.1.

  6. added this to the milestone on Mar 1, 2016
  7. schiessle commented on Apr 8, 2016

    @schiessle
    Contributor

    That's basically the same issue as if users are added to groups... We can't magically encrypt the files for new users. One solution is the master key.

  8. lock commented on Aug 5, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  9. locked as resolved and limited conversation to collaborators on Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions