overview.rst 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. Overview
  2. ========
  3. Pagure is split over multiple components, each having their purpose and all
  4. but one (the core application) being optional.
  5. These components are:
  6. .. contents::
  7. Before going into the overall picture, one should realize that most of the
  8. components listed above are optional.
  9. Here is a diagram representing pagure without all the optionals components:
  10. .. image:: _static/overview_simple.png
  11. :target: _static/overview_simple.png
  12. And here is a diagram of all the components together:
  13. .. image:: _static/overview.png
  14. :target: _static/overview.png
  15. Pagure core application
  16. -----------------------
  17. The core application is the flask application interacting with gitolite to
  18. provide a web UI to the git repositories as well as tickets and pull-requests.
  19. This is the main application for the forge.
  20. Gitolite
  21. --------
  22. Currently pagure uses `gitolite <http://gitolite.com/gitolite/index.html>`_
  23. to grant or deny `ssh <https://en.wikipedia.org/wiki/Secure_Shell>`_ access
  24. to the git repositories, in other words to grant or deny read and/or write
  25. access to the git repositories.
  26. Pagure supports cloning over both ssh and http, but writing can only be done
  27. via ssh, through gitolite.
  28. Pagure doc server
  29. -----------------
  30. While integrated into the main application at first, it has been split out
  31. for security concern, displaying information directly provided by the user
  32. without a clear/safe way of filtering for un-safe script or hacks is a
  33. security hole.
  34. For this reason we also strongly encourage anyone wanting to deploy their
  35. own instance of pagure with the doc server, to run this application on a
  36. completely different domain name (not just a sub-domain) in order to reduce
  37. the cross-site forgery risks.
  38. Pagure can be run just fine without the doc server, all you need to do is to
  39. **not** define the variable ``DOC_APP_URL`` in the configuration file.
  40. Pagure milter
  41. -------------
  42. The milter is a script, receiving an email as input and performing an action
  43. with it.
  44. In the case of pagure, the milter is used to allow replying on a comment
  45. of a ticket or a pull-request by directly replying to the notification sent.
  46. No need to go to the page anymore to reply to a comment someone made.
  47. The milter integrates with a MTA such as postfix or sendmail that you will
  48. have running and have access to in order to change its configuration.
  49. Pagure EventSource Server
  50. -------------------------
  51. Eventsource or Server Sent Events are messages sent from a server to a browser.
  52. For pagure this technology is used to allow live-refreshing of a page when
  53. someone is viewing it. For example, while you are reading a ticket if someone
  54. comments on it, the comment will automatically show up on the page without
  55. the need for you to reload the entire page.
  56. The flow is: the main pagure server does an action, sends a message over
  57. redis, the eventsource server picks it up and send it to the browsers waiting
  58. for it, then javascript code is executed to refresh the page based on the
  59. information received.
  60. Pagure web-hook Server
  61. -------------------------
  62. Sends notifications to third party services using POST http requests.
  63. This is the second notifications system in pagure with `fedmsg <http://fedmsg.com/>`_.
  64. These notifications are running on their own service to prevent blocking the
  65. main web application in case the third part service is timing-out or just
  66. being slow.
  67. The flow is: the main pagure server does an action, sends a message over
  68. redis, the web-hook server picks it up, build the query and performs the
  69. POST request to the specified URLs.