Data and security
In short
- The app runs entirely on Atlassian Forge. Its code is executed by Atlassian and its data is stored by Atlassian. It has no server of its own and no connection to any other service.
- No data leaves Atlassian. The app declares no external address, so the platform would block any request to one.
- The data of the app is kept in the same location as the Confluence site and moves with it.
- The app stores an index of the site, its settings and a journal of what it did. It does not store the text of pages or comments, the content of files, or names and e-mail addresses of people.
- The app is used by administrators only. It asks Confluence before it answers requests from its pages; a yes for a Confluence administrator is reused for up to a minute.
What the app reads
To build its index and to check an object before it deletes, the app reads from Confluence:
- the list of spaces, and what the app itself may do in each of them;
- pages and blog posts: title, space, state, version number, dates, labels, the list of versions, the property that names the cover picture, and the body;
- files: title, type, size, version number, dates, labels, the list of versions and the size of a single version;
- comments, replies and inline comments of a page or blog post that holds files its body does not refer to: after each read of the site, to sort those files into used and unused, and again right before such a file is moved to the trash, or purged after the app moved it there;
- the permissions of the person who opens a page of the app.
Bodies of pages, blog posts and comments are read to find references to files. They are parsed in memory and are not stored. The app never downloads the content of a file.
What the app stores
| Data | Used for | Kept |
|---|---|---|
| Spaces: ID, key, name, type, state, access of the app | Report, deciding where rules apply | While the app is installed; refreshed by every read |
| Pages and blog posts: ID, title, space, state, version number, dates, time of trashing, whether exempt | Finding candidates for the rules, previews | While the app is installed; refreshed by every read |
| Files: ID, title, type, size, version number, dates, time of trashing, whether referred to, time of the last view reported by Confluence, measured size of older versions | Report, finding candidates, the list of unused files | While the app is installed; refreshed by every read |
| References found in page bodies: the title and space key of the page referred to, and the file name | Knowing which files other pages refer to | While the app is installed; rebuilt with every reading of a page |
| Settings: rules, limits, the exemption label, quotas, choices per space, and the account ID of the administrator who last changed them | Running the app | While the app is installed |
| Journal: time, action, rule, ID and title of the object, space, result, number and size of what was deleted, details, and either “app” or the account ID of the administrator who acted | The Activity tab | A year, see Deletion |
| Commands given on the pages of the app (Read the site now, Read everything again, Check now, Move to the trash): kind, the IDs of the picked files, state, result, and the account ID of the administrator | Carrying them out, showing their result | 30 days |
| Records of runs: start, end, numbers of requests, deletions and errors | The Overview tab and its Support tools | 30 days |
Not stored: bodies of pages, blog posts and comments; content of files; names, e-mail addresses and pictures of people; passwords and API tokens.
Names of spaces and titles of pages and files are stored as they are in Confluence. They can contain what people put into them. In particular, the name of a personal space is usually the name of its owner, and its key contains the account ID of the owner.
Account IDs
An Atlassian account ID is an identifier without a name. The app stores the account ID of an administrator in three places: with the settings that person changed, with the command that person gave, and in the journal entry of that action. It never looks up the name or the e-mail address behind an account ID; the Activity tab says “by an administrator”.
Where the data is kept
The data is kept in Forge SQL, the database Atlassian hosts for Forge apps, with one separate database per site.
- Location. Atlassian keeps the data of the app in the same location as the Confluence site. When an administrator moves the site to another location, the data of the app moves with it. Everything listed in the table above is in scope for data residency. Technical logs of the app are not.
- Encryption. Atlassian encrypts the data at rest and all traffic in transit.
- Separation. Atlassian keeps the data and the execution of each site apart from every other site.
Deletion
- Journal entries are kept for a year. Once a day the app deletes those that are older, at most 5,000 at a time, so on a site that writes more entries than that per day older ones can stay longer. Commands and run records are deleted after 30 days.
- The index follows Confluence: an object that is gone from Confluence is removed from the index by the next read or by the event Confluence sends.
- When the license ends, the data is kept and nothing is deleted from Confluence.
- When the app is uninstalled, Atlassian removes the data of the app. Atlassian keeps removed data for a limited time under its own retention policy and then destroys it.
- To have the data of the app removed, uninstall the app. The app has no data anywhere else.
Logs
The app writes a log line when a background run or a handler fails: a short message and the error text. Titles, account IDs, content and tokens are not written to logs. Logs are kept by Atlassian and can be read by the vendor in the developer console of Atlassian.
Permissions
The app asks for nine permissions.
| Permission | What the app does with it |
|---|---|
read:space:confluence |
Lists the spaces and reads what the app may do in each of them. Asks, in the name of the person who opens the page of a space, whether that person administers the space. |
read:page:confluence |
Lists pages and blog posts with their bodies; reads a single page or blog post with its labels, its list of versions and the properties that name its cover picture. |
read:attachment:confluence |
Lists files, current, archived and in the trash; reads a single file with its labels, and the size of a single older version. |
read:comment:confluence |
Reads comments, replies and inline comments of a page or blog post that holds files its body does not refer to: after each read, to sort those files into used and unused, and right before such a file is moved to the trash, or purged after the app moved it there, to see whether a comment refers to it now. |
delete:page:confluence |
Purges pages and blog posts from the trash under the Trash rule. |
delete:attachment:confluence |
Moves a file an administrator picked to the trash; purges files from the trash under the Trash rule. |
write:confluence-content |
Deletes old versions of pages, blog posts and files: Confluence offers this only under the general permission to write content. Confluence also requires it for the events about trashed and deleted pages and blog posts. The app creates and edits nothing. |
read:confluence-content.summary |
Required by Confluence to send the app events about pages, blog posts and files: trashed, restored, deleted, archived, moved, viewed. The events keep the index current between reads. The app sends no request with this permission. |
read:confluence-user |
Reads the permissions of the person who opens the admin page, to check that they are a Confluence administrator. |
Who can use the app
- Confluence shows the admin page to Confluence administrators only, and the space page to administrators of that space only.
- The app does not rely on that. Before it answers requests from a page it asks Confluence, in the name of the person, whether the person administers the site or the space. A yes for a Confluence administrator is reused for up to a minute; the page of a space asks with every request. Every value sent from a page is checked on the server.
- Deletions are made by the app itself, in the background, under the rules an administrator saved or for the files an administrator picked. The app deletes in a space only where it has the Admin role.
What the vendor can see
- The list of sites the app is installed on, and usage figures such as the number of invocations, as Atlassian shows them to the developer of an app.
- The logs described above.
- The license information of the Atlassian Marketplace: the name of the organisation, the contacts given for the license, its size and its dates.
The vendor has no tool to read the data the app stores for a site.
Reporting a security problem
Write to security@legroomlabs.com. Reports are answered within one working day. Fixes follow the timeframes Atlassian sets for Marketplace apps: 10 days for a critical vulnerability, 4 weeks for a high one.