Organizing secrets with tags
New in Secret Store 1.2. If you don't see it, update Secret Store from the App Store.
Tags group your secrets without moving them anywhere. A secret can have
up to 20 tags, and a tag can sit inside another one: provider/aws is the tag
aws inside the group provider. The sidebar shows your tags as a tree, and
picking one filters the list.
Adding tags to a secret
In the New Secret or Edit Secret sheet, type a tag in the Tags field (it says Add tag…) and press Return. Click a tag’s × to remove it.
As you type, Secret Store suggests tags you’ve already used that contain what
you typed, in any part of the path: typing prod suggests aws/prod. Click
or tap a suggestion to add it. With a keyboard, the Up and Down arrows move
through the suggestions, Return adds the highlighted one, and Escape hides
them. Coming in 1.3
Choose Tag, beside the field, lists every tag you’ve used, indented by group, with a search field when there are many. It says No other tags when the secret already has them all.
Tag names are tidied as you add them, so the same tag is always spelled the same way:
- Letters become lowercase, and spaces become hyphens: AWS Prod becomes
aws-prod. - Only letters
a–z, digits,-,_and/are kept. Anything else is dropped. - A
/nests the tag. Leading, trailing and doubled slashes are removed. - A tag can be up to 50 characters long, counting the whole path.
You can also tag secrets from the list: right-click a secret (or touch and hold it on iPhone and iPad) and choose Add Tag…. Remove Tag in the same menu lists the tags on the selection.
To tag several secrets at once:
- On a Mac, select them (⌘-click or ⇧-click), then right-click and choose Add Tag to N Secrets….
- On iPhone and iPad, tap Select at the top of the list, tap the secrets you want, and use Add Tag, Remove Tag, Back Up or Delete in the toolbar at the bottom. Select All picks every secret in the list, and Done leaves Select mode. Coming in 1.3
Filtering by tag
The sidebar has All Secrets, Untagged (secrets with no tags), and your tags as a tree. Each row shows how many secrets it holds; a group’s count includes everything inside it. Click the arrow beside a group to collapse or expand it.
- Pick a tag to show only secrets with that tag. Picking
awsalso shows secrets taggedaws/prodor anything else underaws. - Pick more tags to narrow the list further: it shows secrets that match every tag you’ve picked.
- The picked tags also appear as tokens in the Filter secrets search field, which suggests your tags as you use it. Remove a token to drop that tag from the filter.
- Typing in the search field matches secret names, notes and tag names.
If nothing matches, the list says No Matching Secrets; Clear Filters shows everything again.
Renaming and deleting tags
Right-click a tag in the sidebar (or touch and hold on iPhone and iPad):
- Rename Tag… renames it on every secret that has it. Renaming to a tag
that already exists merges the two, and renaming
awstocloud/awsmoves it into a group. - Delete Tag… removes the tag from every secret that has it, after asking. The secrets themselves aren’t deleted.
- On a group, Rename Group… and Delete Group… do the same to the group and every tag inside it.
Managing all your tags Coming in 1.3
Manage Tags shows every tag in one list, nested under its group, with the number of secrets that have it. Open it with Secrets ▸ Manage Tags… on a Mac, or from the ⋯ menu on iPhone and iPad.
- Rename… and Rename Group… work as they do in the sidebar.
- Merge: select two or more tags (on iPhone and iPad, tap Select first), choose Merge…, then pick the tag to keep or type a new name. Every secret that had any of them ends up with the kept tag once.
- Delete: select one or more tags and choose Delete…. Secret Store says how many secrets will lose them before it removes anything; the secrets themselves are kept.
- Show Secrets filters the main list to that tag.
At the top, Suggestions points out tags that look like duplicates, such
as prod and production or api-key and api_keys, with a Merge…
button, and lists tags only one secret uses. They’re only suggestions:
nothing changes until you choose an action.
A rename or merge that would leave two secrets with the same name and the same tags changes nothing, and says which secret clashes.
Tagging files as you import them
When you import files as secrets, the import sheet can stamp the same tags on every imported secret. Tags are also kept in backups and come back when you restore.
Tags sync with the rest of a secret’s details through iCloud Keychain, so the same tree appears on your Mac, iPhone and iPad.