Skip to content

Fix splunkhec receiver auth registration #3963

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

Merged
merged 1 commit into from
Jul 8, 2025
Merged

Conversation

dehaansa
Copy link
Contributor

@dehaansa dehaansa commented Jul 8, 2025

PR Description

The splunkhec receiver would log the following error when attempting to use authentication as the extensions were not recognized in the internal host interface implementation.

ts=... level=error msg="failed to start scheduled component" component_path=/ component_id=otelcol.receiver.splunkhec.splunk_hec err="failed to resolve authenticator \"bearertokenauth/otelcol_auth_bearer_creds_server\": authenticator not found"

Notes to the Reviewer

A simple config like the following will show the error on main, and no error on this branch.

otelcol.auth.bearer "creds" {
	scheme = "Splunk"
	token  = "test_token"
}

otelcol.receiver.splunkhec "splunk_hec" {
	auth = otelcol.auth.bearer.creds.handler

	output {
		logs    = [otelcol.exporter.debug.default.input]
	}
}

otelcol.exporter.debug "default" {}

PR Checklist

  • CHANGELOG.md updated

@dehaansa dehaansa requested a review from a team as a code owner July 8, 2025 17:53
@dehaansa dehaansa merged commit 67546ef into main Jul 8, 2025
45 of 47 checks passed
@dehaansa dehaansa deleted the fix-splunkhec-auth branch July 8, 2025 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants