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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate the crypto library to Swift Crypto #2166

Merged
merged 1 commit into from
Feb 26, 2020
Merged

Migrate the crypto library to Swift Crypto #2166

merged 1 commit into from
Feb 26, 2020

Conversation

0xTim
Copy link
Member

@0xTim 0xTim commented Feb 4, 2020

Migrate from Vapor's OpenCrypto library to Apple's new Swift Crypto library. This reduces the burden on Vapor on having to maintain a crypto library and completely removes OpenSSL as a dependency 馃帀

The downside of this is that Vapor 4 will require macOS 10.15, but the tradeoff is worth it.

@0xTim 0xTim requested a review from tanner0101 February 4, 2020 12:14
@t089
Copy link

t089 commented Feb 4, 2020

One alternative approach would be to make "OpenCrypto" fallback to swift-crypto on supported platforms, but leave the OpenSSL escape hatch open for macOS < 10.15.

@0xTim
Copy link
Member Author

0xTim commented Feb 4, 2020

The issue with that is you still end up maintaining a crypto library which no one really wants to do!

@t089
Copy link

t089 commented Feb 4, 2020

But no one really wants to upgrade to 10.15 either ;)

@kaishin
Copy link

kaishin commented Feb 4, 2020

Nice work @0xTim!

The 10.15 requirement is no big deal for me, since I am always on the latest OS version. Ultimately @tanner0101 needs to make the call since he's the one maintaining open-crypto.

@tanner0101 tanner0101 added the enhancement New feature or request label Feb 6, 2020
@tanner0101 tanner0101 added this to In Progress in Vapor 4 via automation Feb 6, 2020
@0xTim
Copy link
Member Author

0xTim commented Feb 6, 2020

Forum post about removing support for 10.14 is here

@vzsg vzsg changed the title Migrate the crypto library to Swift Cryto Migrate the crypto library to Swift Crypto Feb 6, 2020
@tanner0101 tanner0101 added the semver-major Breaking changes label Feb 26, 2020
@tanner0101 tanner0101 merged commit c911da1 into master Feb 26, 2020
Vapor 4 automation moved this from In Progress to Done Feb 26, 2020
@tanner0101 tanner0101 deleted the swift-crypto branch February 26, 2020 20:28
@tanner0101
Copy link
Member

These changes are now available in 4.0.0-beta.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request semver-major Breaking changes
Projects
Vapor 4
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants