March 23, 2026

Git and Confluence Integration: Embed, Sync, and Display Git Content in Confluence

Volkan Selim Cantürk

Growth Marketer

Share this article
Git for Confluence Updated March 2026 Version 2.0

GitLab and Confluence Integration: Embed, Sync, and Display GitLab Content in Confluence

Paste a GitLab URL into any Confluence page. The file renders live — always in sync with your repository. No copy-pasting. No scheduled jobs. No stale docs.

SOC 2 Declared ISO 27001:2022 ISO 27701:2019 Cloud Fortified Atlassian Forge 30+ File Formats
TL;DR

Git for Confluence embeds GitLab files directly into Confluence pages — Markdown, Mermaid diagrams, OpenAPI specs, source code, and 30+ other formats. Content stays in GitLab. Confluence pulls it live on every page view. No storage, no sync jobs, no duplicated docs. Free for teams up to 10 users.

Why GitLab and Confluence don't connect out of the box

Developers live in GitLab. READMEs, architecture diagrams, API specs, runbooks, security policies — all of it lives in repositories, version-controlled and accurate.

Everyone else lives in Confluence. Product managers, architects, technical writers, and support teams use Confluence to stay aligned. They don't have GitLab access, and they shouldn't need it just to read a diagram.

The standard workaround is copy-paste: someone copies content from GitLab into a Confluence page. Within days, the source changes. The Confluence version doesn't. Now there are two versions of the truth — and the wrong one is the one most people are reading.

Stale docs aren't just inconvenient. Teams make decisions based on them. Someone follows an outdated runbook and breaks something. An auditor asks for compliance docs and gets a version from six months ago. The Confluence page becomes a liability instead of an asset.

How Git for Confluence works

Git for Confluence closes the gap between GitLab and Confluence. GitLab content stays in GitLab. Confluence pages pull it live. One source of truth, accessible everywhere work happens.

1
Paste a URL

Copy any file URL from GitLab. Paste it into a Confluence page. The macro appears automatically.

2
It renders instantly

Markdown becomes formatted text. Mermaid becomes a diagram. OpenAPI becomes interactive docs.

3
It stays in sync

Every page view fetches the current version from GitLab. Commit a change — Confluence shows it next time someone opens the page.

There's no scheduled sync, no webhook to configure, no pipeline to maintain. File content is never stored on Git for Confluence's servers. Every page view triggers a fresh fetch from your repository.

For private repositories, content is fetched via an authenticated user (OAuth) or an admin-configured access token. Viewers — including people without a GitLab account — can see embedded content as long as the token has access.


What you can embed: 30+ file formats

Git for Confluence renders files visually — not as raw text. Supported categories:

Documentation
  • Markdown
  • AsciiDoc
  • HTML
Diagrams
  • Mermaid
  • PlantUML
  • Graphviz / DOT
  • Structurizr (C4)
  • BPMN
  • Vega / Vega-Lite
  • AsyncAPI
  • SVG
API docs
  • OpenAPI / Swagger
  • Interactive rendering
Source code
  • Python, Java, JS, TS
  • C#, Ruby, PHP, Go
  • Rust + more
  • Syntax highlighting
Data & config
  • YAML, JSON, XML
  • CSV
  • Config files
Documents
  • PDF
  • Jupyter Notebooks
Images
  • PNG, JPG, GIF
  • SVG (rendered)

Diagrams from GitLab in Confluence

Most teams store architecture diagrams as images in Lucidchart or draw.io. Those diagrams drift — nobody updates them when the system changes because it's a separate task, disconnected from the development workflow.

Diagrams-as-code changes this. A Mermaid or PlantUML file lives in the same repository as the code it describes — part of the same pull request, reviewed, versioned, and traceable to a commit.

Git for Confluence renders these files visually in Confluence. A .mermaid file becomes a flowchart. A .puml file becomes a sequence diagram. A Structurizr file renders as a C4 architecture diagram.

When docs live with code, they stay accurate. No Lucidchart license needed. No diagram going stale because someone forgot to update it.

Try it: embed a GitLab file in under 5 minutes

