GitLab Apps

This page contains information related to upcoming products, features, and functionality. It is important to note that the information presented is for informational purposes only. Please do not rely on this information for purchasing or planning purposes. The development, release, and timing of any products, features, or functionality may be subject to change or delay and remain at the sole discretion of GitLab Inc.
Status Authors Coach DRIs Owning Stage Created
proposed janis ntepluhina mmacfarlane johnhope devops plan 2026-11-05

Summary

GitLab Apps lets customers extend GitLab with their own interfaces. An App is a GitLab Pages site that opens from an entry point in the GitLab UI and can use either GitLab’s design system or the customer’s own brand. It works with the customer’s GitLab data and their own.

The first iteration (Customer 0) is internal. A small set of existing GitLab-built Pages sites gets surfaced from entry points in the GitLab UI. There is no management UI, permission model, auth passthrough or backend yet.

Motivation

People already build GitLab UIs on Pages without any platform support. Internal examples include Pipeline Duration Visualizer, GitLab Planner, Deploy Tracker, Engineering Excellence Dashboard, Frontend Test Dashboard and AI Org Execution.

This happens with no dynamic backend, no identity passthrough and no in-app discovery. GitLab’s UI is built for engineers, and Apps make other personas reachable (for example program managers who need planning views) without changing the core product.

Pages already provides deploy from CI/CD, access control, MR preview deployments, custom domains with TLS, versioned releases with rollback, and availability on GitLab.com, Dedicated and self-managed.

Apps add entry and exit points in the GitLab UI, identity pass-through and a request proxy to the GitLab backend, creation through the software factory, design-system access with rebranding, and potentially a small backend per App.

Goals

We will use ourselves as Customer 0 with a limited set of pre-defined apps. That greatly reduces the complexity and lets us focus on the part where end-users interact with Apps. Generating Apps is step 2.

Customer 0

  • Surface four existing apps from entry points in the GitLab UI: Orbit Portal, Pajamas Studio, GitLab Planner, Engineering Excellence Dashboard.
  • Entry points in the navigation, the sidebar and on show pages.
  • Serve apps as Pages sites from a predefined location.
  • Allow the user to navigate between the app and GitLab.

Engineering spike (work item 636866):

  • Settle the mount architecture and identify pitfalls.
  • Find out how to offer low-cost, abstract mount points in as many places in the GitLab UI as sensible, and prove that it works (work item 638329).
  • Estimate what it costs to show an app across a group hierarchy: an app enabled on a group also appears in all its subgroups and projects (see open question How do we manage which apps are available to a user?).

The App backend (work item 638330) and App repo architecture (work item 638331) are not part of this spike and may need a second one.

Not included for customer 0:

  • Management or configuration page
  • Permissions beyond existing Pages access control
  • Auth passthrough. The existing Pages auth flow is accepted for the spike.
  • App backend
  • Per-project control over app visibility (nice-to-have)

Existing context

Concurrent effort: Microfrontends (MFE)

MFE introduces slots, which are equivalent to the mount points in this document. A common protocol / shared approach should be developed.

Closest analog: Observability

Sidebar

Hierarchy inheritance (open question How do we manage which apps are available to a user?)

Two existing models:

Design and implementation

Registering apps

For the Customer 0 stage apps are hardcoded. It’s a static list of predefined, pre-existing Apps that are currently successfully deployed to GitLab Pages.

The future implementation would allow Apps to be GitLab Pages repositories within a top-level group that can be registered within that Group.

Mounting Apps

When registering, Apps can elect their mountpoint. Mountpoints are dedicated places in the UI where a button with a link to the app can be placed. Possible mountpoints are the sidebar, header bar or the header of select views, such as the pipeline view.

Since apps can be mounted anywhere, but the percentage of users that will encounter an app is small, the overhead added by mountpoints must be kept to a minimum. A rails-side view evaluating the presence of an app in each view separately is therefore not an option. The footprint in CE code must be very small.

