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

Link libssl and libz statically #546

Merged
merged 2 commits into from
Sep 8, 2022

Conversation

LukasKalbertodt
Copy link
Member

CC #537

See first commit for reasoning. This leaves Tobira only linking to "libstd libraries" basically.

This is only used by the HTTP client of `meilisearch_sdk`, i.e. to
communicate with Meilisearch. In most instances, Meili runs on the same
machine without HTTPS, so this is basically never used. In particular,
Tobira cannot listen on HTTPS directly (you should use a reverse proxy
for that). And to communicate with Opencast, rustls is used. Ideally,
meilisearch_sdk would also use rustls and in the future we can do that.

But for now, we want to statically link libssl to make it easier to
deploy Tobira. The main argument against static linking is that an
administrator cannot deploy libssl security updates without updating
Tobira. Yes, but that's already true for 99% of Tobira's dependencies.
So just dynamically linking this one library isn't making a big
difference. Also, as mentioned above, libssl is not even used in most
situations. And if it's used, there is no user interaction.
See last commit for reasoning. libz is only used by the build dependency
`built` and meilisearch_sdk at runtime. So the same reasoning applies
basically.
@github-actions
Copy link

github-actions bot commented Sep 8, 2022

🚀 This PR was deployed at https://pr546.tobira.opencast.org. The deployment will be updated whenever someone pushes onto this PR's branch.

@JulianKniephoff JulianKniephoff added the changelog:admin Changes primarily for admins label Sep 8, 2022
@JulianKniephoff JulianKniephoff merged commit 35daab6 into elan-ev:master Sep 8, 2022
@LukasKalbertodt LukasKalbertodt deleted the link-statically branch September 8, 2022 12:20
LukasKalbertodt added a commit to LukasKalbertodt/tobira that referenced this pull request Dec 12, 2024
In elan-ev#546 I configured dependencies to avoid dynamically linking libssl
and libz. I just checked again after the Meili update and noticed that
those library are again linked dynamically. I think this has to do with
me adding `reqwest` as dependencies without disabling default features.

With this commit, libssl and libz are again not dynamically linked.
LukasKalbertodt added a commit to LukasKalbertodt/tobira that referenced this pull request Dec 12, 2024
In elan-ev#546 I configured dependencies to avoid dynamically linking libssl
and libz. I just checked again after the Meili update and noticed that
those library are again linked dynamically. I think this has to do with
me adding `reqwest` as dependencies without disabling default features.

With this commit, libssl and libz are again not dynamically linked.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:admin Changes primarily for admins
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants