← changelog

Two-factor sign-in, IP-locked API keys, keys made in the panel

apiwebbreaking change
// shippedthe panel now asks for a 6-digit code at every sign-in, every api key answers only from the ips you list, and new keys are created in the panel with two confirmations.

two-factor sign-in on the panel

signing in to the panel now asks for a 6-digit code from an authenticator app, on top of google, github or the email code. the setup opens by itself at your next sign-in: scan the qr code or paste the setup key into google authenticator, 1password, authy or microsoft authenticator, type the code, and save the 10 recovery codes the panel shows once.

each recovery code replaces a code a single time, for the day your phone is not around. server-to-server calls with an api key never ask for a code. if you lose both the phone and the recovery codes, write to support from the email of the account.

every api key is locked to ips

an api key now answers only from the ips or cidr ranges listed on it. a key with no list is refused on every call with 403 ip_allowlist_required, and a call from an address outside the list gets 403 ip_not_allowlisted. the panel is not affected by the lists of your keys.

to set or change a list, open api keys in the panel and click ip on the key. the panel shows the ip it sees for you, which helps when you are testing from your own machine. keys that already had a list keep working with no change. the account receives an email every time a list changes. see the api reference.

new keys are created in the panel

api keys are now created only from a signed-in panel session. to create one you give it a name, a scope and its ip list, then confirm with your authenticator code and a 6-digit code we send to the email of the account. the plaintext key is shown once, and the account gets an email with the key name, scope and ips.

two things stopped: POST /v1/keys no longer accepts an api key (403 panel_session_required), and a new account no longer receives a key at sign-up. pick the smallest scope that does the job: a read key is enough for dashboards and reconciliation and cannot move funds.

fixes and improvements

  • webhook urls must be https on the default port (443).
  • a burst of refused calls now pauses the caller for a while: 429 too_many_rejections with retry_after_s.