Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.

SecretItemRow: Delete secrets the recommended way#24

Open
danirabbit wants to merge 5 commits into
masterfrom
secret-remove
Open

SecretItemRow: Delete secrets the recommended way#24
danirabbit wants to merge 5 commits into
masterfrom
secret-remove

Conversation

@danirabbit
Copy link
Copy Markdown
Member

Doesn't delete your whole keychain 👍

@davidmhewitt
Copy link
Copy Markdown
Member

Does this not delete all cards instead of just one?

@danirabbit
Copy link
Copy Markdown
Member Author

@davidmhewitt Not that I can see? It matches both the schema and the specific attributes of this secret

@jeremypw
Copy link
Copy Markdown
Collaborator

@danrabbit No reviewers have been requested for this. Is it ready?

@danirabbit danirabbit requested a review from jeremypw April 30, 2021 16:42
@jeremypw
Copy link
Copy Markdown
Collaborator

I am not familiar with this code or libsecret so I need to take a bit of time to get myself up to speed. Will review as soon as I can.

"io.elementary.switchboard.wallet", Secret.SchemaFlags.NONE,
"brand", Secret.SchemaAttributeType.STRING,
"exp", Secret.SchemaAttributeType.STRING
);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This copies code from elsewhere - maybe should be held in a shared class and accessed with e.g. WalletSchema.get_default () (?) Can be another PR though

"exp", Secret.SchemaAttributeType.STRING
);

Secret.password_clearv.begin (schema, secret_item.get_attributes (), null);
Copy link
Copy Markdown
Collaborator

@jeremypw jeremypw Apr 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deletes all cards with the same brand and expiry date (?) Can there be more than one?

Just confirmed that it is possible to add two cards with the same attributes but different number and CVC. Deleting one does delete both of them.

Copy link
Copy Markdown
Collaborator

@jeremypw jeremypw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we need more specific attributes to distinguish cards of same brand and expiry date (or prevent these being added)

@jeremypw
Copy link
Copy Markdown
Collaborator

jeremypw commented Dec 6, 2023

@danirabbit Is this something you still want to work on?

@danirabbit
Copy link
Copy Markdown
Member Author

I think this whole repo can probably be archived since it was never used

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

Labels

None yet

Projects

Status: Needs Review

Development

Successfully merging this pull request may close these issues.

3 participants