Public repository

1
Open the file in GitLab and copy the URL
2
Open any Confluence page in edit mode
3
Paste the URL — Git for Confluence recognizes GitLab URLs automatically
4
The macro renders the file. No additional setup needed.

Private repository

1
One-time admin setup: configure OAuth or a managed access token (~5 minutes)
2
Users paste GitLab URLs exactly as above
3
Authentication is handled in the background — viewers don't need their own GitLab accounts

GitLab self-managed

GitLab self-managed instances (version 14.4+) are fully supported. Admins add the self-managed provider once under Manage apps → Git for Confluence Administration → Add a Self Managed Provider. After that, URLs from that instance are recognized automatically.


Access control: individual vs. managed

Individual access (OAuth 2.0)

Users connect their own GitLab accounts via OAuth. They can embed and share any content their account has access to. Best for smaller teams where everyone has GitLab accounts and direct control matters.

Managed access (token-based)

An admin configures one access token at the organization level. All content shared via managed access is served through that token. Viewers — including people without a GitLab account — can see embedded content as long as the token has access.

Admins control which Confluence user groups can embed content. There's a full activity log. Revoking the token instantly stops all sharing. Best for larger organizations with centralized governance requirements or non-technical stakeholders who need read access without GitLab accounts.

Both modes can coexist. Individual users can use OAuth; the organization can use managed access for shared documentation spaces.

Security: SOC 2, ISO 27001, Cloud Fortified

🔒 SOC 2 Declared (Type II)
ISO 27001:2022
ISO 27701:2019
Cloud Fortified
🇪🇺 GDPR Compliant

No competitor in this category holds all of these simultaneously.

What this means in practice: file content is never stored on Git for Confluence's servers — every page view triggers a live fetch. GitLab access uses only read_api and read_repository scopes — read-only, no write access. A static egress IP (34.86.240.233) is available for firewall whitelisting in self-managed environments.

For teams in regulated industries — aerospace, defense, financial services, healthcare — these certifications are a procurement requirement, not a nice-to-have.

How Git for Confluence compares

No other app in this category covers all four Git providers while holding SOC 2, ISO 27001:2022, ISO 27701, and Cloud Fortified status simultaneously.

Feature Git for Confluence Other Marketplace apps Manual / other
Marketplace rating ⭐ 3.8 3.0–3.7 N/A
GitHub, GitLab, Bitbucket & Azure DevOps ✓ All four ▲ Partial
30+ file & diagram formats (Mermaid, PlantUML, OpenAPI…) ▲ Mixed
Auto-sync — content updates when repo changes ▲ Mixed
OAuth & managed access tokens ✓ Both ▲ Partial
Free for teams up to 10 users
SOC 2 Type II certified vendor ▲ Few
ISO 27001:2022 & ISO 27701 ▲ Few
Cloud Fortified & built on Atlassian Forge ▲ Few

✓ Strong   ▲ Mixed / partial   ✗ Not available


Full walkthrough — 13 minutes
Git for Confluence — Embed, Sync, and Share Git Content in Confluence
00:18What problem does Git for Confluence solve?
00:42Who uses it, and why it starts with developers
01:40Why stale docs are a risk, not just an inconvenience
02:19How sync actually works — live, not scheduled
02:52Demo: embedding a file from GitLab
04:35Mermaid, PlantUML, and why it beats drawing tools
06:43Managed vs. individual access
08:28Security: SOC 2, ISO 27001, Cloud Fortified
08:50Compliance documentation in Git
10:30OpenAPI specs as living docs
11:40What Forge unlocks for users
12:32Get started in under 5 minutes

Real-world use cases

Compliance documentation

Keep security policies and audit trails version-controlled in GitLab. Surface them in Confluence. When auditors ask, every version is traceable to a specific commit with timestamp and author.

API documentation

Embed your OpenAPI spec in Confluence and it renders as interactive docs — endpoints, parameters, response schemas. One file maintained by developers, readable by everyone.

Architecture diagrams

Engineers maintain Mermaid or PlantUML files alongside code. Product managers and executives always see the current system state without asking anyone for an update.

