commit | 9da317cf62ec79397017683735f64759a42a0833 | [log] [tgz] |
---|---|---|
author | Nitzan Gur-Furman <nitzan@google.com> | Fri Oct 07 11:19:53 2022 +0200 |
committer | Edwin Kempin <ekempin@google.com> | Fri Nov 11 10:23:11 2022 +0100 |
tree | 57bd537dbcf658435f815322cb5ae59c685b275e | |
parent | 005be88f11c69e79539335093c4027fce2114a7f [diff] |
Disallow suppressing emails on submit if there is a post approval diff If a change is submitted and a post approval diff (called stickyApprovalDiff in the codebase) is present, we now always use Notify=ALL, no matter which notify setting the caller specified. This fixes a security issue where a malicious user could submit code changes without anyone ever seeing them if sticky approvals are configured: 1. upload a new patch set to an already approved change, with suppressing email notifications 2. change is still submittable since the approvals are sticky 3. submit the change, again with suppressing email notifications With this change suppressing email notifications for 3. is no longer possible, so the approvers get an email with the post approval diff and they can take action if it looks unexpected. Change-Id: I3dbb2529a061b6be1947e60a3e0164badb1f57e2 Release-Notes: Suppressing emails on submit is disallowed now if there is a post approval diff
Gerrit is a code review and project management tool for Git based projects.
Gerrit makes reviews easier by showing changes in a side-by-side display, and allowing inline comments to be added by any reviewer.
Gerrit simplifies Git based project maintainership by permitting any authorized user to submit changes to the master Git repository, rather than requiring all approved changes to be merged in by hand by the project maintainer.
For information about how to install and use Gerrit, refer to the documentation.
Our canonical Git repository is located on googlesource.com. There is a mirror of the repository on Github.
Please report bugs on the issue tracker.
Gerrit is the work of hundreds of contributors. We appreciate your help!
Please read the contribution guidelines.
Note that we do not accept Pull Requests via the Github mirror.
The Developer Mailing list is repo-discuss on Google Groups.
Gerrit is provided under the Apache License 2.0.
Install Bazel and run the following:
git clone --recurse-submodules https://gerrit.googlesource.com/gerrit cd gerrit && bazel build release
The instruction how to configure GerritForge/BinTray repositories is here
On Debian/Ubuntu run:
apt-get update && apt-get install gerrit=<version>-<release>
NOTE: release is a counter that starts with 1 and indicates the number of packages that have been released with the same version of the software.
On CentOS/RedHat run:
yum clean all && yum install gerrit-<version>[-<release>]
On Fedora run:
dnf clean all && dnf install gerrit-<version>[-<release>]
Docker images of Gerrit are available on DockerHub
To run a CentOS 8 based Gerrit image:
docker run -p 8080:8080 gerritcodereview/gerrit[:version]-centos8
To run a Ubuntu 20.04 based Gerrit image:
docker run -p 8080:8080 gerritcodereview/gerrit[:version]-ubuntu20
NOTE: release is optional. Last released package of the version is installed if the release number is omitted.