Tailnet access for agents
If your organization has a tailnet set up by your Ellaworx administrator, you can create a credential for an agent or a machine. The agent uses it to join the tailnet with the agx CLI. You never handle a Tailscale secret: Ellaworx issues a short-lived, single-use key each time the agent connects.
The Tailnets page appears under Settings only for organizations that have a tailnet assigned.
Create a credential
- Open Settings → Tailnets and choose Create credential.
- Pick the tailnet and give the credential a name, for example
build-agent-01. - Choose the tags the agent joins with. You can pick any subset of the tags your organization is allowed to use.
- Optionally set how long each issued key stays valid, an expiry for the whole credential, and a fleet.
- Choose Create credential.
Each tailnet allows a limited number of active credentials. The page shows how many you have used.
Save the secret
After you create the credential a dialog shows the client ID and the client secret. The secret is shown only once. Copy it now; if you lose it, revoke the credential and create a new one.
The dialog also gives you two ready-to-paste options.
Command, run on the machine that should join:
printf '%s' '<secret>' | agx tailscale enable \
--oauth-url <token-url> \
--oauth-client-id <client-id> \
--oauth-client-secret-stdinEnvironment variables, for an agent process:
AGX_TAILSCALE=1
AGX_TAILSCALE_OAUTH_URL=<token-url>
AGX_TAILSCALE_OAUTH_CLIENT_ID=<client-id>
AGX_TAILSCALE_OAUTH_CLIENT_SECRET=<secret>Join the tailnet
After agx tailscale enable, bring the machine up and check it:
agx tailscale up
agx tailscale statusThe machine joins with exactly the tags of the credential and disappears from the tailnet when it goes offline. Each agx tailscale up gets a fresh key, so the credential itself can be reused.
See and revoke credentials
The table shows each credential's name, tailnet, tags, who created it, when it was last used, its expiry and its status (Active, Expired or Revoked). You see the credentials you created; organization admins see everyone's.
To revoke a credential, choose Revoke and confirm. It cannot mint new keys, and keys it issued that were not used yet are deleted. A machine that already joined stays connected until it goes offline; ask your administrator to remove it from the tailnet if it must leave now. A revoked credential cannot be restored.
A credential also stops working when you leave the organization, when its expiry passes, or when your administrator turns the tailnet off for the organization.
Troubleshooting
If agx tailscale up fails with invalid_client, the credential is not usable. Check that it is still Active in the table, that the secret was copied correctly, and that you are still a member of the organization. If it keeps failing, ask your administrator to check the tailnet assignment.