-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fluent bit can't refresh token (Auth2) after an hour with output bigquery #7361
Comments
It seems like there's an issue with the JWT signature creation, which linux distribution (and version) is this running in? I'd like to replicate the setup locally if possible. I wonder if it's one of those "openssl 3 vs openssl 1" kind of scenarios so any information you can give us about your setup would be really helpful (ie. did you build fluent-bit yourself? which package did you install?) |
Hi @leonardo-albertovich, to run fluent-bit, I used a ready-made image from docker hub with the tag 'latest', launched in the kubernetes infrastructure on a cluster in GCP declaratively with a manifest. I also have fluent-bit configured to send logs to stackdriver, for both outputs i use the same service account key. In the case of stackdriver, it works fine without failures, and when sending to bigquery, an hour after starting the container, this error occurs. I hope this helps. |
Help? you just solved the issue! those two plugins share a lot of code and it seems that a long time ago when I refactored the crypto layer I missed one line in The call chain in line 149 that starts with The issue is that in Obviously in some cases Btw, the lower level function that actually performs the signature is evp_pkey_sign. Do you want to send a PR with the fix or would you rather have someone from the team do it? |
It's great that we caught this error so quickly. I'm not strong enough to do PR in C. I'd rather leave it to the professionals )) could you do it ? |
Sure, I was just about to ping you. Don't worry, someone from the team will take over. Thanks a lot for taking action, it really makes a difference. |
Bug Report
Describe the bug
Fluent bit can't refresh token (Auth2) after an hour with output bigquery
To Reproduce
Fluent Bit receives the necessary token at startup, but after an hour, when the token expires, it is not updated
Expected behavior
Fluentbit must refresh token on expiration
Your Environment
Fluent Bit v2.1.2
kubernetes
Client Version: v1.25.4
Kustomize Version: v4.5.7
Server Version: v1.25.8-gke.500
The text was updated successfully, but these errors were encountered: