-
Notifications
You must be signed in to change notification settings - Fork 111
Introduce kafka-oidc feature and enable it by default for restate-server builds #3971
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
base: main
Are you sure you want to change the base?
Conversation
4a5adcc to
65c275e
Compare
cfe2cb0 to
cda039b
Compare
|
|
||
| # todo only enable those env variables when cross compiling | ||
| # Set krb5 cross-compilation env variables (because we cannot run cross compiled tests) | ||
| ENV krb5_cv_attr_constructor_destructor=yes |
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.
could we just set these in the build.rs of libsasl or something?
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.
I can try to upstream them. Until this is done, I would keep them here to avoid introducing yet another fork.
| [features] | ||
| default = ["no-trace-logging"] | ||
| # let's see whether kafka-oidc works on all targets, if not, then remove from default features | ||
| default = ["no-trace-logging", "kafka-oidc"] |
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.
does it work on musl?
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.
First it didn't work. With a few patches to the build script of rdkafka the musl build seems to work. We are relying on https://github.com/restatedev/rust-rdkafka/tree/fix-build-script for this to work.
6f46511 to
333c8da
Compare
…ver builds To use the Kafka ingress with OIDC authentication, we need to enable the gssapi-vendored and curl-static features on our rdkafka dependency. To make things properly work with cross compilation, we need to patch rust-sasl and rdkafka and bump librdkafka to v2.12.1. The latter allows us to compile with curl-static which saves us the hassle to dynamically link against libraries from a different target architecture. Update transitive dependencies to work with cross compilation Bump rdkafka to use librdkafka 2.12.1
333c8da to
83e54de
Compare
To use the Kafka ingress with OIDC authentication, we need to enable the gssapi-vendored
and curl-static features on our rdkafka dependency. To make things properly work with cross
compilation, we need to patch rust-sasl and rdkafka and bump librdkafka to v2.12.1. The latter
allows us to compile with curl-static which saves us the hassle to dynamically link against
libraries from a different target architecture.