Force Bitbucket to sign commits with authentication user, so cant pretend to be someone else?

When you do a commit within Git to Bitbucket, it uses your user.name and user.email settings to stamp who authored the commit. We had a client ask a question about is there a way within Bitbucket to also see the authenticated user of who made the commit, so they can't pretend to be someone else?

For example, if normally my user.name is "John Doe" and my user.email setting is "john@doe.com", I could change both to be "Jane Doe" and email "jane@doe.com". When I then do a commit, it will show Jane as the author but where can I see the authenticated bitbucket user info also tied to that commit to verify it was really Jane and not Joe? I know its not under the audit log and it seems like the recent activity shows it, but only for the last few commits. Any way to see for all the commits or on the commit screen for the repo?

 Thank you

1 answer

1 vote
Daniel Wester Community Champion May 11, 2016

Not really. It's important to note though that you're talking about core git functionality- not Bitbucket functionality.  

 

That said - take a look at https://git-scm.com/book/en/v2/Git-Tools-Signing-Your-Work that's probably what you're looking for. 

Thanks Daniel for your reply. Is there a plugin or an easy way to extend Bitbucket for the cloud to do the GPG cert checking for me rather then having to do it by hand for every checkin in the log?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 06, 2018 in Bitbucket

Do you use Bitbucket Cloud and Jira Cloud? If so, let us know!

Hi Community, I'm Julia and I'm on the Jira Software Cloud marketing team!  We're looking for companies or teams using Bitbucket Cloud and Jira Software Cloud. If your team fits the t...

91 views 3 3
Join discussion

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