Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Adding more detail and rework

Niels Lindenthal4750fc13708d
diff --git a/docs/development/data-flow/README.md b/docs/development/data-flow/README.md
index 6643758088e..9dc8f57964e 100644
--- a/docs/development/data-flow/README.md
+++ b/docs/development/data-flow/README.md
@@ -1,4 +1,105 @@
-# Data flow and usage
+# Data privacy information
+
+## Scope of data processing
+
+### Registration of a user account
+
+To use our SaaS platform, the registration of a user account is required. In this process, we collect and process the following personal data:
+
+- Name
+- Username
+- Email address
+- Avatar
+- Notification settings
+- Email reminder settings
+- Hourly rate history
+- Display settings: High contrast mode, standard mode, dark mode, and custom themes.
+- Project roles
+- Global roles
+- Time zones
+- Group memberships
+- Password (encrypted)
+- Display language
+- Standard weblog data (IP address of calling computer, time of call, version of operating system and browser used)
+
+- Telephone number for sending one-time passwords via SMS,
+- OATH secret code (e.g. for the 2FA app FreeOTP).
+
+### Using OpenProject
+
+Depending on the individual use the following personal data is processed:
+
+- Comments in work packages, meetings, wiki pages and project news
+ - Change history
+ - Persons named in comments
+
+- Work packages
+ - Change history
+ - Persons named in attributes and text fields
+
+- Project plans
+ - Change history
+ - Persons named in schedules
+
+- Work package lists
+ - Change history
+ - Visibility settings
+ - Filter settings
+ - Sort settings
+ - Display settings
+ - Persons named in work package lists
+
+- Wiki pages
+ - Modification history
+ - Persons named in wiki pages
+- Time tracking
+ - Change history
+ - Persons named in time entries
+
+- Meeting agendas and minutes
+ - Change history
+ - Invitees
+ - Participants
+ - Persons named in agenda items
+
+- Team planner
+ - Change history
+ - Persons named in team planners
+ - Assignments of work packages to persons
+
+- Boards
+ - Change history
+ - Persons named in the boards
+ - Assignments of work packages to persons
+- calendar
+ - Change history
+ - Persons named in the calendars
+ - Assignments of work packages to persons
+- Project news
+ - Change history
+ - Persons named in project news
+
+- Project status information
+ - Change history
+ - Persons named in project status information
+
+- Project attributes
+ - Change history
+ - Persons named in project attributes
+
+- File attachments
+ - Change history
+ - Persons named in file attachments incl. file attributes
+
+- Project overviews
+ - Change history
+ - Persons named in project overviews
+
+### Logging
+
+Technically, every use of a browser-based SaaS application is accompanied by a usage log in the form of a so-called web log, which focuses on the IP address of the calling computer and the time of the page call, supplemented by information on the version of the operating system and browser used.
+
+## System overview
Regardless of the type of installation of OpenProject, the following diagram provides a high-level overview of through which systems data related to OpenProject is flowing.
@@ -6,49 +107,63 @@ Regardless of the type of installation of OpenProject, the following diagram pro
%%{init: {'theme':'neutral'}}%%
flowchart TD
- A[Client Browser] -->|"HTTP(s) requests"| B(Load Balancer / Proxy)
- A1[API or Native clients] -->|"HTTP(s) requests"| B(Load Balancer / Proxy)
- A2[SVN or Git clients] -->|"HTTP(s) requests"| B(Load Balancer / Proxy)
- B -->|Proxy| openproject
-
- subgraph openproject[OpenProject]
+ browser[Client Browser] -->|"HTTP(s) requests"| loadbalancer(Load Balancer / Proxy)
+ A1[API or Native Clients] -->|"HTTP(s) requests"| loadbalancer
+ A2[SVN or Git Clients] -->|"HTTP(s) requests"| loadbalancer
+ loadbalancer -->|Proxy| openproject
+ subgraph openproject[OpenProject Core Application]
C[Puma app server]
D[Background worker]
end
- subgraph integrations[External integrations]
- O[Other integrations]
+ subgraph integrations[External Integrations]
+ direction TB
+ idp[Identity Provider]
N[Nextcloud]
- end
-
- subgraph services[Services]
+ GitHub
+ O[Other integrations]
+
+ sms[SMS Gateways]
+
+end
+
+ subgraph services[Internal Services]
+ direction TB
M[memcached]
P[PostgreSQL]
S[Object storage or NFS]
+ email[Email Gateways]
end
openproject <--> services
openproject --> integrations
- B <--> integrations
+ loadbalancer <--> integrations
+
+ subgraph localclients[Local Clients]
+ direction TB
+ browser
+ A1
+ A2
+end
+
+
+
```
-As a web application, the primary data flow is between the Client browser (or attached API clients) through an external proxying web server (this might be a load balancer or proxying server). We're assuming it is the one responsible for terminating TLS connections for the course of this document - although encrypted connections between Load balancer and Puma server are possible. In case of packaged or kubernetes installations, this proxying server might be part of the OpenProject stack (e.g., an Apache2 packaged installation server or nginx ingress).
+As a web application, the primary data flow is between the Client Browser (or attached API clients) through an external proxying web server (this might be a load balancer or proxying server). We're assuming it is the one responsible for terminating TLS connections for the course of this document - although encrypted connections between Load balancer and Puma server are possible. In case of packaged or Kubernetes installations, this proxying server might be part of the OpenProject stack (e.g., an Apache2 packaged installation server or nginx ingress).
The external web server acts as a proxy/reverse-proxy for the OpenProject Puma application server, relaying requests for it to handle and respond. In the course of the request, access to external services such as the PostgreSQL database, a caching server, or attached storages might be performed. In case of S3-compatible object storage set ups, OpenProject performs calls to the object storage to put or request files from it. Likewise, for network-attached storages linked into the application, underlying network requests are performed. These are out of scope for this evaluation, as they are provided and maintained by the operator of the system.
In the course of using the application, background tasks are enqueued in the database such as outgoing emails, cleanup tasks, or notification processing. These tasks are performed in a separate process, the background worker queue. This process accesses the same services as the application server process to access or modify data. It might connect to external integrations such as a Nextcloud instance to set up file sharings depending on actions performed by the users.
-## Exemplary request flow
+**Exemplary request flow**
- **User request**: An end-user sends an HTTPS request to the load balancer or proxying server.
-
- **Load balancer**: The external load balancer or proxying server receives the request, terminates TLS, and forwards the HTTP request to the Puma application server.
-
- **Puma server**: Processes the request and invokes the appropriate Rails middlewares and controller.
-
- **Rails application**:
- Authenticates the user according to the mechanisms outlined in the [secure coding guidelines](../concepts/secure-coding)
@@ -59,12 +174,237 @@ In the course of using the application, background tasks are enqueued in the dat
- Calls or interacts with external services for requests, such as retrieving files or attachments from object storage
- Renders the appropriate views
-
- **Response**: Sends the HTTP response back through the Puma server and load balancer to the end-user.
-
- **Background worker:** Operate on periodical background data, or perform actions requested by the web request of user (sending emails, exporting data, communicating with external services)
-## Schema information
+## Data flow of personal data
+
+### Login using an identity provider
+
+#### Overview
+
+```mermaid
+%%{init: {'theme':'neutral'}}%%
+flowchart LR
+ Browser <-->|idp-01| IDP
+ IDP <-->|idp-02| openproject[OpenProject]
+ Browser <-->|idp-03| openproject
+
+ subgraph IDP[Identity Provider]
+ direction LR
+ ssoprovider[SSO Provider]
+ LDAP
+
+ end
+
+ subgraph openproject[OpenProject]
+ direction LR
+ sso[Single Sign On]
+ ldapauthentication[LDAP Authentication]
+ ldapgroupsync[LDAP Group Sync]
+
+ end
+
+
+
+```
+
+#### Purpose
+
+* Centralized identity and access management
+* Single sign on
+* Single sign out
+* Syncing LDAP groups with OpenProject groups
+
+#### Security measures
+
+* `idp-01` https transport encryption
+* `idp-02` https transport encryption
+* `idp-03` https transport encryption
+
+### Email
+
+#### Overview
+
+
+```mermaid
+%%{init: {'theme':'neutral'}}%%
+
+flowchart LR
+ A[User's Email Client] <-->|email-01| B[User's Email Hoster]
+ B <-->|email-02| C[Email Gateway]
+ C <-->|email-03| D[Email Notification Service]
+
+
+ subgraph localclient[Local Client]
+ direction TB
+ A
+ end
+
+ subgraph internal[Internal services]
+ direction TB
+ C
+
+ end
+
+ subgraph external[External services]
+ direction TB
+ A
+ B
+ end
+
+ subgraph OpenProject
+ direction TB
+ D
+ end
+
+
+
+
+```
+
+#### Purpose
+
+* Create a new work package by sending an email to configured email adress.
+* Adding a comment to an existing work package by answering to an email notification.
+
+#### Security measures
+
+* `email-01` SSL/TLS transport encryption (not controlled by the OpenProject system)
+* `email-02` SSL/TLS transport encryption (not controlled by the OpenProject system)
+* `email-03` SSL/TLS transport encryption (encryption can be activated in the email settings in the OpenProject Administration)
+* **Note**: OpenProject does not support end-to-end encryption using GPG or S/MIME.
+
+### Calendar
+
+#### Overview
+
+```mermaid
+%%{init: {'theme':'neutral'}}%%
+flowchart LR
+ opicalapi[OpenProject's iCal API] --> |cal-01|B
+ B[Calendar Web Application] -->|cal-03| localcalendarapp[Local Calendar Application]
+ opicalapi -->|cal-02| localcalendarapp
+
+ subgraph localclient[Local Clients]
+ direction TB
+ localcalendarapp
+ end
+
+
+ subgraph external[External services]
+ direction TB
+ B
+ end
+
+ subgraph OpenProject
+ direction TB
+ projectcalendar[Project Calendar] --> opicalapi
+ end
+```
+
+#### Purpose
+
+* Users can import project calendars into their calendar applications using the iCal format.
+
+#### Security measures
+
+* `cal-01` https transport encryption
+* `cal-02` https transport encryption (not controlled by the OpenProject system)
+* `cal-03` https transport encryption (not controlled by the OpenProject system)
+
+### Nextcloud
+
+#### Overview
+
+```mermaid
+%%{init: {'theme':'neutral'}}%%
+flowchart LR
+ Browser <--> |nc-01| openproject
+ Browser <-->|nc-02| nextcloud
+ nextclouddesktopclient[Nextcloud Desktop Client] -->|nc-03| nextcloudapi
+ appopenprojectintegration <-->|nc-04| openprojectapi
+
+ subgraph local[Local Clients]
+ Browser
+ nextclouddesktopclient
+ end
+
+subgraph openproject[OpenProject]
+
+ opnextcloudintegrattion[Nextcloud Integration]
+ openprojectapi[API]
+ end
+
+ subgraph nextcloud[Nextcloud]
+ groupfolder[App Group Folder]
+ appopenprojectintegration[App OpenProject Integration]
+ nextcloudapi[API]
+ end
+
+```
+
+#### Reason for the data processing
+
+* Users can link files stored in Nextcloud with work package in OpenProject.
+* Project folders in Nextcloud can be managed in OpenProject (create, delete, update, user permissions).
+
+#### Security measures
+
+* `nc-01` https transport encryption
+* `nc-02` https transport encryption
+* `nc-03` https transport encryption
+* `nc-04` https transport encryption
+
+### GitHub
+
+#### Overview
+
+```mermaid
+%%{init: {'theme':'neutral'}}%%
+flowchart LR
+ githubdesktopclient -->|gh-01| githubapi
+ githubcli <-->|gh-02| githubapi
+ gitclient <-->|gh-03| githubapi
+ githubapi <-->|gh-04| opgithubintegration
+ githubwebhooks -->|gh-05| opgithubintegration
+
+ subgraph GitHub
+ direction TB
+ githubapi[API]
+ githubwebhooks[Webhooks]
+
+ end
+
+ subgraph localclients[Local Clients]
+ direction TB
+ githubdesktopclient[GitHub Desktop Client]
+ githubcli[GitHub CLI]
+ gitclient[Git Client]
+ end
+
+ subgraph openproject[OpenProject]
+ direction TB
+ opgithubintegration[Github Integration] --- workpackagesmodule[Work Packages Module]
+ end
+
+
+```
+
+#### Purpose
+
+- Connect pull requests in GitHub with work packages in OpenProject.
+- Show the status of pull requests in related work packages.
+
+#### Security measure
+
+* `gh-01` https transport encryption
+* `gh-02` https transport encryption
+* `gh-03` https transport encryption
+* `gh-04` https transport encryption
+* `gh-05` https transport encryption
+
+## Database schema
OpenProject's database schema is considered an internal API, please do not rely on it as a stable point of references. Schema modifications by the OpenProject core might be performed in any upgrade, including patch releases. Modifications to the database schema are considered a third-party customization and might prevent us from giving proper support. If you have an active support contract with OpenProject, please note that modifications affect our warranty. For more information, please consult the [Terms of Services](https://www.openproject.org/legal/terms-of-service/#-5-warranty).
@@ -72,9 +412,7 @@ We recommend you use existing database tools to inspect and export the database
[![OpenProject database schema ERD](openproject-erd.jpg)](openproject-erd.jpg)
-
-
-# Use of technical cookies
+## Use of technical cookies
OpenProject makes use of technical cookies to identity the browser client and/or remember information such as 2FA login state. The core application makes use of these cookies:
@@ -89,23 +427,6 @@ On top of that, for cloud instances:
- `openproject_cloud_instances` contains a list of instances the user recently accessed.
- additional technical cookies might be set by the load balancer and intermediate processes (i.e., to remember a sticky load balancer and ensuring subsequent requests are routed similarly).
-# Processing of personally identifiable information
-
-As OpenProject is dealing with user account data, it is processing personally identifiable information (PII). This data encompasses:
-
-- User's first and last name
-- E-Mail address(es)
-- Other uniquely identifiable information used as authentication data of external identity providers (such as SAML or OpenID Connect)
-- User pictures / Avatars
-- IP addresses in log files
-- Possibly data that is filled as part of user custom fields, configurable data fields shown and editable for users. The content of these fields are user-provided and not systematically processed by OpenProject however.
-
-Affected services:
-
-- PostgreSQL database (stores user account data)
-- Object storage or NFS (stores user pictures as files)
-- Memcached (Might contain references to cached information of user data)
-
## Deletion and anonymization of personally identifiable information
Whenever users in OpenProject are fully deleted, the system scrubs and removes all structural PII. For more information on user account deletion, please see [the user administration guide](../../system-admin-guide/users-permissions/users/#delete-users).