Create a Google Apigee X Machine
Focus
Focus
Next‑Gen Trust Security

Create a Google Apigee X Machine

Table of Contents

Create a Google Apigee X Machine

Create a Google Apigee X machine so Next-Gen Trust Security can discover and renew the client certificates that Apigee presents to your backend services over mutual TLS (mTLS). One machine covers one Apigee organization. The connector runs in the cloud, so no VSatellite is needed.

Before You Begin

  • A Superuser role or a custom role with write access to the Machines permission set.
  • The name of the Apigee organization, and the ID of the Google Cloud project that hosts it.
  • A Google Cloud service account in that project with these Identity and Access Management (IAM) permissions. A custom role lets you grant only these:
    • For discovery: apigee.organizations.get, apigee.environments.get, and apigee.keystorealiases.exportCertificate.
    • For provisioning, also: apigee.keystores.create, apigee.keystorealiases.create, apigee.references.get, apigee.references.update, and apigee.keystores.delete.
  • A JSON key for the service account.
Note: Next-Gen Trust Security manages only certificates that it can renew without editing a target server. Each certificate must be the only alias in its keystore, and the keystore must be used exactly once: through one Apigee reference, as the client key of one enabled target server that has TLS and client authentication turned on. Discovery skips every other certificate, including truststore certificates, aliases that no enabled target server uses, keystores that a target server names directly instead of through a reference, and keystores that hold more than one alias.

To Create a Google Apigee X Machine

  1. Sign in to Next-Gen Trust Security.
  2. Click Insights > Certificate Installations > Machines.
  3. Click New, and then select Google Apigee X.
  4. On the Properties step, in Name, enter a name for the machine.
  5. (Optional) For Authorized Workspaces, choose the workspaces to share the machine with. Sharing is supported for machines that use credentials you enter directly. To learn what other workspaces can do with a shared machine, see Sharing Makes a Resource Visible Elsewhere.
  6. For Authentication Method, choose Service Account Key.
    Important: Default Credentials (Workload Identity) is selected by default, but don't use it. It signs in with the Google Cloud identity of the host that runs the connector, and the connector runs in Next-Gen Trust Security, which has no Google Cloud identity in your project.
  7. In Service Account Key, paste the entire contents of the service account's JSON key file. Next-Gen Trust Security accepts only Google Cloud service account keys (key type service_account) for googleapis.com.
    Note: Next-Gen Trust Security encrypts the credentials you enter and doesn't display them again. On the machine's Properties tab, they appear masked. To keep a stored credential when you edit the machine, leave its masked value unchanged. Keep your own secure record of the credentials in case you need them again.
  8. In Apigee Organization, enter the name of the Apigee organization to manage. The name must start with a lowercase letter or digit, contain only lowercase letters, digits, and hyphens, and be at most 63 characters long.
  9. In Google Cloud Project ID, enter the ID of the Google Cloud project that hosts the Apigee organization.
  10. (Optional) In Environments, enter a comma-separated list of the Apigee environments to manage, for example prod, test. Leave it empty to manage all environments in the organization.
    Discovery and provisioning both respect this list. Next-Gen Trust Security ignores names that don't exist in the organization, and it rejects provisioning to an environment that isn't in the list.
  11. Click Test Access. After the connection succeeds, click Continue. The Discovery step opens.
    Note: The test reads the Apigee organization. It fails if the key or the organization name is wrong, or if the service account lacks the apigee.organizations.get permission. The test doesn't report why it failed, so check each of these. A successful test doesn't confirm the permissions that discovery and provisioning need.
  12. (Optional) To skip certificates that have already expired, enable Exclude Expired Certificates.
    For each environment, discovery reads the deployed configuration: its keystores and aliases, references, and target servers. It finds each certificate that meets the conditions in Before You Begin and records the keystore, alias, target server, and reference that use it.
  13. (Optional) To discover certificates on a schedule, enable Schedule. For Repeat every, choose Day, Week, or Month, and then in At, enter the time. For Week, select the days of the week. For Month, enter the days in Day of month. Times are in Coordinated Universal Time (UTC).
  14. Click Continue. The Provisioning step opens.
  15. (Optional) To provision certificates on a schedule, enable Schedule. For Repeat every, choose Day, Week, or Month, and then in At, enter the time. For Week, select the days of the week. For Month, enter the days in Day of month. Times are in Coordinated Universal Time (UTC).
    Scheduled provisioning pushes only certificates that are queued for deployment, such as renewed certificates, so renewals install during the window you choose.
  16. Click Finish.

What's Next?

After you create the machine, run discovery on it to find the certificates your target servers use. You can then renew a discovered certificate.