Rate this page:
Customers need to have confidence in your software to use it. A key part of building trust is security, which encompasses a range of measures, including authentication and authorization, software execution, and data management. Forge facilitates and takes on responsibility for many of these things, conferring trust through its platform.
This page provides an overview of security for the Forge platform. This includes information on the architecture, features, and policies that contribute to security. Note that this page only covers these topics at a high level; it does not provide instructions on how to implement security in your app.
The Forge architecture is designed to sandbox apps to control app execution. There are two main parts to this: Forge UI and the app runtime.
Forge UI is the framework for building user interfaces for apps. Apps cannot interact with the user interface without using Forge UI.
Forge UI uses a declarative UI, where apps declare the UI components and implement functions to compose them. The functions run on the server-side and the components render on the server-side. Sandboxing UI functions like this makes the rendered UI secure, as no app code executes in the browser. Sandboxing also makes use of the security and isolation mechanisms that are used by the Forge back-end infrastructure. As a result, app developers don't have to worry about securing the app UI, as Forge UI produces trusted user interfaces by default.
Controlling the app runtime is critical to security. The Forge runtime sandboxes the apps from the environment in which they execute. By running apps in isolated environments, the platform limits what apps can do. For example:
To understand how this works in detail, see the diagram and notes on the Forge app sandbox below:
The Forge platform enables secure data management through its architecture and the way it handles data. This includes data isolation to prevent leaks as well as data handling policies for the Forge environments.
Data isolation for apps is necessary in a cloud environment. The Atlassian cloud products are multi-tenant, so apps need to be multi-tenant. However, this means that apps can potentially mix customer data. For example, two customers use an app that uses a global object to cache data by issue key. Issue keys are not globally unique, therefore data could leak from one customer to another.
The Forge platform prevents these types of scenarios by sandboxing apps, as described in the App runtime section. Since apps are sandboxed, app calls occur in separate instances of the app. This means that data is isolated at the runtime level, preventing data leaking.
Forge ensures that data is handled responsibly by providing different environments for app developers. An environment is a version of the app that has its own code, manifest, modules, outbound auth container, environment variables, and installations. Forge provides three static environments , , and , which are set up when the app is created. Policies for reading data are enforced on these environments.
Enforcing these policies ensures that developers cannot get access to customer data without consent.
Authentication is a fundamental part of security, but it can be complicated to implement and can open up the app to security vulnerabilities. Forge controls the app runtime, which enables it to provide managed APIs that apps can use to make secure calls to REST APIs.
Using managed APIs means that third-party code is never trusted with user credentials. API calls are automatically authenticated on behalf of the app by the surrounding Forge infrastructure. This also means that making API calls is much simpler.
Rate this page: