-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
[fastlane_core] fix WWDR certificates import flow #21442
[fastlane_core] fix WWDR certificates import flow #21442
Conversation
b5546d0
to
1d0bb37
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
This is a quick bug-fix PR we use in our fork. I found a long time not merged PR #21273 that covers this issue too and additionally adds expiration date checks to the added certificates. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, nice catch! 💪
Very nice. Reminds me of this: https://medium.engineering/the-unluckiest-paragraphs-751dd36d2d30#6bb3 (Thanks for the fix. Bit me for the first time today, so great timing!) |
Thanks for the fix, it's really useful ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏
Really nice catch @PaulTaykalo 💪 thanks for this! |
when it will release? |
@numandev1 we don't have a release cadency but it'll be released in the next release for sure. Not sure when that will take place though, I'll try to make it happen in the next week or so. Meanwhile, this code lives in gem 'fastlane', git: 'https://github.com/fastlane/fastlane.git', branch: 'master' And run |
gem 'fastlane', git: 'https://github.com/fastlane/fastlane.git', branch: 'master' copied from fastlane/fastlane/pull/21442#issuecomment-1681443895
Checklist
bundle exec rspec
from the root directory to see all new and existing tests passbundle exec rubocop -a
to ensure the code style is validci/circleci
builds in the "All checks have passed" section of my PR (connect CircleCI to GitHub if not)Motivation and Context
When
fastlane
installs the WWDR certificate it performs it in next steps:security import AppleWWDRCAG6.cer20230109-941-zd7vp8
The issue what we found is that macOS
security
tool would treat some extensions as a part of expected formatSo, when generated extension contains strings like
p8
orp7
and also contains-
symbol, it treats it as a fromat typeThis means, that if generated suffix will contain these strings,
security
won't be able to import a certificate, even if is valid one.Here are some examples (with the same contents)
Resolves #20960, #5259
Description
Instead of generating suffix to the extension, suffix to the filename is generated instead:
Testing Steps
Funny calculations 🎲
p8
in themThanks