Skip to content

heartbeat: report the user name when the BEAT_SETUID_AS lookup fails - #54957

Open
mcapell wants to merge 2 commits into
elastic:mainfrom
mcapell:fix/heartbeat-setuid-lookup-error-message
Open

mcapell wants to merge 2 commits into
elastic:mainfrom
mcapell:fix/heartbeat-setuid-lookup-error-message

Conversation

@mcapell

@mcapell mcapell commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Proposed commit message

The error formatted the nil *user.User returned by the failed lookup
instead of the requested name, so it printed
could not lookup '%!s(*user.User=<nil>)'.

Co-Authored-By: Claude Sonnet 5.5

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works. Where relevant, I have used the stresstest.sh script to run them under stress conditions and race detector to verify their stability.
  • I have added an entry in ./changelog/fragments using the changelog tool.

Disruptive User Impact

How to test this PR locally

Related issues

Use cases

Screenshots

Logs

mcapell and others added 2 commits November 26, 2026 17:50
The error formatted the nil *user.User returned by the failed lookup
instead of the requested name, so it printed
could not lookup '%!s(*user.User=<nil>)'.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Cover setNodeProcAttr with a user that does not exist: the error must
name the requested user and keep the lookup error wrapped.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@mcapell mcapell added backport-active-all Automated backport with mergify to all the active branches Team:obs-signals-logs-team labels Nov 26, 2026
@botelastic botelastic Bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Nov 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🤖 GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)
  • /test : Run the Buildkite pipeline.

@mcapell
mcapell marked this pull request as ready for review November 26, 2026 18:08
@mcapell
mcapell requested a review from emilioalvap November 26, 2026 18:09
@mergify

mergify Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue). If it does not match the queue conditions yet, it enters the queue once it does.

  • Queue this pull request once it meets the queue conditions

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-active-all Automated backport with mergify to all the active branches Team:obs-signals-logs-team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant