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. Whether you choose 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) or in one specific space (space template).
Our goal is to end up with a Scaffolding form that looks like this:
As you can see, it's quite a straightforward 2x2 table which uses only a Reporting macro (Report Info), a Scaffolding macro (Text Data), and a Security and Encryption macro (Secure).
The Report Info uses the page:title
key to return the current page's title.
The Text Data macro is given the name of system_credentials
.
Within the Text Data macro is inserted a Secure macro with the title Credentials
.
Make sure to 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, 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:
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.