Skip to content

When removing an account, the keychain entry for the password should be erased #5752

Closed

Description

@SamuAlfageme

Similar discussion to #5342.

Actual behavior

  • When you logout of an account in the client, the keychain entry for the password is removed. (Certificate and key are preserved though.)
  • When the account is deleted, all the information on the keychain is preserved.

Expected behavior

Semantically, the keychain entry for the deleted account should be removed on the account's deletion (deletion should be seen as log-out)

Steps to reproduce

  1. Remove an account from the client
  2. Check Keychain Access app (OS X) for ownCloud entries relative to the account that was removed

Seen it on OS X, but I believe it affects the rest of the OSS -> will reproduce there.

Activity

  1. modified the milestone: 2.4.0 on May 8, 2017
  2. self-assigned this
    on May 22, 2017
  3. added this to the 2.4.0 milestone on May 22, 2017
  4. ckamm commented on May 22, 2017

    @ckamm
    Contributor

    PR: #5787

  5. added
    ReadyToTest
    on May 22, 2017
  6. SamuAlfageme commented on May 31, 2017

    @SamuAlfageme
    ContributorAuthor
    • OS X
    • Windows
    • Linux
  7. SamuAlfageme commented on Jul 24, 2017

    @SamuAlfageme
    ContributorAuthor

    👍

  8. SamuAlfageme commented on Oct 23, 2017

    @SamuAlfageme
    ContributorAuthor

    Note to self: verify if OAuth access tokens are being removed from the keychain when deleting the account. I'm getting way too many stale entries lately.

  9. SamuAlfageme commented on Oct 24, 2017

    @SamuAlfageme
    ContributorAuthor

    Some findings after checking out the keychain integration:

    • Non-SSL (plain http://) connections also create a <username>_clientCertificatePEM & <username>_clientKeyPEM empty entries in the keychain
    • These are not erased together with the account (like the password is)

    That's why I was getting the so many entries left. @ckamm would it be worth/easy to erase those as well?

  10. ckamm commented on Oct 24, 2017

    @ckamm
    Contributor

    @SamuAlfageme I'll check it out. Probably simple enough to get into 2.4

  11. ckamm commented on Oct 25, 2017

    @ckamm
    Contributor

    @SamuAlfageme PR is ready, see #6118 -- wiping the client cert keychain entries when the account is deleted won't make it into 2.4 though. But at least we'll not be creating these entries when there's not client cert anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ReadyToTestsev3-mediumtype:bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions