Skip to content

Commit

Permalink
Merge pull request #227 from diox/security-docs
Browse files Browse the repository at this point in the history
Document how to push security fixes
  • Loading branch information
diox committed Sep 28, 2016
2 parents 8fda4f8 + 275e641 commit 5fa97db
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,4 +303,6 @@
# For some unknown reason, TravisCI gets a 404 for calendar URLs.
# They require a login so maybe that's why.
'https://calendar.google.com/calendar/embed*',
# This is a private URL.
'https://github.com/mozilla/addons-server-security',
]
35 changes: 35 additions & 0 deletions docs/server/push-duty.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,41 @@ This way we can ensure that:
Making multiple releases of a package during a weekly milestone is totally
fine since this helps with testing smaller sets of changes.

Security Fixes
++++++++++++++

Security fixes for addons-server live on a separate private repository:

* `addons-server-security <https://github.com/mozilla/addons-server-security>`_

To make merging easier, when making a pull request against this repository, the
remote branch should not be published to one's fork but to the repository
itself. Once the PR has been reviewed, it should *not* be merged right away.
Instead, merging to master is part of push duty and happens right before
tagging::

$ git checkout master
$ git pull
$ git fetch security
$ git merge security/<branch-name>
$ git diff upstream/master
$ git push upstream master
$ git push security master

.. note:: ``mozilla/addons-server-security`` ``master`` branch should never be
pushed to directly without pushing to ``mozilla/addons-server`` ``master``
first - the two should always stay in sync.

This means the merge or edit buttons in github web UI must never be used in
that repository.

.. note:: Here we are using "upstream" and "security" remotes, which point out
to ``mozilla/addons-server`` and ``mozilla/addons-server``, respectively. If
your configuration is different you can substitute "upstream" and "security"
for whatever you call the ``mozilla/addons-server`` and
``mozilla/addons-server-security`` repositories remotes.


Tag the repos
+++++++++++++

Expand Down

0 comments on commit 5fa97db

Please sign in to comment.