Part 1 - Creating a password page template
Overview
Before we can create a Password Manager page, we'll need every Confluence user to standardize the way they store their passwords or secrets. A great way to do that would be to use Scaffolding's Live Template's feature.
After the Live Template has been created, any Confluence user who wants to use Confluence to store their passwords or secrets can create a new page using the Live Template.
Step 1Â
Let's start with creating a Secrets page template using Scaffolding's Live Template macro.
This template can be created as a global template or a space template.
Choosing to create a global or space template depends on if you allow your Confluence users to create pages to store passwords or secrets
in any space (global template)
in one specific space (space template)
Our goal is to end up with a Scaffolding form similar to the following.
This is a simple 2x2 table that uses the following macros
a Reporting macro (Report Info)
a Scaffolding macro (Text Data)
a Security and Encryption macro (Secure).
The Report Info macro
uses the
page:title
key to return the current page's title
The Text Data macro
is given the name of
system_credentials
The Secure macro with the title Credentials
is inserted into the Text Data macro.
Save this template and give it an easy-to-remember name such as "Password Page Template" or "Secrets Template".
Source code
The following source code is shared using Confluence Storage Format. This is the XHTML-based format that Confluence uses to store the content of pages, page templates, blueprints, blog posts and comments.
For more information on how to use this source code on your Confluence, read the following article - How do I use Recipes that use the Storage Format with the Confluence Source Editor?
Secrets Template - Storage Format
Step 2
Now, when your users need to create a page where they are required to share passwords, they must use the Live Template you created, by creating a new page and using the Live Template macro with the template you created.