-
Notifications
You must be signed in to change notification settings - Fork 471
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[fluent-bit] Add shareProcessNamespace option #303
base: main
Are you sure you want to change the base?
Conversation
5087016
to
212ab61
Compare
Hi @drehelis, Worth noting that
Could you confirm if that occurs upon config changes? |
Hi @naseemkullah, This only valid if Helm is being re-applied and picks up the new Proposed option is also used in other helm chart I'm using, such as Hashicorp's Vault. Using a |
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.
lgtm
@drehelis have you requested this functionality as a native Fluent Bit capability? Or requested adding the ability to restart Fluent Bit from an API endpoint (or trigger a config reload)? |
Signed-off-by: Danny Rehelis <autogun@gmail.com>
Signed-off-by: Danny Rehelis <autogun@gmail.com>
Co-authored-by: Naseem Ullah <24660299+naseemkullah@users.noreply.github.com> Signed-off-by: Danny Rehelis <autogun@gmail.com>
1812ee6
to
957cd1d
Compare
@stevehipwell There's an open issue from 2017 on this matter here: fluent/fluent-bit#365. |
@stevehipwell Is there anything else holding this back from being merged? |
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.
@drehelis I can't see how it is preferential to loosen the security of Fluent Bit which has host level filesystem access instead of either using the operator which is designed for this or a sidecar with permissions to rollout the DaemonSet when your configuration changes?
@stevehipwell I believe that by the end of the day, security aspect here is end user decision, after all we're shipping this default to Using the operator is totally different approach to this issue and not flexible enough and it doesn't suit everyone need. Many popular charts are adding this setting, just few examples -
Please re-consider |
@drehelis I don't think the pattern you're proposing is something which makes sense to "officially" support given the impact of weakened security, extra logic on all nodes & non-standard audit trail. There are a number of existing solutions to your problem that don't require extra chart complexity and the potential for someone to hold this wrong.
|
@stevehipwell Once again, request adding this is AFTER we've examined all the proposed solutions. In my usecase, config is being generated dynamically. The only valid solution for this is using the operator which just doesn't suit our needs because it mandates to use manifests as input/filter/output configs while my config is native fluent bit structure. Having the possibility to signal the process from a sidecar container is the goto solution. Is adding a disclaimer comment stating the impacted security concern around using this toggle is fair enough solution while shipping this default to false would be enough? |
@drehelis I've also given you a number of solutions which would provide the exact functionality that you're looking for without needing to modify this Helm chart. I'm pushing for the Fluent Helm charts to be made more secure not less secure; if you have an edge case like this and don't want to follow advice on how to achieve your requirements you're more than welcome to either patch the Helm output or create and maintain your own chart. |
Waving the security flag here is just ridicules, however, that's your decision and I have no other means to convince you. Thank you for your time and effort. |
Hallelujah! Hot reload is here. |
@drehelis this is due to go into the chart using the webserver method; I'll link the PR here. |
@stevehipwell apologies for accidentally closing #298.
I need to be able to add configuration to fluent-bit and signal the service to reload itself. As currently fluent-bit does not support dynamically re-reading the configuration.
As I'm required to carry the operation from inside the pod, using extra container is an ideal solution for me, therefore
shareProcessNamespace
becomes handy. I'm able to signal fluent-bit gracefully to shutdown and restart to pickup the new config.I've tried the
fluent-bit operator
but that's just overkill in my case.Executing
rollout restart
is not an option due to permissions.