Services | Twingate

Services

Services offer a way to provide programmatic, centrally-controlled, and consistent access controls for automated processes such as CI/CD pipelines and custom applications.

Any Resource that is defined in Twingate can be assigned to a Service, User, or both. This allows you to create consistent zero trust access controls across your infrastructure.

More specific details are described below, but the following summarizes the capabilities of Services in Twingate:

Service Components

Avoid overprovisioning Service Keys

Every Service Key on a Service Account is individually API rate-limited. As a result, overprovisioning may result in throttling or other issues. In situations where high-traffic systems need access to Resources, be sure to use a unique Service Key for each system.

Create a New Service

1. Navigate to Team > Services, and select “Create Service Account”

2. Select “Generate Key” to create a new Service Key

3. Save the new Service Key.

This is the only time that the Service Key can be viewed and copied.

4. Select “Add Resource” to assign Resource(s) to the Service.

Any Service Key authorizes access to all Resources assigned to the Service.

You are now ready to access the Service's Resources programmatically

For instructions, see our Windows or Linux headless mode configuration guides.

Service Key lifecycle

Valid Service Key states are summarized in the table below.

State Allowed Sections Valid? Notes
Active Revoke Edit name Yes This is the default state for a new Service Key. Service Keys are only valid and usable when active. Service Key expiry can only be set at creation time; unlimited expiration is allowed. The Service Key’s name may also be edited while active.
Revoked Delete No Service Keys must be revoked before they are deleted. Once revoked, keys cannot be made active again.
Expired Delete No Service Keys expire automatically unless created with an unlimited expiration.
Deleted N/A No Service Keys that are deleted are permanently deleted and cannot be recovered.

Last updated 5 months ago