validation username in commits

Yuliy Moskalskiy
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 9, 2018

Hi

We are using Atlassian Bitbucket v5.7.0.

Is there a ability to restrict commits with non-valid usernames?

more details:

We are using authentication with ldap and it works well but any user is able to specify any likes him Author name and as result we is not able to identify who did those commit so we need strict compliance Author of commit and bitbucket user.

 

1 answer

0 votes
Michael Heemskerk
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 9, 2018

Bitbucket Server has a bundled 'Verify Committer' hook that blocks any push that contains commits with a Committer that does not match the user that pushed the commits. It matches the user with the committer on the email address.

You can enable the hook in Repository > Settings or Project > Settings. See the documentation for more info.

If you need strict compliance, you could also consider using signing all commits with GPG keys and enabling the 'Verify Commit Signature' hook to reject any push with unsigned commits or commits signed with an unknown/invalid/expired key.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events