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

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events