Skip to content

feat: support authentication via headers#12994

Merged
shreemaan-abhishek merged 5 commits into
apache:masterfrom
shreemaan-abhishek:chore/ela-logg-auth-headers
Feb 11, 2026
Merged

feat: support authentication via headers#12994
shreemaan-abhishek merged 5 commits into
apache:masterfrom
shreemaan-abhishek:chore/ela-logg-auth-headers

Conversation

@shreemaan-abhishek

@shreemaan-abhishek shreemaan-abhishek commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

Description

Which issue(s) this PR fixes:

Fixes #12169

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

Signed-off-by: Abhishek Choudhary <[email protected]>
Signed-off-by: Abhishek Choudhary <[email protected]>
@shreemaan-abhishek
shreemaan-abhishek marked this pull request as ready for review February 11, 2026 07:13
@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request labels Feb 11, 2026
Comment thread apisix/plugins/elasticsearch-logger.lua Outdated
Comment on lines +66 to +73
header_name = {
type = "string",
minLength = 1
},
header_value = {
type = "string",
minLength = 1
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest using the key-value form directly, as this can support the needs for custom request headers in more scenarios.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for example:

auth:
    username: ..
    password: ..
headers:
    apikey: xx

Signed-off-by: Abhishek Choudhary <[email protected]>
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Feb 11, 2026
nic-6443
nic-6443 previously approved these changes Feb 11, 2026
Comment thread docs/zh/latest/plugins/elasticsearch-logger.md Outdated
@shreemaan-abhishek
shreemaan-abhishek merged commit 0c6ca07 into apache:master Feb 11, 2026
22 checks passed
wistefan pushed a commit to wistefan/apisix that referenced this pull request Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Support auth_header and auth_header_value for elasticsearch-logger plugin

4 participants