Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix the loading of certain passwords from the keychain (fixes #21817) #21818

Merged
merged 1 commit into from Jan 24, 2024
Merged

fix the loading of certain passwords from the keychain (fixes #21817) #21818

merged 1 commit into from Jan 24, 2024

Conversation

rpendleton
Copy link
Contributor

@rpendleton rpendleton commented Jan 18, 2024

If a password contains certain characters (such as a backslash), the security command line tool will output the password in hexadecimal format followed by a quoted escaped string. Version 0.1.5 of the security gem supports this format, so updating to this version will make it so fastlane can properly load saved passwords that contain these special characters.

Checklist

  • I've run bundle exec rspec from the root directory to see all new and existing tests pass
  • I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
  • I see several green ci/circleci builds in the "All checks have passed" section of my PR (connect CircleCI to GitHub if not)
  • I've read the Contribution Guidelines
  • I've updated the documentation if necessary.
  • I've added or updated relevant unit tests.
    • (Unit tests for this issue already exist in the fastlane-community/security repo.)

Motivation and Context

Resolves #21817

Description

Updates the security gem to the latest version, from version 0.1.3 to 0.1.5.

I tested these changes by installing this version of fastlane, and then running fastlane sigh download_all after saving my account credentials to the keychain.

Testing Steps

  1. Run fastlane fastlane-credentials add and provide a password that contains a \
  2. Run fastlane sigh download_all and observe that the previously saved password is used for the login

If a password contains certain characters (such as a backslash), the
security command line tool will output the password in hexadecimal
format followed by a quoted escaped string.

Version 0.1.5 of the security gem supports this format, so updating to
this version will make it so fastlane can properly load saved passwords
that contain these special characters.
@@ -99,7 +99,7 @@ Gem::Specification.new do |spec|
spec.add_dependency('optparse', '>= 0.1.1', '< 1.0.0') # Used to parse options with Commander
spec.add_dependency('plist', '>= 3.1.0', '< 4.0.0') # Needed for set_build_number_repository and get_info_plist_value actions
spec.add_dependency('rubyzip', '>= 2.0.0', '< 3.0.0') # fix swift/ipa in gym
spec.add_dependency('security', '= 0.1.3') # macOS Keychain manager, a dead project, no updates expected
spec.add_dependency('security', '= 0.1.5') # macOS Keychain manager, a dead project, no updates expected
Copy link
Collaborator

Choose a reason for hiding this comment

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

well so much for the "no updates expected".

I am also waiting for fastlane-community/security#12 to be merged and released :)

@lacostej lacostej merged commit 7bf2642 into fastlane:master Jan 24, 2024
3 checks passed
@rpendleton rpendleton deleted the update-security-gem branch January 25, 2024 03:34
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.

fastlane fails to load passwords from the keychain if they contain backslashes
2 participants