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

in_splunk: splunk token validation must be case-insensitive. Backport of #9518 #9519

Open
wants to merge 1 commit into
base: 3.1
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions plugins/in_splunk/splunk_prot.c
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ static int validate_auth_header(struct flb_splunk *ctx, struct mk_http_request *
continue;
}

if (strncmp(splunk_token->header,
if (strncasecmp(splunk_token->header,
authorization,
splunk_token->length) == 0) {
flb_sds_destroy(authorization);
Expand Down Expand Up @@ -992,7 +992,7 @@ static int validate_auth_header_ng(struct flb_splunk *ctx, struct flb_http_reque
return SPLUNK_AUTH_UNAUTHORIZED;
}

if (strncmp(splunk_token->header,
if (strncasecmp(splunk_token->header,
auth_header,
splunk_token->length) == 0) {
return SPLUNK_AUTH_SUCCESS;
Expand Down
Loading