-
Notifications
You must be signed in to change notification settings - Fork 253
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
Allow for sourcing of Fluent Bit Kafka Rdkafka values from secrets #1152
Comments
Hi is this issue still open? I would like to try it out |
That will be great! @TheJadeLion2004 |
Hi, so I've run into a roadblock. i cannot import plugins since plugins imports params. could you help me with how to make InsertMapValmap either work via an interface/ how to manage the circular dependency? |
@benjaminhuo , I have raised a PR with the changes that I have made. Overall most of the changes were to avoid circular dependencies. However, the code is not compiling, and raises an error related to the DeepCopy function. Would appreciate your help on this. |
@wenchajun @cw-Guo Can you help on this? |
the compile issue is there is no generated codes for to add it, you need to add the following line before the object.
|
Noticed fluentbit has already implemented an interface to do that.
@TheJadeLion2004 you can refer to the following example https://github.com/fluent/fluent-operator/blob/master/apis/fluentbit/v1alpha2/plugins/output/datadog_types.go#L24 I would suggest you to follow the above example and use a new field instead of changing the |
@TheJadeLion2004 you can refer to this MR #1338 |
Is your feature request related to a problem? Please describe.
Currently, the
Kafka
struct declares theRdkafka
map asmap[string]string
, which means that values must be stored in plaintext in the CRD. However, when connecting to a Kafka broker usingSASL_SSL
(i.e. when there is a username/password corresponding to the API key/secret, respectively), then it would be better to not store those values in plaintext.Describe the solution you'd like
Modify the
Rdkafka
map to allow for values to be eitherstring
or*plugins.Secret
. That way, users can designate a secret ref for particular values (such assasl.username
andsasl.password
), so they don't need to be provided in plaintext at the CRD level.Additional context
This is useful in multi-tenant scenarios.
The text was updated successfully, but these errors were encountered: