Skip to content

[libbeat] [translate_ldap_attribute] Not block on SSPI negotiation#48444

Merged
marc-gr merged 4 commits intoelastic:mainfrom
marc-gr:fix/ldap-sspi-local
Jan 28, 2026
Merged

[libbeat] [translate_ldap_attribute] Not block on SSPI negotiation#48444
marc-gr merged 4 commits intoelastic:mainfrom
marc-gr:fix/ldap-sspi-local

Conversation

@marc-gr
Copy link
Contributor

@marc-gr marc-gr commented Jan 16, 2026

Proposed commit message

When negotiating credentials through SSPI, if the user is not member of a directory, the call might hang indefinitely. This change prevents the pipeline to wait forever.

Note there is no way to interrupt or cancel the SSPI call, so that goroutine will run forever.

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.
@marc-gr marc-gr requested review from a team as code owners January 16, 2026 13:05
@marc-gr marc-gr added :Processors bugfix Team:Security-Windows Platform Windows Platform Team in Security Solution backport-9.2 Automated backport to the 9.2 branch backport-9.3 Automated backport to the 9.3 branch labels Jan 16, 2026
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jan 16, 2026
@elasticmachine
Copy link
Contributor

Pinging @elastic/sec-windows-platform (Team:Security-Windows Platform)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jan 16, 2026
@github-actions
Copy link
Contributor

🤖 GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)
Copy link
Contributor

@intxgo intxgo left a comment

Choose a reason for hiding this comment

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

perhaps it's worth clearing the timeout error circuit breaker if it turns out the go routine eventually succeeds

@marc-gr marc-gr requested a review from intxgo January 27, 2026 12:20
Copy link
Contributor

@vishaangelova vishaangelova left a comment

Choose a reason for hiding this comment

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

Docs LGTM

@marc-gr marc-gr merged commit 708f325 into elastic:main Jan 28, 2026
245 of 248 checks passed
@marc-gr marc-gr deleted the fix/ldap-sspi-local branch January 28, 2026 09:14
mergify bot pushed a commit that referenced this pull request Jan 28, 2026
…48444)

* Not block on SSPI negotiation

* Implement circuit breaker for SSPI bind attempts to prevent goroutine leaks

* Refactor SSPI bind logic to use atomic boolean for timeout handling and prevent goroutine leaks

* Reset SSPI timeout flag after bind operation to prevent incorrect timeout handling

(cherry picked from commit 708f325)
mergify bot pushed a commit that referenced this pull request Jan 28, 2026
…48444)

* Not block on SSPI negotiation

* Implement circuit breaker for SSPI bind attempts to prevent goroutine leaks

* Refactor SSPI bind logic to use atomic boolean for timeout handling and prevent goroutine leaks

* Reset SSPI timeout flag after bind operation to prevent incorrect timeout handling

(cherry picked from commit 708f325)
marc-gr added a commit that referenced this pull request Jan 28, 2026
…48444) (#48574)

* Not block on SSPI negotiation

* Implement circuit breaker for SSPI bind attempts to prevent goroutine leaks

* Refactor SSPI bind logic to use atomic boolean for timeout handling and prevent goroutine leaks

* Reset SSPI timeout flag after bind operation to prevent incorrect timeout handling

(cherry picked from commit 708f325)

Co-authored-by: Marc Guasch <marc-gr@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-9.2 Automated backport to the 9.2 branch backport-9.3 Automated backport to the 9.3 branch bugfix :Processors Team:Security-Windows Platform Windows Platform Team in Security Solution

6 participants