Skip to content

Conversation

@SimplyDanny
Copy link
Collaborator

  • Use same KeyImporter protocol mechanism like previously introduced for PGP key import.
  • Allow HTTP for SSH key import but ask for confirmation.
  • More sources for setting PGP key #320: Add ability to import the SSH key from Files.
  • Remove unused properties.
  • Merge PGPKeySource and GitSSHKeySource.

@mssun mssun merged commit d33e63c into mssun:master Feb 16, 2020

public extension DefaultsKeys {
var pgpKeySource: DefaultsKey<PGPKeySource?> { .init("pgpKeySource") }
var pgpKeySource: DefaultsKey<KeySource?> { .init("pgpKeySource") }
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I noticed one problem in the current TestFlight version with the changes in this file: The previous file is now itunes for both PGP and SSH keys. So, if a user had imported their keys via iTunes before the update, it will now be shown as imported from files. As far as I can see, this information is only relevant for the "✓" displayed in the import dialog to flag the used method. Shall we keep it since it is only UI related or shall we introduce another enum case for the import from files and keep file for iTunes, @mssun?

Copy link
Owner

Choose a reason for hiding this comment

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

Do you mean this UI issue is only valid for people using iTunes upgrading from older version? I think it's okay if there is no other side effect.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, url and armor have remained untouched. itunes is a new case and thus it is not known to UserDefaults. Only file changed to itunes, which causes the misinterpretation if iTunes was used for the key import. There are no errors, though, as no cases have been removed or renamed.

@SimplyDanny SimplyDanny deleted the import-ssh-key-from-file branch February 17, 2020 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants