fastlane: Failures due to presence of FASTLANE_PASSWORD

Issue Description

When FASTLANE_PASSWORD is present as an env var (configured on .zshrc or .bashrc) fastlane ignores the password inputed when asked on the terminal.

Environment

fastlane version (run fastlane -v): 1.105.2

Do you use bundler to execute fastlane (i.e. bundle exec fastlane)? Yes

Do you use a Ruby environment manager (e.g. chruby, rbenv, rvm)? chruby

What Xcode version do you use (e.g. 7.3, 8.0) 8.0


Worth noting that this isn’t the first time I’ve experienced this; just that being the numbnuts i am i never took the time to file an issue about this.

Recently I tried on a fresh new machine at work (that I configured using my dotfiles repo which carried away the FASTLANE_PASSWORD var) and then I was faced again with a case of «your password is wrong» even though fastlanewas asking me to input it via terminal and I was copy/pasting it from LastPass.

When I was about to rage quit I realised that the variable was set and after removing it and fastlane asking me for the password again, adding the same one I used multiple times (without success) worked.

Hope this is enough info to repro; if not let me know and I’ll be more than happy to provide more details.

PS. Thanks for the amazing work so far

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments

@TKBurner 😦 i feel like you guys are not actually reading the description of the issue.

There’s no project specific setting I can provide you to reproduce other than this:

  • Set up a FASTLANE_PASSWORD env var on your ~/.zshrc or ~/.bashrc or your rc file of choice for your shell with a value of WRONG_PASSWORD
  • Launch a fastlane integration that requires the use of a username and password
  • fastlane will fail because the password is wrong and will ask you to set the correct one
  • Input the correct password
  • fastlane will fail saying that the password is incorrect
  • Remove the env var from your dotfiles and try again
  • fastlane will ask for the password
  • input the correct password again
  • See how fastlane succeeds

I hope this is enough information for you to reproduce

@esttorhe i really wan’t to help you,and find the bug. but i am unable to reproduce it.

tried match via fastfile

  match(
        git_url: "git@gitlab.krone.at:mobile/IOS-CERTIFICATES.git",
        app_identifier: "krone.at-new"
)

results in:

[12:10:30]: Driving the lane 'dd' 🚀
[12:10:30]: asdf
[12:10:30]: -------------------
[12:10:30]: --- Step: match ---
[12:10:30]: -------------------

+-----------------------+-------------------------------------------------+
|                        Summary for match 0.10.0                         |
+-----------------------+-------------------------------------------------+
| git_url               | git@gitlab.krone.at:mobile/IOS-CERTIFICATES.git |
| app_identifier        | krone.at-new                                    |
| git_branch            | master                                          |
| type                  | development                                     |
| keychain_name         | login.keychain                                  |
| readonly              | false                                           |
| verbose               | false                                           |
| force                 | false                                           |
| shallow_clone         | false                                           |
| force_for_new_devices | false                                           |
| skip_docs             | false                                           |
+-----------------------+-------------------------------------------------+

[12:10:31]: Cloning remote git repo...
[12:10:39]: 🔓  Successfully decrypted certificates repo
[12:10:39]: To not be asked about this value, you can specify it using 'username'
Your Apple ID Username: helmut@januschka.com
[12:10:43]: Verifying that the certificate and profile are still valid on the Dev Portal...
The login credentials for 'helmut@januschka.com' seem to be wrong
The password was taken from the environment variable
Please make sure it is correct
Please run this tool again to apply the new password
[12:10:44]: An error occured while verifying your certificates and profiles with the Apple Developer Portal.
[12:10:44]: If you already have your certificates stored in git, you can run `match` in readonly mode
[12:10:44]: to just install the certificates and profiles without accessing the Dev Portal.
[12:10:44]: To do so, just pass `readonly: true` to your match call.
[12:10:44]: 🔒  Successfully encrypted certificates repo
[12:10:44]: Variable Dump:
[12:10:44]: {:PLATFORM_NAME=>nil, :LANE_NAME=>"dd"}
[12:10:44]: Invalid User Credentials

+------+--------+-------------+
|      fastlane summary       |
+------+--------+-------------+
| Step | Action | Time (in s) |
+------+--------+-------------+
| 💥    | match  | 14          |
+------+--------+-------------+


and commandline

export FASTLANE_PASSWORD=1234
match -a krone.at-krone1.at

+-----------------------+--------------------+
|          Summary for match 0.10.0          |
+-----------------------+--------------------+
| app_identifier        | krone.at-krone1.at |
| git_branch            | master             |
| type                  | development        |
| keychain_name         | login.keychain     |
| readonly              | false              |
| verbose               | false              |
| force                 | false              |
| shallow_clone         | false              |
| force_for_new_devices | false              |
| skip_docs             | false              |
+-----------------------+--------------------+

[12:07:02]: To not be asked about this value, you can specify it using 'git_url'
URL to the git repo containing all the certificates: git@gitlab.krone.at:mobile/IOS-CERTIFICATES.git
[12:07:03]: Cloning remote git repo...
[12:07:12]: 🔓  Successfully decrypted certificates repo
[12:07:12]: To not be asked about this value, you can specify it using 'username'
Your Apple ID Username: helmut@januschka.com
[12:07:17]: Verifying that the certificate and profile are still valid on the Dev Portal...
The login credentials for 'helmut@januschka.com' seem to be wrong
The password was taken from the environment variable
Please make sure it is correct
Please run this tool again to apply the new password
[12:07:18]: An error occured while verifying your certificates and profiles with the Apple Developer Portal.
[12:07:18]: If you already have your certificates stored in git, you can run `match` in readonly mode
[12:07:18]: to just install the certificates and profiles without accessing the Dev Portal.
[12:07:18]: To do so, just pass `readonly: true` to your match call.
[12:07:18]: 🔒  Successfully encrypted certificates repo

i never get prompted for a password

you should upgrade fastlane - the env is only available since 1.106.1 -> https://github.com/fastlane/fastlane/releases/tag/1.106.1

@esttorhe Thanks for the report! Can you share your Fastfile so we can see which tools you’re using?