--- title: "Operate this solution" description: "Check production readiness, clean up a validation run, monitor the boundary, rotate and disable the delegated team's token, and scale governed issuance to more teams." source_url: https://dev.digicert.com/solutions/governed-tls-issuance/operate.html --- # Operate this solution Check production readiness, clean up a validation run, monitor the boundary, rotate and disable the delegated team's token, and scale governed issuance to more teams. The central PKI team uses this page after the first certificate is issued, to: - Move the governed issuance path to production, or clean up a validation run. - Understand where the delegated team's token reaches beyond its profile. - Monitor the boundary as the delegated team issues certificates. - Rotate or disable the delegated team's token. - Recover from throttled, pending, or uncertain requests. - Onboard more teams. ## Production readiness checklist ### Profile and issuing CA - [ ] Production uses its own profile, separate from the non-production profile in this manual, with its own review date. The central PKI team maps production `environment` values to the certificates it issues. - [ ] The production profile binds only the production service user's API token ID. - [ ] The team's profile is the only profile that binds the delegated team's token, and every active REST API profile in the account binds its API tokens, as checked in [Confirm that no other profile accepts the token](https://dev.digicert.com/md/solutions/governed-tls-issuance/phase-4-governed-profile.md#step-43-confirm-that-no-other-profile-accepts-the-token). - [ ] The FQDN allow-list matches the namespace the namespace owner approved, and it excludes wildcard and broad SAN requests unless they are approved. Changes to the namespace go through the namespace owner. - [ ] The production profile's `profile-request.json` is under change control, and every update to the profile sends the whole file. - [ ] The profile's `fields` fix validity, signature algorithm, and key sizes to the cryptographic baseline for the criticality tier of the services it covers. - [ ] The issuing CA's approval evidence is in the CA source registry, including any SHA-1 finding and the CRL and OCSP configuration. ### Identities and credentials - [ ] Production uses its own delegated service user, separate from non-production, with one role, one account, an expiration date, and a recorded owner. - [ ] Only the central PKI team holds the setup credential, it's in an approved secret manager, and it never appears in the delegated team's pipeline. - [ ] The delegated team's token has a rotation date, and the central PKI team has tested the emergency disable path in [Disable the delegated team's token in an emergency](#disable-the-delegated-teams-token-in-an-emergency). ### Delegated team's pipeline - [ ] The delegated team's pipeline generates the key on the service host, submits the CSR, and installs the certificate. - [ ] The pipeline reads `service_api_token` from the delegated team's secret manager, and a named person owns its rotation. ### Validation and monitoring - [ ] The platform rejects every guardrail test in [Validate the guardrails](https://dev.digicert.com/md/solutions/governed-tls-issuance/phase-5-governed-issuance.md#step-56-validate-the-guardrails), and the results are in the evidence pack. - [ ] Monitoring covers the common name as a separate control, and a named person on the central PKI team revokes any certificate with a common name outside the namespace. - [ ] Monitoring alerts for the signals in [Monitoring](#monitoring) route to the business and technical owners. ### Renewal and evidence - [ ] The renewal approach for certificates issued from the profile is decided before the first certificate reaches its renewal window. - [ ] You've decided where to retain the evidence pack for each issuance, and for how long. ## Clean up a validation run Remove resources from a demo-tenant run in this order, so the delegated token is deleted before the profile and business unit that restrict it: 1. Delete the test certificate's seat. Deleting a seat revokes every certificate issued for it and releases the seat, which revoking alone doesn't. Send `DELETE /mpki/api/v1/seat/{seat_id}` with `seat_id` set to the server name, and `seat_type_id=SERVER_SEAT` and `business_unit_id` as query parameters. A successful response returns `204 No Content`. Delete the seat that the out-of-namespace guardrail test created the same way. To revoke the certificate but keep its seat, send `PUT /mpki/api/v1/certificate/{serial_number}/revoke` with the `revocation_reason` `cessation_of_operation` instead. A successful response returns `204 No Content`. Retrieve the certificate again and confirm that `status` is `revoked`. 1. Delete the delegated service user with `DELETE /account/api/v1/user/{user_id}`. Deleting a service user disrupts any integration that relies on its token. 1. Retire the profile in the DigiCert® Trust Lifecycle Manager UI. The API has no operation to delete or suspend a profile. In **Policies** > **Certificate profiles**, select **Suspend profile** to disable it so you can reactivate it later, or **Delete profile** to remove it permanently. Deleting a profile doesn't reclaim its seats. See Suspend certificate profiles and Delete certificate profiles. 1. Delete the business unit with `DELETE /mpki/api/v1/business-unit/{bu_id}` after you retire its profiles. 1. Delete the custom attributes and certificate owners only if no other team uses them. Custom attributes are account-wide, and deleting one unlinks it from every associated profile and certificate. 1. Copy the evidence you need to keep, such as `server-cert.pem` and the audit event, then delete the working directory. It still holds `server.key`. ## Production identities Keep two kinds of identity separate: - **The central PKI team's setup credential** creates business units, metadata, profiles, and service users, and maps the mandatory metadata to each certificate. It belongs to the PKI team and never appears in a delegated team's pipeline. Prefer a dedicated setup service user, so its actions appear in audit logs under a named non-human identity. - **One delegated service user per team, per environment.** Each one holds only the issuance role and expires on a known date. Its token is the only token its profile binds, and no other profile binds it. Never share a delegated service user across teams or environments. Keep emergency access separate from both. An emergency issuance path for `tier0` and `tier1` services uses its own emergency profile and approvers, prepared in advance. It never uses the delegated team's token. ## Delegation boundaries The profile's token binding is the delegated team's boundary. The delegated service user's role and token still reach the whole account in a few ways, so plan for them: - **Business unit administration doesn't confine the service user.** Only standard users can be business unit administrators, so a service user reaches every business unit in the account. Assigning one with `PUT /mpki/api/v1/business-unit/{id}/admin` returns `400` and `invalid_input_field` "Can't assign user without TLM administrator access to this account". This manual relies on the profile's token binding instead. - **Token binding protects only the profiles that turn it on.** A REST API profile without token binding accepts the delegated team's token. Make token binding mandatory in your profile standard, and keep the check in [Confirm that no other profile accepts the token](https://dev.digicert.com/md/solutions/governed-tls-issuance/phase-4-governed-profile.md#step-43-confirm-that-no-other-profile-accepts-the-token) in your monitoring. - **The token can search the whole inventory.** The **Certificates** permission lets the token search certificates in every business unit. Search results carry certificate details, owners, and metadata, but no private keys. - **Enrollment (Manage) reaches manual-approval requests.** The permission lets the token approve or reject a manual-approval request for any profile in the account, even a profile in another business unit that binds other tokens. Approving a request creates a seat in the profile's business unit. If the account uses manual approval, alert on the delegated service user's enrollment updates, as described in [Monitoring](#monitoring). - **Stronger isolation needs a separate account.** A service user reaches only the accounts it's assigned to. When these exposures aren't acceptable, give the team its own DigiCert® ONE account, with its own issuing CA assignment, metadata standard, and seats. For ACME-capable platforms, an ACME profile issues external account binding (EAB) credentials for that profile alone, and ACME has no inventory access. ## Monitoring | What to monitor | Product | How | Alert threshold | |-----------------|---------|-----|-----------------| | Certificates entering the renewal window | Trust Lifecycle Manager | `GET /mpki/api/v1/certificate-search` with `business_unit_id`, `status=issued`, and `valid_to=_` | A certificate inside the profile's renewal window with no renewal in progress | | Certificates missing an owner or mandatory attribute | Trust Lifecycle Manager | `GET /mpki/api/v1/certificate-search` totals for `business_unit_id`, with and without the `cert_owners` and `custom_attributes` filters | Any difference | | Certificates from an unapproved issuer | Trust Lifecycle Manager | `GET /mpki/api/v1/certificate-search` with `business_unit_id`, comparing each item's `ica.id` with `ica_id` | Any item from another issuer | | Common names outside the namespace | Trust Lifecycle Manager | `GET /mpki/api/v1/certificate-search` with `business_unit_id`, testing each item's `common_name` against `fqdn_allow_pattern` | Any name that doesn't match | | Issuance failures | Trust Lifecycle Manager | `GET /mpki/api/v1/audit-log` with `business_unit_id`, `resource_type=enrollment`, and `status=failure` | Any failure | | Unexpected requesters | Trust Lifecycle Manager | `user` on successful `end_entity_certificate` events from `GET /mpki/api/v1/audit-log` | Any requester other than the delegated service user | | Profile changes | Trust Lifecycle Manager | `GET /mpki/api/v1/audit-log` with `resource_type=profile` and `action=update` | Any change without an approved change record | | Profiles missing from the profile catalog | Trust Lifecycle Manager | `GET /mpki/api/v2/profile`, matched on `business_unit_id` | Any profile not in the profile catalog | | REST API profiles that accept any token | Trust Lifecycle Manager | `GET /mpki/api/v2/profile`, filtered to active `rest_api` profiles with `third_party_app` authentication | Any profile where `api_token_binding_enabled` isn't `true` | | Delegated service user activity outside its profile | Trust Lifecycle Manager | `GET /mpki/api/v1/audit-log` with `admin_id=` | Any event whose `business_unit.id` isn't `business_unit_id`, or any `enrollment` event with `action` set to `update` | | Business unit seat capacity | Trust Lifecycle Manager | `GET /mpki/api/v1/business-unit/{bu_id}`, `available_seats_stats` for the seat type you allocated | Fewer unused seats than your team needs for planned issuance | | Issuing CA status | DigiCert® Private CA | `GET /certificate-authority/api/v1/ca/{id}` | `status` isn't `active`, `revocation.revoked` is `true`, or `validity.valid_to` is closer than the profile's certificate validity plus your renewal lead time | | Delegated service user and token expiry | DigiCert® Account Manager | `end_date` from `GET /account/api/v1/user/{user_id}` and from `GET /account/api/v1/api-access-token/{id}` | Within your rotation lead time of either date | For every query: - Send `account_id` with every certificate search and audit log query. - Page certificate searches with `offset` and `limit`, up to 100 per page, and stop when `has_more` is `false`. Searches can't reach past result 10,000. For larger business units, use the Reporting API. For specific checks: | Check | Note | |-------|------| | Certificates entering the renewal window | Stored profiles report the renewal window in `renewal_period_days`. | | Certificates from an unapproved issuer | With DigiCert Private CA view access, you can instead compare the business unit's search `total` with the `total` when you add `issuing_ca_serial_number` set to `ica_serial_number`. Don't filter with `issuing_ca_id`, which doesn't narrow the search. It returns certificates from every issuer. | | Common names outside the namespace | The profile can't restrict the common name, so this query is the control for it. When it finds a name outside the namespace, the central PKI team revokes the certificate, and the delegated team reissues it with a common name that matches its SAN DNS name. | | Issuance failures | The query finds requests that the FQDN allow-list rejected. Requests refused for an unbound token or missing seats aren't logged. | | Profile changes | Profile events don't carry a business unit, so don't filter this query on `business_unit_id`. Match each event to a profile by the profile `id` in `resource_id`. | | Profiles missing from the profile catalog, and REST API profiles that accept any token | Page the profile list as in [Confirm that no other profile accepts the token](https://dev.digicert.com/md/solutions/governed-tls-issuance/phase-4-governed-profile.md#step-43-confirm-that-no-other-profile-accepts-the-token). | | Delegated service user activity outside its profile | Send the query without `business_unit_id`, so the results include events in other business units. | | Issuing CA status | The CA's `status` stays `active` after the CA expires, so alert on `validity.valid_to` as well. | Route every alert to the technical owner and the business owner recorded in [Define the governance boundary](https://dev.digicert.com/md/solutions/governed-tls-issuance/phase-1-governance-boundary.md). Repeat [Validate the guardrails](https://dev.digicert.com/md/solutions/governed-tls-issuance/phase-5-governed-issuance.md#step-56-validate-the-guardrails) after any change to the profile, to token binding on any REST API profile, or to the delegated service user's role. ## Credential rotation ### Rotate the delegated team's token You can create a new API token for an existing service user, so rotation keeps the same service user and its role. The new token has a new ID, and the profile binding changes with it: 1. Create a replacement token with `POST /account/api/v1/api-access-token`. Send a `name`, an `end_date`, and `user_id` set to `service_user_id`. A successful response returns `201 Created` with the new token's `id` and its `token`, which the API returns only once. 1. In `profile-request.json` from [Create the token-bound profile](https://dev.digicert.com/md/solutions/governed-tls-issuance/phase-4-governed-profile.md#step-41-create-the-token-bound-profile), set `api_token_ids` to both the old and the new token IDs for the switchover. Send the whole file with `PUT /mpki/api/v1/profile/{profile_id}`. A successful update returns `204 No Content`, so confirm the binding with `GET /mpki/api/v2/profile/{profile_id}`. The update replaces the profile's settings. A request without `allowed_fqdn_regex` clears the FQDN allow-list, and profile reads don't show that the rules are gone. The update also replaces the binding with the list you send. If you omit both `api_token_ids` and `api_token_binding_enabled`, the binding stays unchanged. 1. Move the new token into the delegated team's secret manager, and confirm that the pipeline issues with it. 1. Set `api_token_ids` in `profile-request.json` to only the new token ID, and send the whole file again. 1. Disable the old token with `PUT /account/api/v1/api-access-token/{id}`, sending its `name` and `enabled` set to `false`. After your retention period, delete it with `DELETE /account/api/v1/api-access-token/{id}`. A deleted token still appears in `GET /account/api/v1/api-access-token/{id}`, with `active` and `enabled` set to `false`. 1. Repeat [Validate the guardrails](https://dev.digicert.com/md/solutions/governed-tls-issuance/phase-5-governed-issuance.md#step-56-validate-the-guardrails). Profile reads don't report the FQDN allow-list pattern, so these tests confirm that the updates kept it. Rotate on your scheduled date. Also rotate immediately when the custodian leaves, when you suspect the token is exposed, or when the team's scope changes. ### Disable the delegated team's token in an emergency When the delegated team's token might be exposed, disable it first and investigate second: 1. Disable the token with `PUT /account/api/v1/api-access-token/{id}`, sending the token's `name` and `enabled` set to `false`. Because the profile binds only that token, issuance through the profile stops until you bind a replacement. 1. Confirm the disable, which can take a short time to take effect. Repeat a request the issuance role can make, such as `GET /mpki/api/v1/certificate/{serial_number}`, with the old token until it returns `401` with `authentication_error`. Don't test with a request the role can't make, such as a business unit list. It returns `403` with `no_access` while the token still works, so it can't show whether the disable has taken effect. 1. Create and bind a replacement token, as described in [Rotate the delegated team's token](#rotate-the-delegated-teams-token). 1. Review the audit log for the token's recent actions. ### Rotate the setup credential Rotate the central PKI team's setup credential on the same schedule as other privileged credentials. See [Manage API token lifecycle](https://dev.digicert.com/md/account-manager-api/tutorials/manage-api-token-lifecycle.md). No profile binds the setup credential, so its rotation doesn't affect the delegated team. ## Retry and rate-limit behavior DigiCert® ONE rate limits apply per API token, and this workflow calls the APIs of three products. A throttled request returns `429 Too Many Requests` with a `Retry-After` header. Base your retry decision on the `429` status and `Retry-After`. See the [DigiCert API error reference](https://dev.digicert.com/md/get-started/error-handling-rate-limits.md). - Retry `GET` requests and throttled responses with exponential backoff, jitter, and a maximum attempt count. Honor `Retry-After`. - Don't blindly retry `POST /mpki/api/v1/certificate` after a timeout. The platform might have issued the certificate and consumed a seat. Search with `account_id`, `common_name`, and `profile_id` before you retry. - Before you retry a create request for a business unit, custom attribute, owner, profile, service user, or API token, search for the resource by name or email. All of these are create-once resources. ## Asynchronous operations A private profile with immediate issuance returns the certificate in the `POST /mpki/api/v1/certificate` response. When the response contains `request_id` instead, the certificate is pending, for example because the profile requires approval. Retrieve it with `POST /mpki/api/v1/certificate-pickup/{request_id}`, sending `profile.id` in the body. Pickup works for profiles with `rest_api` enrollment and `third_party_app` authentication. Poll with backoff and a maximum wait. Audit events might not appear immediately after the action they record. When the request to [retrieve the audit evidence](https://dev.digicert.com/md/solutions/governed-tls-issuance/phase-5-governed-issuance.md#step-55-retrieve-the-audit-evidence) returns no event, widen the `to` time and retry with backoff before you treat the evidence as missing. ## Recover from uncertain results Every create request in this workflow makes a resource once and isn't safe to repeat blindly. When a create times out or its response is lost, the resource might exist. Search for it before you send the request again: | Resource | Created in | Search before retrying | |----------|------------|------------------------| | Business unit | Phase 1, [Create the delegated business unit](https://dev.digicert.com/md/solutions/governed-tls-issuance/phase-1-governance-boundary.md#step-12-create-the-delegated-business-unit) | `GET /mpki/api/v1/business-unit` with `name` | | Custom attribute | Phase 1, [Create the mandatory metadata attributes](https://dev.digicert.com/md/solutions/governed-tls-issuance/phase-1-governance-boundary.md#step-14-create-the-mandatory-metadata-attributes) | `GET /mpki/api/v1/custom-attributes` with `account_id` and `name` | | Certificate owner | Phase 1, [Register the certificate owners](https://dev.digicert.com/md/solutions/governed-tls-issuance/phase-1-governance-boundary.md#step-15-register-the-certificate-owners) | `GET /mpki/api/v1/certificate-owners` with `account_id` and `email` | | Delegated service user | Phase 3, [Create the delegated service user](https://dev.digicert.com/md/solutions/governed-tls-issuance/phase-3-delegated-identity.md#step-32-create-the-delegated-service-user) | `GET /account/api/v1/user` with `account_id` and `user_type=service`, matching items on the exact `friendly_name` | | Profile | Phase 4, [Create the token-bound profile](https://dev.digicert.com/md/solutions/governed-tls-issuance/phase-4-governed-profile.md#step-41-create-the-token-bound-profile) | `GET /mpki/api/v2/profile`, matching items on `business_unit_id` and the exact `name` | | Certificate | Phase 5, [Issue the certificate as the delegated identity](https://dev.digicert.com/md/solutions/governed-tls-issuance/phase-5-governed-issuance.md#step-51-issue-the-certificate-as-the-delegated-identity) | `GET /mpki/api/v1/certificate-search` with `account_id`, `common_name`, and `profile_id` | | Replacement API token | This page, [Rotate the delegated team's token](#rotate-the-delegated-teams-token) | `GET /account/api/v1/api-access-token` with `user_id`, matching items on the exact `name` | If the service user exists but the response that carried its token was lost, the token can't be recovered. Create a replacement token, as described in [Rotate the delegated team's token](#rotate-the-delegated-teams-token), and bind it to the profile. ## Scaling To onboard more teams, give each team its own setup instead of extending another team's profile or service user: - Give each team its own business unit, delegated service user, and profile for each environment. - Reuse the account-wide metadata standard, and add values instead of attributes. The account supports a limited number of custom attributes. - Review the profile catalog on a regular schedule. Retire unused profiles, and consolidate near-duplicates. - Review the high-privilege roles and every delegated service user on a regular schedule, and immediately after team changes, incidents, or audits. - Keep token binding on for every REST API profile, so each team's token reaches only its own profile. - Watch seat capacity per business unit as teams grow. - Once teams issue at volume, move renewal to the automation pattern that fits each platform, such as ACME for ingress controllers or DigiCert agents and sensors for servers and load balancers. Before you automate a certificate, check it against the DigiCert® Trust Architecture Playbook's readiness gates. Automation without a known owner, install locations, and deployment method causes failures that spread faster and are harder to diagnose. This manual meets these gates in full or in part: - **Authorization.** The profile, business unit, service user, and token binding meet this gate. - **Ownership.** The business and technical owners are registered. Document an escalation path. - **Inventory accuracy.** Owners and metadata are on each certificate, and the profile limits names to the team's namespace. Record install locations when you deploy. - **Monitoring.** The [Monitoring](#monitoring) queries cover expiry and issuance failures. Add alerts for deployment failures. ## Related pages - [Request a TLS certificate](https://dev.digicert.com/md/trust-lifecycle-api/tutorials/request-a-tls-certificate.md) - [Bulk revoke multiple certificates](https://dev.digicert.com/md/trust-lifecycle-api/tutorials/bulk-certificate-revocation.md) - [Create and authenticate a service user](https://dev.digicert.com/md/account-manager-api/tutorials/create-and-authenticate-a-service-user.md) - [Audit API activity for compliance reporting](https://dev.digicert.com/md/account-manager-api/tutorials/audit-api-activity-for-compliance-reporting.md) - [Troubleshoot governed TLS issuance](https://dev.digicert.com/md/solutions/governed-tls-issuance/troubleshoot.md) - [Governed TLS issuance reference](https://dev.digicert.com/md/solutions/governed-tls-issuance/reference.md)