Tagging certificates¶
In TLS Protect Cloud, tags are user-defined keys or key:value pairs that can be assigned to certificates. Tags allow you to add customized meta information to certificates beyond just the certificate properties. This gives you more insight and control in managing your certificate inventory, and it provides the ability for 3rd party integrations to act based on the presence or absence of tags.
Example
One example use of tags might be to use a team-name:purpose tagging convention. Following that convention, you might have tags such as infrastructure:loadbalancer
and infrastructure:database
.
After you assign tags to certificates, you can filter your certificate inventory by these tags. This feature helps you to quickly and easily manage your inventory, facilitating the creation, organization, and management of certificate-related tasks.
You can add tags to a certificate request, and you can both add and edit tags for existing certificates. Tags can be centrally managed by administrators using the Configurations > Tags page.
Before you begin¶
- Resource Owners can create, assign, and remove tags only when selecting a certificate that belongs to an application that the Resource Owner owns. Resource Owner can also filter the certificate inventory using tags. Other tagging tasks must be performed by an administrator.
- Know at least one of the keys or key:value pairs you want to create as a tag. You can create new tags at any time.
- Creating a key:value pair also creates a standalone tag for the key value. For example, if you create a tag called
infrastructure:database
, two tags will be created:infrastructure
andinfrastructure:database
. - A certificate can have a maximum of 20 tags assigned to it.
Managing tags centrally¶
If you are an administrator, the Configurations > Tags page lets you see and manage all the tags in your system. Each tag is listed including both the keys and values, and for each key or value you can see how many active (non-retired) certificates use that tag.
Click on the value in the Active Certificates tab to view those certificates in the certificate inventory.
If you have a large number of tags, you might want to use the Search box to help you locate an existing tag.
If you need to create or delete tags, see Editing tags.
Assigning tags to an existing certificate¶
- Sign in to Venafi Control Plane.
- Click Inventory > Certificates.
- In the left navigation, select the certificates you want to add a tag to by clicking the checkbox next to the certificate.
- In the local menu bar, click Tag > Add Tags.
- Click in the Tags field to open a list of existing tags, and select the tags you want to apply. (Or you can click the Assign link in the Tags section on the certificate.)
-
If the tag doesn't yet exist, type the
tag
name orkey:value
pair into the Tags field.When creating new tags
-
Creating a
key:value
pair also creates a standalone tag for thekey
value. For example, if you create a tag calledapplication:database
, two tags will be created:application
andapplication:database
. -
Once tags are created, the tag name cannot be changed or deleted using the UI, even if they aren't assigned to any certificates. Double-check that you've entered all new tag names correctly before saving.
-
You can have multiple versions of a key with different values.
-
-
The Tags field will populate with the tags you select.
- If you want to replace the existing tags, click Replace current tag assignments. If you leave this unchecked, the tags will be added to the existing set.
- Click Save.
Once the tags are applied, you'll see them listed under the Tags heading when viewing certificate details. You'll also see them listed in the Tags column when in the list view of the certificate inventory. The tags for a certificate are maintained when you renew the certificate.
Changing tags assigned to a certificate¶
Changing the tags on a single certificate¶
- Click Inventory > Certificates.
- Select the certificate that you want to change the tag assignment for.
- In the local menu bar, click Tag > Add Tags.
-
Remove any existing tag assignments by clicking the delete icon for the tags you want to remove.
-
Add any new tag assignments. You can select existing tags or create new tags to add. Keep in mind that there is a limit of 20 tags.
- Click Save.
Modifying the values of tags on a single certificate¶
- Click Inventory > Certificates.
- Select the certificate whose tags you want to edit.
- In the local menu bar, click Tags > Edit Tags.
- Edit the values for the existing tags.
- Click Save.
Changing the tags on multiple certificates¶
- Click Inventory > Certificates.
- Click the checkboxes next to the certificates that these tag changes should apply to.
- In the local menu bar, click Tag > Add Tags. (Or, you can click the Tag link on the certificate details.)
- Add any new tag assignments. You can select existing tags or create new tags to add.
-
If you want to replace existing tag assignments for the selected certificates, check the Replace current tags checkbox. Leave it unchecked if you just want to add the new tag assignments and leave the current tag assignments as they are.
Notes
-
If adding tags causes one or more certificates to exceed the 20 tag limit, no changes will be made to those certificates, and a message will be displayed listing the certificates that weren't changed. The changes will still be applied to certificates that don't exceed the limit.
-
If all the certificates exceed the 20 tag limit, then the operation fails with a message that all certificates exceed the limit.
-
The Replace current tags checkbox is available only when changing the tags on multiple certificates. To change the tags on a single certificate, follow the steps in Changing the tags on a single certificate above.
-
-
Click Save.
Clearing all tags from a certificate¶
You can clear the tag assignments from any certificate. Clearing the assignments clears all tags from the certificate.
- Click Inventory > Certificates.
- In the left navigation, select the certificates you want to clear the tags from by clicking the checkbox next to the certificate.
- In the local menu bar, click Tag > Clear Tags.
- Confirm that you want to remove all tag assignments from the certificate by clicking Clear.
The tag assignments are now cleared for the selected certificates. Note that neither clearing tag assignments nor retiring the certificate deletes the tags themselves. The tags remain available in TLS Protect Cloud to be assigned to other certificates.
Filtering certificate inventory by tags¶
Once you have tags assigned to certificates, you can filter the certificate inventory based on those tags. To do so, select Tag from the Add Criteria drop-down, and then select the tags you want to filter on.
When filtering the inventory, you may notice that there is a system tag called Venafi. This tag is used by TLS Protect Cloud, and it can't be modified, assigned, removed, or deleted.
Viewing tagging event logs¶
All tagging events are logged in the TLS Protect Cloud event log. When filtering the event log, refer to the following table to view specific tagging events:
Tagging event | Add Criteria | Event |
---|---|---|
When a new tag is created | Event | Tags Created |
When an existing tag is deleted from the system | Event | Tags Deleted |
When a tag is removed from a certificate | Event | Certificate All Tags Deleted |
When a tag replaces an existing tag on a certificate | Event | Certificate Tags Replaced |
A tag is added to a certificate | Event | Certificate Tags Added |
A tag is added to a certificate request | Event | Tags Assignment on Certificate Request |