Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Summary

  • Securing a macro with Macro Security for Confluence is helpful for particular, often more powerful macros.
  • When Macro Security is desired for a particular macro, a set of secured usage configurations (see options below) can be uniquely defined for that macro.
  • See the table below for a list of macros from Bob Swift Atlassian add-ons that implement Macro Security, along with additional details about what is specifically enabled for each macro. 
  • For other macros (not outlined below) where Macro Security is also desired, developers may enable their own macros to participate. See Using the Macro Security Macro to Control User Macros for more details.



Panel
bgColor#efefef

 On This Page:

Table of Contents
maxLevel3


HTML Comment
hiddentrue

This page is referenced from the add-on's Get Started dialog


Usage

  • The basis of Macro Security is to prevent certain “restricted” macros from being deployed or edited within Confluence pages by unauthorized users, unless the edit restrictions defined for the page match the security restrictions defined for the macro OR the macro has been configured for and is being used in a space referenced by the Trusted Spaces approach for Macro Security.

  • In some cases, you may opt to secure only specific macro parameters rather than the entire macro.
  • Once a macro (or a macro parameter) has been configured for restricted use, you need to review any existing Confluence page that uses that macro to ensure its page restrictions match that macro's newly configured security restrictions.
  • For enabled macros that are marked as Use Restriction below, a security configuration entry is required for that macro before that macro will work on any installation where Macro Security enabled. 
  • Visit our Macro Security User's Guide for more information.

Legend 

ColumnDescriptionExample Configuration
Use Restriction
(tick) means macro can only be used by authorized users

sql = confluence-administrators

Parameter Restriction
(tick) means that one or more parameters can be restricted in total or by value if the parameter indicates this specifically

sql.datasource.* = confluence-administrators
sql.datasource.testDS = *ANY

Controlled ParametersList of those parameters that can be restricted or restricted by value

Enabled Macros

(warning) Please note that both the parameter names and values are case-sensitive!

Table plus
sortColumn1
columnTypesS,S,E,E


MacroAdd-onUse
Restriction
Parameter
Restriction
Controlled ParametersUnrestricted Configuration
sqlSQL(tick)(tick)
  • datasource (by value)
  • limit
  • disableAntiXss
  • querytimeout


sql = *ANY

sql.datasource.* = *ANY

sql.limit = *ANY

sql.disableAntiXss = *ANY

sql.querytimeout = *ANY

sql-querySQL(tick)(tick)
  • datasource (by value) 
  • limit
  • disableAntiXss
  • querytimeout

sql-query = *ANY

sql-query.datasource.* = *ANY

sql-query.limit = *ANY

sql-query.disableAntiXss = *ANY

sql-query.querytimeout = *ANY

sql-fileSQL(tick)(tick)
  • datasource (by value)
  • file (by value)
  • limit
  • disableAntiXss
  • querytimeout

sql-file = *ANY

sql-file.file.* = *ANY

sql-file.datasource.* = *ANY

sql-file.limit = *ANY

sql-file.disableAntiXss = *ANY

sql-file.querytimeout = *ANY

beanshellSCRP(tick)

beanshell = *ANY

groovySCRP (tick)

groovy = *ANY

gantSCRP (tick)

gant = *ANY

jythonSCRP (tick)

jython = *ANY

javascriptSCRP (tick)

javascript = *ANY

htmlHTML(tick)(tick)
  • html
  • url
  • allowJavascript
  • profile (by value)
Info

URLs are allowed if Macro Security
is not installed or is disabled.


html = *ANY

html.allowJavascript = *ANY

html.url = *ANY

html.profile.* = *ANY

html-bobswift 

Info

Since HTML for Confluence 5.7.0 version


HTML(tick)(tick)
  • html-bobswift
  • url
  • allowJavascript
  • profile (by value)
Info

URLs are allowed if Macro Security
is not installed or is disabled.


html-bobswift = *ANY

html-bobswift.allowJavascript = *ANY

html-bobswift.url = *ANY

html-bobswift.profile.* = *ANY

xsltHTML (tick)
  • disableSecureProcessing

xslt = *ANY

xslt.disableSecureProcessing = *ANY

cliCCLI(tick)(tick)
  • profile (by value)
  • product (by value)
  • directory (by value)
  • datasource (by value)

cli = *ANY

cli.profile.* = *ANY

cli.product.* = *ANY

cli.directory.* = *ANY

cli.datasource.* = *ANY

include-remoteCCLI(tick)(tick)
  • profile (by value)

include-remote = *ANY

include-remote.profile.* = *ANY

cacheCACHE(tick)

cache = *ANY

futureCACHE(tick)(tick)
  • timeout (if higher than default)

future = *ANY

future.timeout = *ANY

runRUN(tick)(tick)
  • disableAntiXss
  • parameterinput (by value)

run = *ANY

run.disableAntiXss = *ANY

run.parameterinput.* = *ANY
run-nowRUN (tick)(tick)
  • disableAntiXss
  • parameterinput  (by value)

run-now = *ANY

run-now.disableAntiXss = *ANY

run-now.parameterinput.* = *ANY
csvTBL
(tick)
  • url
  • disableAntiXss
Info

URLs are allowed if Macro Security
is not installed or is disabled.


csv.url = *ANY

csv.disableAntiXss = *ANY

json-tableTBL
(tick)
  • url
  • disableAntiXss
Info

URLs are allowed if Macro Security
is not installed or is disabled.


json-table.url = *ANY

json-table.disableAntiXss = *ANY

excelXL
(tick)
  • url
  • disableAntiXss
Info

URLs are allowed if Macro Security
is not installed or is disabled.


excel.url = *ANY

excel.disableAntiXss = *ANY

flashFLASH
(tick)
  • url
Info

URLs are allowed if Macro Security
is not installed or is disabled.


flash.url = *ANY

markdownMARKDOWN
(tick)
  • allowHtml

markdown.allowHtml = *ANY

markdown-attachmentMARKDOWN
(tick)
  • allowHtml

markdown-attachment.allowHtml = *ANY

markdown-urlMARKDOWN
(tick)
  • allowHtml
  • profile (by value)

markdown-url.allowHtml = *ANY

markdown-url.profile.* = *ANY
code-proCODE
(tick)
  • url
  • profile (by value)
Info

URLs are allowed if Macro Security
is not installed or is disabled.


code-pro.url = *ANY

code-pro.profile.* = *ANY


Example Configurations

The Example Configurations page provides sample properties files you can download and use as the starting point for  your Macro Security configuration.

Configuration Tips

See Configuring and Enabling Macro Security for basic information and Understanding How Macro Security Works to learn about Macro Security in general and to review several example syntaxes.

Include Page
_ConfigurationTips
_ConfigurationTips


Info
titleCloud

 Macro security is not available on Cloud (OnDemand). Behavior of macros for Cloud is the same as if Macro Security was not installed.