-
Notifications
You must be signed in to change notification settings - Fork 191
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
feat(audit): implement sink for kafka #3204
Conversation
While all the steps are straightforward, the main issue lies with the |
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.
looks great @erka ! one comment, otherwise lgtm
Anything you need from us?
d540f8e
to
e465ecd
Compare
8d41b4f
to
a0ecc19
Compare
I'm a bit stuck with Dagger and Redpanda Schema Registry. Redpanda provides a great development Docker image that includes Kafka with Kraft, Schema Registry, and other related services. When I run it locally with Docker, all my tests pass without issue. However, when I run them with Dagger, it fails with the error There is an issue report func (m *Dagger) SchemaRegistry(ctx context.Context) (string, error) {
k := dag.Container().From("redpandadata/redpanda").
WithExposedPort(9092, dagger.ContainerWithExposedPortOpts{
Description: "kafka endpoint",
}).
WithExposedPort(8081, dagger.ContainerWithExposedPortOpts{
Description: "schema registry",
}).
WithEnvVariable("REDPANDA_ADVERTISE_KAFKA_ADDRESS", "kafka:9092").
WithExec(nil).AsService()
return dag.Container().From("alpine").WithServiceBinding("kafka", k).
// WithExec([]string{"nc", "-v", "kafka", "9092"}).
WithExec([]string{"wget", "http://kafka:8081"}).
Stdout(ctx)
} If anyone can spot where I might be going wrong, I would greatly appreciate any hints. |
cc @levlaz @GeorgeMac for any suggestions. I will take a look this evening myself as well |
Hey @erka can you share how you are running this locally with Docker? What specific commands are you using to start the redpanda container? The code looks good to me - and the proxy is working correctly, you are getting a 404 from I cannot find anywhere in the docs of redpanda that talks about how to configure things with environment variables (i.e. where does Looking at the docker-compose.yml file is the best way to translate to Dagger https://docs.redpanda.com/current/get-started/quick-start/#deploy-redpanda - but the config is very verbose so i'd love to hear how you are running it locally to see if there is a shortcut we can take with a few env vars. Lastly, I don't think it makes any difference but this does not seem to be necessary |
08a42c5
to
3a58d1e
Compare
Thank you @levlaz for the support.
docker run -it -p 9092:9092 -p 8081:8081 --privileged -h kafka redpandadata/redpanda Also I had
I saw it in the workflow of go kafka client. There is another place docker-composer.yml I used Thank you @markphelps @levlaz for help. I could move forward now |
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.
one comment around deleting generated files that don't need to be there (i don't think), otherwise looks great to me! thank you for taking this on @erka !!
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3204 +/- ##
===========================================
- Coverage 70.78% 48.37% -22.41%
===========================================
Files 91 162 +71
Lines 8729 13105 +4376
===========================================
+ Hits 6179 6340 +161
- Misses 2165 6297 +4132
- Partials 385 468 +83 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Roman Dmytrenko <rdmytrenko@gmail.com>
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.
Amazing 🤩. Thank you for all the hard work on this
related #3146
event.proto
and data type forpayload