-
Suggestion
-
Resolution: Answered
-
None
Currently Smart Commits parses every commit message and executes any actions as the author of that commit. This means a malicious person given access to your codebase can act as another user for Smart Commit actions, and instances that don't have this level of trust in the people writing their code can't use Smart Commits.
This suggestion is to introduce an option that will only execute actions on commits where the author's email address matches the email address of the Bitbucket Server user doing the push.
This means a pusher can't maliciously attribute actions to others, but also means that if a pusher is the first person to push someone else's commits to Bitbucket Server, those commits will never have their actions run.
Workaround
Bitbucket Server 5.0 includes the "Verify committer" repository hook that ensures all new commits are authored by the person pushing them. If you enable this hook, the pusher will not be able to perform actions on behalf of other users by faking commit data.
- is related to
-
BSERV-2642 Push Traceability
- Closed
- relates to
-
BSERV-8914 Smart Commits - only run actions from commits authored by the pusher
- Closed
- mentioned in
-
Page Failed to load
[BSERV-8875] Smart Commits - only run actions from commits authored by the pusher
Workflow | Original: JAC Suggestion Workflow [ 3394927 ] | New: JAC Suggestion Workflow 3 [ 3623439 ] |
Status | Original: RESOLVED [ 5 ] | New: Closed [ 6 ] |
Workflow | Original: BSERV Suggestions Workflow [ 2683550 ] | New: JAC Suggestion Workflow [ 3394927 ] |
Workflow | Original: Stash Workflow [ 1422571 ] | New: BSERV Suggestions Workflow [ 2683550 ] |
Status | Original: Closed [ 6 ] | New: Resolved [ 5 ] |
Resolution | New: Answered [ 9 ] | |
Status | Original: Open [ 1 ] | New: Closed [ 6 ] |
Description |
Original:
Currently Smart Commits parses every commit message and executes any actions as the author of that commit. This means a malicious person given access to your codebase can act as another user for Smart Commit actions, and instances that don't have this level of trust in the people writing their code can't use Smart Commits.
This suggestion is to introduce an option that will only execute actions on commits where the author's email address matches the email address of the Bitbucket Server user doing the push. This means a pusher can't maliciously attribute actions to others, but also means that if a pusher is the first person to push someone else's commits to Bitbucket Server, those commits will never have their actions run. h2. Workaround Bitbucket Server 5.0 includes a repository hook that requires all pushed commits come |
New:
Currently Smart Commits parses every commit message and executes any actions as the author of that commit. This means a malicious person given access to your codebase can act as another user for Smart Commit actions, and instances that don't have this level of trust in the people writing their code can't use Smart Commits.
This suggestion is to introduce an option that will only execute actions on commits where the author's email address matches the email address of the Bitbucket Server user doing the push. This means a pusher can't maliciously attribute actions to others, but also means that if a pusher is the first person to push someone else's commits to Bitbucket Server, those commits will never have their actions run. h2. Workaround Bitbucket Server 5.0 includes the ["Verify committer" repository hook|https://confluence.atlassian.com/display/BitbucketServer/Bitbucket+Server+5.0+release+notes#BitbucketServer5.0releasenotes-Committerverification] that ensures all new commits are authored by the person pushing them. If you enable this hook, the pusher will not be able to perform actions on behalf of other users by faking commit data. |
Description |
Original:
Currently Smart Commits parses every commit message and executes any actions as the author of that commit. This means a malicious person given access to your codebase can act as another user for Smart Commit actions, and instances that don't have this level of trust in the people writing their code can't use Smart Commits.
This suggestion is to introduce an option that will only execute actions on commits where the author's email address matches the email address of the Bitbucket Server user doing the push. This means a pusher can't maliciously attribute actions to others, but also means that if a pusher is the first person to push someone else's commits to Bitbucket Server, those commits will never have their actions run. |
New:
Currently Smart Commits parses every commit message and executes any actions as the author of that commit. This means a malicious person given access to your codebase can act as another user for Smart Commit actions, and instances that don't have this level of trust in the people writing their code can't use Smart Commits.
This suggestion is to introduce an option that will only execute actions on commits where the author's email address matches the email address of the Bitbucket Server user doing the push. This means a pusher can't maliciously attribute actions to others, but also means that if a pusher is the first person to push someone else's commits to Bitbucket Server, those commits will never have their actions run. h2. Workaround Bitbucket Server 5.0 includes a repository hook that requires all pushed commits come |
Remote Link | New: This issue links to "Page (Extranet)" [ 279462 ] |
Assignee | Original: Adam Ahmed [ aahmed ] |
Summary | Original: Smart Commits allow a user without permissions to a JIRA ticket to take action on that ticket as another user | New: Smart Commits - only run actions from commits authored by the pusher |
Given the currently available workaround, it's unlikely we'd also make changes to only apply smart commits when authored by the same person that's pushing.
Please comment here if there are significant issues arising despite the workaround and we'll reconsider.