Traffic policy is available only on paid plans
Traffic policy is available only on paid plans: https://my.tuna.am/subscription
tuna CLI shows this error when you start an HTTP tunnel with tuna http or a command built on it. The tunnel doesn't start, and the client exits right away. Without the interactive interface, for example in a service log or with --log=stdout, the line looks like this:
FATA[12:00:00] Traffic policy is available only on paid plans: https://my.tuna.am/subscription
Cause
Traffic policies require a subscription. After signing in, the client checks for rules (rules) and stops if the subscription isn't active.
Rules are read from several places:
- the
.tuna.ymlfile in the current directory, read by default even without flags; - the file from
--policy-fileor theTUNA_POLICY_FILEvariable; - the URL from
--policy-url.
That's why the error often shows up when you start a tunnel from a project directory where a teammate has already put a .tuna.yml.
What to do
- Check whether there's a
.tuna.ymlin the directory you start the tunnel from, and whether--policy-file,--policy-urlorTUNA_POLICY_FILEis set. - If you don't need the rules, start the tunnel from another directory or point to a file without rules:
--policy-file=/path/to/empty.yml. - Run
tuna whoamito check that the client is signed in to the account with the subscription. - If you need the rules, get a subscription or renew it in the dashboard.