Authentication failures in atlassian-stash-audit.log for every git operation, but users not seeing any failures.

In atlassian-stash-audit.log I am seeing lots of AuthenticationFailureEvent

It seems to be happening for every git operation, but the git operations work fine with no complaints from the client hosts. 

This is what an example looks like

10.230.10.93,127.0.0.1 | AuthenticationFailureEvent | neil.peterson | 1416264597235 | neil.peterson | {"authentication-method":"basic","error":"Invalid username or password."} | @1UUIVUBx1009x10316398x0 | -

This event does not seem to be documented

https://confluence.atlassian.com/dosearchsite.action?where=STASH&spaceSearch=true&queryString=AuthenticationFailureEvent

  • Why is this event being generated? / Why do users not see a failure?
  • How can I prevent this as a false positive or tell the difference between this and real authentication failures?

3 answers

1 accepted

This widget could not be displayed.

Shortly after posting this I found my own answer, but am leaving the post up for posterity.

The event is not explicitly listed here, but it should be. Nonetheless, this page provides some clues.

UserAuthenticationFailedInvalidAuthenticationEvent

Occurs whenever a user fails to authenticate.

Note that this can occur frequently in Stash whenever a command line CLI is used as the initial URL provided to Stash contains a username but no password, which is rejected by Crowd.

  • First, that should say Stash, not Crowd, yes?
  • Second, removing the user@ from the URL prevents this error from being generated.

So I guess my real question now is: Can I change that URL drop down to not include usernames?

Or is there some other way to stem the FLOOD of AuthenticationFailureEvent errors that we are seeing?

This widget could not be displayed.

2015 and Stash still does the extact same thing, logging boat-loads of fail positives for the normal HTTP 401 behaviour. Renders the Stash audit logs basically useless.

This widget could not be displayed.

We are seeing the same issue for Atlassian Bitbucket v4.9.1 as of 2017-03-02.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,315 views 8 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you