Onboarding documentation

READMEs, setup guides, and runbooks stay in the repo. New team members read them in Confluence. When engineers update the process, the docs update too.

Multi-team documentation

Build Confluence spaces that pull content from multiple repositories, all staying in sync, without anyone maintaining duplicate pages.

What Forge brings to Git for Confluence in 2026

Git for Confluence is built on Atlassian's Forge platform — Atlassian's modern, cloud-native app runtime. For users, this means:

Better performance. Forge apps run closer to Confluence's own infrastructure. Page loads with embedded Git content are faster.

Tighter Confluence integration. Forge opens access to the Teamwork Graph, Rovo AI, and Confluence's native permission model — making Git content searchable within Confluence's own search index.

Government Cloud eligibility. Forge is required for Atlassian's Government Cloud, opening Git for Confluence to defense contractors, government agencies, and regulated entities that couldn't use it before.

Security model alignment. Forge apps run within Atlassian's own infrastructure boundaries — giving security-conscious customers more assurance about where data is processed.

The embedding workflow stays the same — paste a URL, see the content. What changes is performance, security posture, and what becomes possible next.

How to get started

1
Install from the Atlassian Marketplace — search "Git for Confluence". 30-day free trial, no credit card required. Free for teams up to 10 users.
2
Paste a public GitLab URL into any Confluence page. You'll see it render in seconds.
3
Connect a private repository — an admin follows the setup guide (~5 minutes for OAuth, slightly longer for managed access).
4
Embed your first real file — a README, an architecture diagram, or an OpenAPI spec.

Try Git for Confluence free for 30 days

Free for teams up to 10 users. No credit card required. Up and running in under 5 minutes.

Frequently asked questions

Copy the file URL from GitLab and paste it into a Confluence page in edit mode. Git for Confluence detects the URL and renders the content automatically. For private repos, an admin sets up authentication first — either OAuth or a managed access token.
Yes. GitLab self-managed instances version 14.4 and above are supported. Admins add the self-managed provider once in the app's administration panel. After that, URLs from that instance are recognized automatically — no per-user configuration needed.
No scheduling needed. Content is fetched live from GitLab every time a Confluence page is viewed. Nothing is stored on Git for Confluence's servers. The page always reflects the current state of the file in your repository.
Individual access uses OAuth — each user connects their own GitLab account and shares content on their own behalf. Managed access uses one admin-configured token for the whole organization, allowing even users without GitLab accounts to view embedded content. Both modes can coexist.
30+ formats: Markdown, Mermaid, PlantUML, OpenAPI/Swagger, AsciiDoc, SVG, Graphviz, BPMN, Structurizr, Vega, AsyncAPI, source code in all major languages, images (PNG, JPG, GIF), YAML, JSON, XML, PDF, and more. If a format isn't recognized it renders as plain text — nothing breaks.
Yes, with managed access. An admin sets up a single access token. Confluence users — including those with no GitLab account — can view content shared through that token. They see what they need to see; the repository stays secure.
It's SOC 2 declared, ISO 27001:2022 and ISO 27701:2019 certified, Cloud Fortified, and GDPR compliant. File content is never stored on Git for Confluence's servers. GitLab access uses read-only scopes (read_api, read_repository). Trusted by Sony, Microsoft, Booking.com, and 500+ organizations worldwide.
Yes. Git for Confluence supports GitHub, GitLab (cloud and self-managed), Azure DevOps, and Bitbucket. It's the only Confluence app covering all four major Git providers.
The core embedding workflow stays the same. Forge brings better performance, tighter Confluence integration, Government Cloud eligibility, and access to future Atlassian platform features as they ship. No action needed from existing users.
For a public repository: under 60 seconds. For a private repository with OAuth: around 5 minutes. For managed access with a token: 10–15 minutes for an admin to configure. The video walkthrough above covers the full setup end to end.
Share this article

Avisi Apps builds apps you can trust

SOC 2
ISO 27701:2019 & ISO 27001:2022
GDPR/CCPA
HIPAA/NIS2