The architecture guild opened three Confluence spaces after the Mermaid macro rollout.
One space used display names as node IDs. Another pasted click syntax from a Mermaid tutorial. A third kept every dependency in a single eighty-node flowchart titled overview_v7_final.
The rendered diagrams looked fine in screenshots. The Mermaid diagram governance Confluence problem was not rendering. It was that nobody could review changes, search labels consistently, or predict which syntax would survive the next page edit.
"Do we have a standard — or just a macro?"
This buyer guide helps documentation leads, architecture guilds, and Confluence admins publish Confluence diagram standards before Mermaid spreads faster than review habits.
Quick Answer
- Treat Mermaid as executable documentation. Governance covers naming, review, safe syntax, splitting rules, and rollout checks — not only "which macro to install."
- Separate stable IDs from readable labels. IDs stay constant across reviews; labels carry service-catalog names.
- Version through page history plus explicit review. Reference node IDs in comments; export source when audit needs a snapshot outside Confluence.
- Adopt safe defaults. Forbid HTML labels, JavaScript links, click actions, and author-supplied
securityLeveloverrides in shared spaces — patterns strict macros block or sanitize anyway. - Split before you decorate. Overview plus detail diagrams beat one unmaintainable map.
- Run security and support review before org-wide rollout. Verify macro scopes, egress, sanitization, and author training paths.
BacklogBridge Diagram Lens for Confluence is one macro that enforces strict defaults as a security feature. Verify the current Marketplace listing before install.
Buying Context
You are likely past the "should we use Mermaid?" debate. The buyer question now is:
"Can we roll out Mermaid in Confluence without losing reviewability, search quality, and predictable rendering?"
That requires a governance package teams can publish, train against, and audit — plus a macro choice that does not fight the standard. Mermaid naming conventions and safe Mermaid defaults are not optional polish. They are how Confluence diagram programs stay maintainable after the first enthusiastic sprint.
This article focuses on policy. For macro security depth, see Mermaid Macro Security in Confluence. For node ID and subgraph mechanics, see Architecture Diagrams in Confluence: Keeping Mermaid Source Reviewable.
Why Mermaid Needs Governance In Confluence
Static image macros display files. Mermaid macros parse text.
The Mermaid documentation describes diagrams defined as text and code. That is powerful for documentation teams. It also means:
- Authors can paste internal hostnames, ticket URLs, or risky syntax into source the macro later renders.
- Online Mermaid examples often include click syntax and HTML labels that strict Confluence renderers reject.
- Without published Confluence diagram standards, reviewers cannot write actionable comments or trust search results.
Governance closes the gap between "we installed a diagram macro" and "we can maintain diagrams like code."
Governance Pillar 1: Naming And Stable IDs
Use short machine-friendly IDs and put human-readable copy in labels.
flowchart LR
svc_gateway["API Gateway"]
svc_orders["Orders Service"]
db_orders[("Orders DB")]
svc_gateway --> svc_orders --> db_orders
| Rule | Example |
|---|---|
| Role prefixes | actor_, svc_, db_, queue_, external_ |
| Lowercase snake_case IDs | svc_billing, not Billing Service v2 as the ID |
| Labels separate from IDs | svc_billing["Billing Service"] |
| Quote labels with Mermaid keywords | end_node["End"] |
| Match service catalog in labels | Align with internal registry where possible |
| Multi-diagram pages name macros logically | 01_context_overview, not diagram2 |
Publish the prefix table on your architecture space home page. Link it from every Mermaid template page.
Backlog Bridge's Mermaid chart tips guide recommends predictable prefixes for search, diff review, and AI-assisted edits — the same rules help human reviewers.
Bad vs good review comments
Bad — labels drift, IDs unclear:
"Fix the payment box on the right."
Good — stable ID, actionable:
"Keep ID
svc_billing; update label to match service catalog entry PAY-042."
Governance Pillar 2: Versioning And Source Review
When a macro stores Mermaid source in app-owned configuration — as Forge macros commonly do with storage:app — page history typically captures diagram changes alongside surrounding prose. That is versioning, but not a substitute for review discipline.
| Practice | Why it matters |
|---|---|
| Require page review for diagram-heavy architecture pages | Catches renames and scope creep |
| Comment with node IDs, not box positions | Precise feedback survives layout changes |
| Export Mermaid source for release snapshots | Audit or handoff outside Confluence |
| Split overview and detail pages | Smaller diffs per review |
| Record diagram owner on the page | Rotation does not orphan standards |
| Compare page versions before major releases | Confirms intentional diagram edits |
For export workflows, see Exporting Mermaid Diagrams From Confluence.
Remediation workflow when authors paste tutorials
- Author pastes external Mermaid example into the macro.
- Renderer blocks click syntax, HTML labels, or
securityLeveldirectives. - Author runs security diagnostics if the macro provides them — Diagram Lens support docs describe this path.
- Author rewrites to plain labels and static edges per team standard.
- Reviewer confirms diff references stable IDs, not one-off tutorial node names.
Governance Pillar 3: Safe Defaults And Forbidden Patterns
Your safe Mermaid defaults should align with what your approved macro actually renders. Macros differ. Verify behavior in sandbox — do not assume every Mermaid block behaves like a strict Forge macro.
Strict Confluence macros — including Diagram Lens per public security and support pages — block or sanitize:
| Pattern | Governance stance | Why |
|---|---|---|
| HTML labels | Forbid in shared spaces | XSS and inconsistent rendering risk |
javascript: URLs in links | Forbid | Unsafe URL scheme |
| Mermaid click actions / interactivity | Forbid | Stripped or blocked under strict rendering |
Author securityLevel overrides in source | Forbid | Central policy should win, not pasted directives |
| Raw HTML in labels | Forbid | Same class as HTML labels |
External tutorial snippets with click syntax | Rewrite before publish | Reduces author surprise and support load |
The Mermaid security configuration documents securityLevel settings that affect HTML and script-like behavior. Your standard should name the level your macro enforces and tell authors not to override it in source.
Backlog Bridge's Mermaid chart tips guide describes Diagram Lens-safe scope: plain labels, static diagrams, stable IDs — no source-defined interactivity or raw markup patterns.
Allowed vs discouraged syntax (starter policy)
| Allowed | Discouraged or forbidden |
|---|---|
| Plain quoted labels | HTML tags in labels |
| HTTPS links in labels when needed | javascript: links |
classDef for meaning | Decorative color with no legend |
| Subgraphs with business-readable titles | Group1, Stuff, decorative nesting |
accTitle / accDescr when supported | Click callbacks and interactive nodes |
| Source comments explaining ownership | Comments on every obvious node |
Governance Pillar 4: Diagram Splitting And Scope
Reader tools help large diagrams. They do not replace scope rules.
| Symptom | Governance rule |
|---|---|
| More than 15–25 nodes | Split into overview + detail diagrams |
| Mixed deployment, data, and request flow | Separate diagram types per concern |
| Every review starts with "ignore the left half" | Move ignored half to another page |
| Crossing arrows dominate | Split by module, phase, or ownership |
| Temporary dependencies survive quarters | Mark deprecated with classDef or remove |
Standard documentation set on one parent page:
01_context_overview 02_request_path 03_data_stores 04_async_events 05_deployment_zones
Each diagram answers one review question. Link them from the parent architecture page.
For find-in-diagram navigation after splitting, see Finding Text Inside Large Mermaid Diagrams in Confluence.
Governance Pillar 5: Rollout Before Org-Wide Adoption
Atlassian's Manage your apps documentation says Confluence apps are usually installed from Marketplace through Connected Apps and require site admin access.
Split rollout ownership:
| Area | Documentation lead | Platform admin | Appsec |
|---|---|---|---|
| Naming standard and templates | Primary | Informed | — |
| Forbidden-pattern list | Primary | Consulted | Primary |
| Macro install approval | Consulted | Primary | Primary |
| Sandbox sanitization tests | Informed | Consulted | Primary |
| Author training | Primary | Consulted | Consulted |
| Allowed spaces / classification | Consulted | Primary | Primary |
At the time of research on July 17, 2026, I did not find an official Atlassian Marketplace listing for BacklogBridge Diagram Lens for Confluence through available public sources in sibling editorial research. Search Marketplace again before install.
Do not infer SOC 2, ISO, Cloud Fortified, GDPR/DPA, or procurement approval without explicit published evidence.
Master governance rollout checklist
| # | Check | Owner | Done |
|---|---|---|---|
| 1 | Published Mermaid standard page in architecture/docs space | Doc lead | ☐ |
| 2 | Prefix table and forbidden-pattern list attached | Doc lead | ☐ |
| 3 | Approved macro listing matches intended vendor and product | Admin | ☐ |
| 4 | Install prompt scopes and egress documented | Admin + Appsec | ☐ |
| 5 | Sandbox tests for HTML labels, JS URLs, click syntax | Appsec | ☐ |
| 6 | Data classification agreed for allowed spaces | Admin + Appsec | ☐ |
| 7 | Author training scheduled with worked examples | Doc lead | ☐ |
| 8 | Pilot space identified with real team diagram | Doc lead | ☐ |
| 9 | Review comment template references node IDs | Doc lead | ☐ |
| 10 | Export path documented for release snapshots | Doc lead | ☐ |
| 11 | Support/security contacts recorded for macro vendor | Admin | ☐ |
| 12 | Exception process documented for non-standard syntax | Doc lead + Appsec | ☐ |
For macro-specific security rows, extend the checklist in Mermaid Macro Security in Confluence.
Standard Page Template
Publish a Confluence governance page with these sections:
| Section | Contents |
|---|---|
| Purpose | When Mermaid is required vs optional |
| Approved macro | Listing name, vendor, link — verify at install time |
| Naming rules | Prefix table, ID/label examples |
| Forbidden patterns | HTML labels, JS links, click actions, securityLevel overrides |
| Splitting rules | Node-count thresholds, overview/detail naming |
| Review expectations | Comment format, owners, export requirements |
| Safe examples | Link to internal templates and knowledge-base guides |
| Exceptions | Who approves non-standard syntax and where |
| Related links | Security checklist, architecture how-to, support |
Worked Example: Diagram Lens And Your Standard
This section is not an install recommendation. It shows how strict macro defaults can reinforce governance.
| Public claim (Backlog Bridge pages, effective 8 July 2026) | Verify independently | Governance alignment |
|---|---|---|
| Strict Mermaid settings; HTML labels disabled | Sandbox with HTML label sample | Matches forbidden-pattern policy |
| Blocks security-level overrides in source | Paste securityLevel directive in trial | Authors cannot bypass central defaults |
| Blocks or sanitizes JavaScript URLs and click actions | Risk-shaped diagram samples | Matches interactivity ban |
| Security diagnostics in troubleshooting flow | Support page steps during pilot | Author self-service before ticket |
| Source-size warnings and blocking | Largest team diagram in trial | Encourages splitting |
storage:app only; no external egress declared | Install prompt + network review if required | Admin checklist item |
If authors complain that "Mermaid tutorials do not work," the answer is usually that tutorials assume loose securityLevel — not that your standard is wrong.
When Governance Differs
- Canvas-first teams using draw.io or Gliffy may govern visual exports instead of text source — see Mermaid vs draw.io and Gliffy in Confluence.
- Repository-backed diagram sync is a different category; Diagram Lens public pages say it does not include repository sync.
- Small ad hoc diagrams in trusted spaces may use lighter rules — document exceptions explicitly on the governance page.
Pilot Trial Checklist
Test governance on one real architecture diagram your team reopens every quarter:
- Publish the draft standard page in a pilot space.
- Install or confirm the approved Mermaid macro with admin sign-off.
- Authors create overview diagram with stable prefixed IDs.
- Authors add one detail diagram on a child page or second macro.
- Reviewer leaves comments referencing node IDs only.
- Author pastes a tutorial snippet with click syntax; confirm remediation path.
- Export Mermaid source for a release snapshot.
- Search for two service names reviewers use in meetings — if the macro supports search.
- Confirm page history shows intentional diagram edits.
- Retrospective: update standard page with team-specific prefixes or thresholds.
Final Recommendation
Mermaid diagram governance Confluence programs need a published standard: naming, review habits, safe defaults, splitting rules, and rollout checks — not only a macro install.
Align author rules with what your macro enforces. Forbid patterns strict renderers block anyway. Split diagrams before reader tools become a substitute for design discipline. Run security review before org-wide rollout, and train authors on the difference between Mermaid tutorial defaults and Confluence-safe source.
If your team standardizes on Mermaid in Confluence and wants a macro that models strict safe defaults, Diagram Lens is worth evaluating after Marketplace verification and sandbox tests — not as a replacement for governance, but as a renderer that reinforces it.
See the Diagram Lens security page and support page for vendor-published details to compare against your pilot results.