Ideally, the CE code provides a form of placeholder while the App-specific code is only ran when necessary. There are two possibilities evaluated:

  1. Create an App Vue Component and use Vue 3’s Teleport to display its contents. This would be a modern solution that stays strictly within the framework API. This would require all mountpoints to offer a Vue component.
  2. HTML Placeholders with a global mount script with independent Components. A global JS script watches the DOM for classes named .js-gitlab-app-mountpoint[data-mount-point] and mounts the applicable app link as independent standalone components. The overhead on CE code is just an additional class name, it can be injected into both rails views and Vue components.

The MFE effort currently suggests a similar mounting principle using MFE slots: The monolith offers slots that modules request to be mounted at. To prevent duplicate efforts the slots should be shared between Apps and MFE. If possible, mounting App link buttons should ultimately use the same mechanic as MFE nav entries. For Customer 0 the simplified approach using the CSS class is used. A convergent solution should be used before GA. In EE, a helper function will evaluate in a lightweight manner (low compute evaluations first) which apps should be displayed on each render. The metadata, including the context (see below) is passed as a data object to the mount script.

Risks.

  • Cost on every request. The helper runs on every HTML page.
  • Layout shift. Buttons injected after load move header content around.
  • Focus order. A button in its own placeholder is in the expected tab position. Where a placeholder sits among other actions, its position in the markup decides the order.
  • Test coverage. The host component’s spec no longer sees the button. Only a feature spec, or the Jest integration suite, covers host and injected app together.

Passing context to apps

Most apps rely on context (e.g. project path, epic ID, user data…) to display valuable information. This context is most easily passed using request parameters as part of the URL.

Alternative methods for context sharing

There are alternative methods for context sharing, e.g. cookies or contentWindow.postMessage with iframes. These have not yet been evaluated as request params have proven sufficient for Customer 0.

A similar need is present in the MFE effort so overlap should be scoped and moved to a shared protocol if suitable.

Risks

  • IDs and Cells. pipeline_id is the instance-wide ID that GET /projects/:id/pipelines/:pipeline_id expects. An app that calls the API with it has to reach the cell that owns the project. Paths route through the HTTP router, and raw IDs do not. Check this when Cells timing is clearer (open question).
  • Referrer. config/ sets no Referrer-Policy override, so the Rails and browser default (strict-origin-when-cross-origin) should send only the origin to the app. If so, the values reach the app only through the parameters we add.

Defining context parameters and treating them as an API

We create a list of context parameters that apps can request to be passed. When an app is registered, it provides a choice of variables that it requires. Each mount point may offer different variables as it has different context.

Simplified example:

Mountpoint Available Variables
Group Sidebar user_id, group_path
Project Sidebar user_id, group_path, project_path
Pipeline Header user_id, group_path, project_path, pipeline_id

When registering an app with its URL, the app can request the variables available to its mountpoint to be passed in form of a template.

In this example, we could have two Apps:

App 1 registers with:

App.new(
  name: 'Project Planner',
  url: 'https://project-planner.gitlab.io/plan/%{project_path}?user_id=%{user_id}',
  mounted_at: Mountpoint.project_sidebar
)

So the link generated in the UI will be:

https://project-planner.gitlab.io/plan/my-group/my-project?user_id=123

App 2 registers with:

App.new(
  name: 'Pipeline Previewer',
  url: 'https://pipeline-previewer.gitlab.io/%{pipeline_id}',
  mounted_at: Mountpoint.pipeline_header
)

So the link generated in the UI will be:

https://pipeline-previewer.gitlab.io/123

These parameters would become a public API and would have to be treated as such, with a form of versioning and a deprecation process.

The versioning contract however exists between the registered app and Rails, so the versioning would be passed as part of the initialization:

App.new(
  ...
  url: 'https://pipeline-previewer.gitlab.io/%{pipeline_id}',
  context_version: '1.0'
)

