Skip to content

Alternative key storage location doesn't delete all keys after deleting user #26936

Closed

Description

@PVince81

Steps

  1. Setup OC v9.1.3
  2. occ app:enable encryption.
  3. occ encryption:enable
  4. mkdir data/enckeys; chown wwwrun:www data/enckeys (adjust for permissions accordingly)
  5. occ encryption:change-key-storage-root enckeys
  6. Login as admin
  7. Create a user "user1"
  8. Login as "user1"
  9. Check "data/enckeys/user1/" and subdirs: keys are present
  10. Login as admin
  11. Delete "user1" (need to wait 7s or navigate away)
  12. Check "data/enckeys/user1/" and subdirs

Expected result

The folder "data/enckeys/user1" must be gone just like "data/user1".

Actual result

"data/user1" is gone but the keys folder "data/enckeys/user1" still exist with contents.
Only the user's publicKey was deleted.

Versions

Observed in ownCloud 9.1.3.
I suspect that this never worked properly.

I don't think this is critical, @Peter-Prochaska correct me if you think otherwise.

Activity

  1. added this to the backlog milestone on Jan 13, 2017
  2. self-assigned this
    on Oct 4, 2017
  3. DeepDiver1975 commented on Oct 6, 2017

    @DeepDiver1975
    Contributor

    Fixed with #29144

  4. DeepDiver1975 commented on Oct 6, 2017

    @DeepDiver1975
    Contributor

    @PVince81 shall we backport this?

  5. PVince81 commented on Oct 9, 2017

    @PVince81
    ContributorAuthor

    @DeepDiver1975 ok for backport

  6. lock commented on Jul 31, 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.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions