Skip to content
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

specify logcli authorization header name by flag #6144

Closed

Conversation

domcyrus
Copy link
Contributor

Add logcli flag auth-header to be able to specify authorization header name.

What this PR does / why we need it:
Adds a flag auth-header which defaults to Authorization.

Which issue(s) this PR fixes:
Fixes #6143

Special notes for your reviewer:
Change has no side effects on existing users unless they use the new flag auth-header.

Checklist

  • Documentation added
  • Tests updated
  • Is this an important fix or new feature? Add an entry in the CHANGELOG.md.
  • Changes that require user attention or interaction to upgrade are documented in docs/sources/upgrading/_index.md

@domcyrus domcyrus requested a review from a team as a code owner May 11, 2022 13:29
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Marco Cadetg seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@grafanabot
Copy link
Collaborator

./tools/diff_coverage.sh ../loki-main/test_results.txt test_results.txt ingester,distributor,querier,querier/queryrange,iter,storage,chunkenc,logql,loki

Change in test coverage per package. Green indicates 0 or positive change, red indicates that test coverage for a package fell.

+           ingester	0%
-        distributor	-0.3%
+            querier	0%
+ querier/queryrange	0%
+               iter	0%
+            storage	0%
+           chunkenc	0%
+              logql	0%
+               loki	0%

domcyrus added a commit to domcyrus/loki that referenced this pull request May 14, 2022
@domcyrus domcyrus closed this May 14, 2022
@domcyrus
Copy link
Contributor Author

Closed the PR due to the usage of a wrong commit email which I cannot use for the CLA.

kavirajk pushed a commit that referenced this pull request May 16, 2022
* specify logcli authorization header by flag #6144

* default AuthHeader to Authorization in client lib

* use constant for default auth header

* for consistency use LOKI_AUTH_HEADER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

logcli able to specify authorization header
3 participants