Prior art: URL templates with a fixed placeholder set.

  • Project badges. Badge::PLACEHOLDERS maps %{project_path}, %{project_id}, %{default_branch}, %{commit_sha} and others to project attributes. Gitlab::StringPlaceholderReplacer substitutes them. The author decides where each value goes (path, query or fragment). GitLab decides which values exist.
  • External issue trackers. issues_url takes an :id placeholder. It is the same idea, with a single value.
  • CI predefined variables. CI_PROJECT_PATH and CI_PIPELINE_ID are already the public names for these two values. The names mirror them on purpose, so pipeline authors can guess them.

Displaying apps

The app itself is a GitLab Pages site, so build, authentication, delivery is done with Pages.

Users will navigate to apps as they navigate to any other GitLab page. This results in two expectations:

  1. Navigation between the app and back to GitLab happens within the view, not just with browser controls. Apps need a navigation control that allows them to go back to GitLab (Home button).
  2. Apps may naturally be experienced as GitLab-provided, even though they will, in fact, be user-generated content.

Two possible forms of displaying apps mitigate one problem by amplifying the other:

  1. Displaying the app within an iframe keeps it entirely within the GitLab navigation framework: Sidebar, header, Duo sidebar all stay in view and the App even gets a breadcrumb. But it amplifies the impression that the app is provided by GitLab, so extra visual controls are needed to communicate that it is not.
  2. Opening the app in a separate tab, as a standalone Pages site, makes it more clear that this is external content. But there is no straightforward way to inject navigation controls and the third-party badge to the page, since it is under control of the Application owner. We’d need to enforce those during build or proxy the applications through a service that injects those elements.

Open questions

1. How do we embed apps?

Do we use iframes or full page load? The design prototype (!259134) uses an iframe. This stays open: an iframe creates navigation edge cases, while a full page load depends on every app having a consistent, enforced exit point. Tested in work item 639784.

Decided on the iframe implementation for dogfood testing, but have yet to decide on the final solution based on user experience.

2. How do we manage which apps are available to a user?

The preferred model:

  • Apps live at the top-level group or Organization, in a predictable (sub)group.
  • The app creator chooses one or more groups or projects where the app appears, and the app inherits down the hierarchy.
  • The creator chooses the entry point.

This needs costing, and “prohibitively complex” falls back to something simpler.

3. How will Cells impact Apps?

How far along will Cells and Organizations be around the Customer 0 launch, and do we want to tie Apps to that roadmap?

4. How do we provide visual context within apps?

If not using iframe, we may need to provide navigation context:

  • a badge on app links that sets them apart from native navigation
  • a persistent marker in the app saying it was not built or maintained by GitLab
  • a footer with “View source” and “Return to GitLab”

5. How do we provide versioning to context parameters?

Context parameters may need a form of versioning and deprecation process

Decisions

Date Decision Source
2026-10-30 Feature name is “GitLab Apps” (used in flags and tables). 636866
2026-10-30 Customer 0 app list (see Goals). same
2026-10-30 Existing Pages auth is fine for the spike. same
2026-11-02 Hardcoded entry points are fine for the PoC. 636866
2026-11-05 Gate behind EE wip flag gitlab_apps. 638552
2026-11-05 Flag actor is the top-level group (root_ancestor). Janis
2026-11-11 Apps mount from the layout: one EE helper builds the apps and context per page, and a global script mounts them into .js-gitlab-app-mountpoint placeholders. No per-page helpers. Janis
2026-11-18 Focus on the iframe implementation first 636866
2026-12-01 Use template-style params in URL Janis

Threat model

  • Abuse by imitating GitLab UI: Apps will contain user-generated content. There is a possibility that an App imitates GitLab UI and tricks a user into entering sensitive data.
  • Sensitive context parameters: When offering context params we need to be aware that they are passed as request parameters which may end up in logfiles

References

Last modified December 4, 2026: Add GitLab Apps design document (d635e3d7)