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

CORE-4263 Removed any use of GnuTLS #20129

Conversation

michael-redpanda
Copy link
Contributor

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v24.1.x
  • v23.3.x
  • v23.2.x

Release Notes

  • None

@michael-redpanda michael-redpanda requested a review from a team June 25, 2024 00:34
@michael-redpanda michael-redpanda self-assigned this Jun 25, 2024
@michael-redpanda michael-redpanda requested review from aanthony-rp and removed request for a team June 25, 2024 00:34
@michael-redpanda michael-redpanda force-pushed the CORE-4263-Remove-unused-libs branch from 68cbabf to 5a6232e Compare June 25, 2024 00:40
@michael-redpanda
Copy link
Contributor Author

michael-redpanda commented Jun 25, 2024

Depends on: https://github.com/redpanda-data/vtools/pull/2884

Edit: actually the vtools depends on this.

@michael-redpanda michael-redpanda marked this pull request as ready for review June 25, 2024 17:14
@michael-redpanda michael-redpanda requested review from dotnwat and oleiman and removed request for aanthony-rp June 25, 2024 17:15
@oleiman
Copy link
Member

oleiman commented Jun 25, 2024

Any of this relevant @michael-redpanda ?

$ git grep gnutls
install-dependencies.sh:  gnutls-dev
install-dependencies.sh:  gnutls-devel
licenses/third_party.md:| gnutls          | LGPL v2.1                          |
src/v/cloud_storage_clients/configuration.cc:    // NOTE: this is a pre-defined gnutls priority string that
tests/rptest/services/utils.py:        # '2024-04-11T17:05:13.758476896Z stderr F WARN  2024-04-11 17:05:13,755 [shard 0:main] seastar_memory - oversized allocation: 217088 bytes. This is non-fatal, but could lead to latency and/or fragmentation issues. Please report: at 0x80ddafb 0x7de622b 0x7df04bf /opt/redpanda/lib/libgnutls.so.30+0xc5ca3 /opt/redpanda/lib/libgnutls.so.30+0x12a9e3 /opt/redpanda/lib/libgnutls.so.30+0x813df 0x80906ef 0x7f66333'

@michael-redpanda michael-redpanda force-pushed the CORE-4263-Remove-unused-libs branch from 5a6232e to d9e0735 Compare June 25, 2024 18:45
@michael-redpanda michael-redpanda requested review from a team and emaxerrno as code owners June 25, 2024 18:45
@michael-redpanda michael-redpanda requested review from andrewhsu and removed request for a team June 25, 2024 18:45
@michael-redpanda
Copy link
Contributor Author

Any of this relevant @michael-redpanda ?

$ git grep gnutls
install-dependencies.sh:  gnutls-dev
install-dependencies.sh:  gnutls-devel
licenses/third_party.md:| gnutls          | LGPL v2.1                          |
src/v/cloud_storage_clients/configuration.cc:    // NOTE: this is a pre-defined gnutls priority string that
tests/rptest/services/utils.py:        # '2024-04-11T17:05:13.758476896Z stderr F WARN  2024-04-11 17:05:13,755 [shard 0:main] seastar_memory - oversized allocation: 217088 bytes. This is non-fatal, but could lead to latency and/or fragmentation issues. Please report: at 0x80ddafb 0x7de622b 0x7df04bf /opt/redpanda/lib/libgnutls.so.30+0xc5ca3 /opt/redpanda/lib/libgnutls.so.30+0x12a9e3 /opt/redpanda/lib/libgnutls.so.30+0x813df 0x80906ef 0x7f66333'

Thanks!

@michael-redpanda
Copy link
Contributor Author

Force push d9e0735:

Remove some last vestiges of GnuTLS

Signed-off-by: Michael Boquard <michael@redpanda.com>
@michael-redpanda michael-redpanda force-pushed the CORE-4263-Remove-unused-libs branch from d9e0735 to 869b4aa Compare June 25, 2024 18:50
@michael-redpanda
Copy link
Contributor Author

Force push 869b4aa:

  • Building Seastar with OpenSSL in our OSS build

Comment on lines -25 to -27
template<gnutls_mac_algorithm_t Algo, size_t DigestSize>
class hmac {
static_assert(DigestSize > 0, "digest cannot be zero length");
Copy link
Member

Choose a reason for hiding this comment

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

Question about this removal, mostly for my own benefit - so in effect this validation is already done to our satisfaction and we can remove this? Or there's more work to do there and we'll build off an old commit?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm good with the bench results. Just left it in until we fully pulled gnutls

Copy link
Member

Choose a reason for hiding this comment

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

Cool, yeah. I just haven't been following along I guess 😕

@@ -20,7 +20,6 @@ please keep this up to date with every new library use.
| DPDK | BSD |
| fmt | BSD |
| gmp | LGPL v3 |
| gnutls | LGPL v2.1 |
Copy link
Member

Choose a reason for hiding this comment

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

should nettle, gmp, etc... also be removed from this list?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, yup

Signed-off-by: Michael Boquard <michael@redpanda.com>
@michael-redpanda michael-redpanda force-pushed the CORE-4263-Remove-unused-libs branch from 869b4aa to 30af579 Compare June 25, 2024 19:12
Copy link
Member

@oleiman oleiman left a comment

Choose a reason for hiding this comment

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

:shipit:

@michael-redpanda
Copy link
Contributor Author

@michael-redpanda michael-redpanda merged commit 525e0e8 into redpanda-data:dev Jun 26, 2024
16 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants