Skip to content

fix: Add libsasl2-modules-gssapi-mit to Dockerfile #10308

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ryanhall07
Copy link

@ryanhall07 ryanhall07 commented May 7, 2025

This shared library is needed for users of the kafka plugin + kerberos+gssapi.

Without they get the error

sasl_[ssl://xxxxxxxxnet:6668/bootstrap](ssl://xxxxxxxxnet:6668/bootstrap): Cyrus/libsasl2 is missing a GSSAPI module: make sure the libsasl2-modules-gssapi-mit or cyrus-sasl-gssapi packages are installed

Fixes #10240


Enter [N/A] in the box, if an item is not applicable to your change.

Testing
Before we can approve your change; please submit the following in a comment:

  • [ N/A] Example configuration file for the change
  • [ N/A] Debug log output from testing the change
  • [N/A ] Attached Valgrind output that shows no leaks or memory corruption was found

If this is a change to packaging of containers or native binaries then please confirm it works for all targets.

  • [ N/A] Run local packaging test showing all targets (including any new ones) build.
  • [ N/A] Set ok-package-test label to test for all targets (requires maintainer to do).

Documentation

  • [ N/A] Documentation required for this feature

Backporting

  • [ N/A] Backport to latest stable release.

Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.

@ryanhall07 ryanhall07 force-pushed the rhall-gssapi-distroless branch from 28a19ec to b14b665 Compare May 7, 2025 17:45
@ryanhall07 ryanhall07 marked this pull request as ready for review May 7, 2025 17:53
@niedbalski
Copy link
Collaborator

@ryanhall07 Before I can merge. Please follow the contribution guidelines https://github.com/fluent/fluent-bit/blob/master/CONTRIBUTING.md#commit-changes for the commit message. Use dockerfile: xxx.

@patrick-stephens
Copy link
Contributor

We should really update the sanity tests as well to start verifying these runtime dependencies ideally too.

@patrick-stephens
Copy link
Contributor

Does this resolve #10240? Are there any others we should add now?

@@ -132,6 +132,7 @@ RUN echo "deb http://deb.debian.org/debian bookworm-backports main" >> /etc/apt/
libpsl5 \
libbrotli1 \
libsasl2-2 \
libsasl2-modules-gssapi-mit \
Copy link
Contributor

Choose a reason for hiding this comment

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

I presume this requires no additional build time dependencies?

@edsiper
Copy link
Member

edsiper commented May 9, 2025

to get this merged we need the change mentioned in #10308 (comment)

@edsiper edsiper added this to the Fluent Bit Next milestone May 9, 2025
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.

Add Kafka library in distroless image
4 participants