-
Notifications
You must be signed in to change notification settings - Fork 1.9k
out_stackdriver: Make metadata url configurable #2944
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
Conversation
|
Example Config File: [SERVICE] [INPUT] [OUTPUT] |
|
Debug Output (expected to fail as I am not running a metadata server locally}: fluent-bit -c ~/fluent-bit/fluent-bit.conf
[2021/01/13 20:38:01] [ info] Configuration: |
|
Documentation: fluent/fluent-bit-docs#444 |
This comment has been minimized.
This comment has been minimized.
|
Looking at the CI/Appveyor failures, I don't see anything that would indicate the errors are from my changes specifically, can you all have a look? |
|
Compiled and ran on a GCE instance, no valgrind errors. $ valgrind /usr/local/bin/fluent-bit -c /usr/local/etc/fluent-bit/fluent-bit.conf
[2021/01/20 22:33:16] [ info] [engine] started (pid=234435) |
|
@edsiper Can I get this PR looked at? It is ready. |
|
@hsmatulisgoogle @igorpeshansky can you take a look at this PR from a logic/usability perspective ? |
igorpeshansky
left a comment
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 naming comment, and a few formatting ones.
|
Done fixing initial round of comments and updated documentation. |
|
if @hsmatulisgoogle @igorpeshansky approve this we can merge it |
|
I am not sure why its saying I have incorrectly signed off as I ran git commit -sa like every time before. |
|
I am going to roll that back, somehow the merge I did brought a bunch of unnecessary things in. |
78468f8 to
84d643a
Compare
|
I had to revert and then merging back in was... a problem. Fixed that with a force push, but DCO is still mad at my vscode deletion push, even though it has signoff. |
Allows users to configure the metadata server url via config file and environment variable. If neither are supplied it will fall-back to http://metadata.google.internal. Evaluation order: 1. Config File 2. Environment Variable 3. Internally set fallback variable Evaluating the config file before the environment variable is a design decision in relation to security as it is easier for a bad actor to set a environment variable than manipulate the config file. Signed-off-by: Joey DeStefanis <jdestefanis@google.com> [out_stackdriver] Fix blank lines and naming. Signed-off-by: Joey DeStefanis <jdestefanis@google.com> [out_stackdriver] Delete vscode file. Signed-off-by: Joey DeStefanis <jdestefanis@google.com> Revert "[out_stackdriver] Delete vscode file." This reverts commit 7a6dcd2. out_stackdriver: Make metadata url configurable Allows users to configure the metadata server url via config file and environment variable. If neither are supplied it will fall-back to http://metadata.google.internal. Evaluation order: 1. Config File 2. Environment Variable 3. Internally set fallback variable Evaluating the config file before the environment variable is a design decision in relation to security as it is easier for a bad actor to set a environment variable than manipulate the config file. Signed-off-by: Joey DeStefanis <jdestefanis@google.com> [out_stackdriver] Fix blank lines and naming. Signed-off-by: Joey DeStefanis <jdestefanis@google.com> out_stackdriver: Make metadata url configurable Allows users to configure the metadata server url via config file and environment variable. If neither are supplied it will fall-back to http://metadata.google.internal. Evaluation order: 1. Config File 2. Environment Variable 3. Internally set fallback variable Evaluating the config file before the environment variable is a design decision in relation to security as it is easier for a bad actor to set a environment variable than manipulate the config file. Signed-off-by: Joey DeStefanis <jdestefanis@google.com> [out_stackdriver] Fix blank lines and naming. Signed-off-by: Joey DeStefanis <jdestefanis@google.com> [out_stackdriver] Accidentally un-ignored vscode file. Signed-off-by: Joey DeStefanis <jdestefanis@google.com> [out_stackdriver] remove conflict markers. It appears that conflict markers weren't removed fully before the save and push. Signed-off-by: Joey DeStefanis <jdestefanis@google.com>
3e7e586 to
b8954a8
Compare
|
thanks everyone! |
Allows users to configure the metadata server url via config file
and environment variable. If neither are supplied it will fall-back to
http://metadata.google.internal.
Evaluation order:
Evaluating the config file before the environment variable is a
design decision in relation to security as it is easier for a bad
actor to set a environment variable than manipulate the config file.
Signed-off-by: Joey DeStefanis jdestefanis@google.com
Enter
[N/A]in the box, if an item is not applicable to your change.Testing
Before we can approve your change; please submit the following in a comment:
Documentation
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.