Skip to main content
With the Tailscale integration, you can granularly manage SSH access within your tailnet:
  • Allow users to request just-in-time access to resources on your tailnet from the web and Slack
  • Set the right resource owners to delegate approvals to those with the most context
  • Configure day-one access to Tailscale resources with groups from your identity provider
  • Automatically escalate and revoke privileged resource access based on on-call schedules, e.g., PagerDuty or Opsgenie

Supported resources

Requirements

Before you begin this guide, you’ll need a tailnet and an Opal account. To learn how to create a tailnet, see the Tailscale quickstart.

Configuration steps

To use Opal with Tailscale:
  1. Generate an OAuth client from the OAuth clients page of the admin console and give the policy file the write scope.
    1. Using an API key instead of an OAuth client is deprecated. They are still supported but not recommended, as they have a maximum expiry of 90 days and must be refreshed manually.
    2. To upgrade a Tailscale app that uses an API key, find the app in Inventory, then select Setup > Edit. Add the OAuth credentials and remove the API key. After you save the settings, check the App validations section to confirm your app authenticated correctly. No further action is needed after you add valid credentials.
  2. In Opal, go to Inventory, click on the + App icon, and select Tailscale. Set the following fields.
  1. Import Tailscale resources to Opal by selecting Import assets on the app’s Assets tab.
For each ACL tag that is selected, Opal automatically parses the existing access rules and SSH access rules that apply to that tag, and which groups have access to the tagged sources using those rules. Users can now request access or SSH access to a specific tag in Tailscale or to join a specific group.

Tailscale user roles

If you self-host Opal, Tailscale user roles need version 1.1268.0 or later.
Opal can also sync Tailscale user roles as Tailscale Role resources, and grant and revoke them, including time-bound grants. Each of these roles is one resource, whose members are the tailnet users who hold it:
  • Admin
  • IT admin
  • Network admin
  • Billing admin
  • Auditor
Opal never syncs, grants, or changes the Owner role, and refuses any role grant to the tailnet owner. Member isn’t a resource: it’s the role a user returns to when Opal revokes their last role.

How role grants work

A Tailscale user holds exactly one role, so:
  • Granting a role to someone who holds another one switches them to the new role.
  • Revoking a role, or letting a time-bound grant expire, sets the user back to the role Opal still grants them on this app, or to Member if Opal grants none. For example, a user who holds Admin in Opal and is given Network admin for an hour returns to Admin when it expires.
  • While a user holds a time-bound role, Opal keeps their standing role grant, even though Tailscale shows only the time-bound role.
  • Revoking a role from someone who no longer holds it changes nothing. Opal never removes a user from the tailnet.

Set up user roles

Add these scopes to the OAuth client the app uses, alongside the policy file scope from step 1: If your OAuth client doesn’t have them, generate a new one with these scopes, then in Opal go to Setup > Edit and replace the client ID and secret. The App validations section shows Opal can read Tailscale users when the scopes are in place. Then import the roles on the app’s Assets tab with Import assets.
Last modified on December 3, 2026