The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Check that user name in a commit matches the authentication credentials

Damian Vizár
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 28, 2023

Hi all,

when experimenting with our own instance of Bitbucket, we determined that it is possible to

  • clone a repository
  • configure the local clone with an arbitrary user name and email
  • create commits
  • push to Bitbucket server using SSH, such that the author of the commits does not match the user authenticating over SSH.

This could allow a developer to submit commits on behalf of another user without the consent of the latter (we tested this).

Is there any way to check upon a push that all commits being pushed are (co-)authored by the user authenticating to the server?

 

Thanks in advance!

Damian

 

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Damian Vizár
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 2, 2023

We investigated this further and found out that Azure Dev Ops,for example, does log the user credentials used to push commits (see attached).

 

Is this information logged in Bitbucket as well?
Azurecommit.png

TAGS
AUG Leaders

Atlassian Community Events