Ployter

Security: 2FA, social sign-in, access logs and API tokens

How to protect your account with two-factor authentication, keep track of your team's sign-ins and create least-privilege API tokens for the CLI and CI.

This page covers what protects access to your team: each account's two-factor authentication (2FA), access logs and the API tokens used by the CLI, CI and automations.

Two-factor authentication (2FA)

With 2FA on, sign-in asks for a 6-digit code generated by an app on your phone, in addition to your password.

  1. Click your avatar at the bottom of the sidebar and open 2FA.
  2. Install an authenticator app, such as Google Authenticator, Authy or Microsoft Authenticator.
  3. In the app, tap + and scan the QR code on screen.
  4. Type the 6-digit code the app shows.
  5. Click Enable 2FA.

Enable 2FA screen with the QR code
Enable 2FA screen with the QR code

To turn it off, open the same screen, click Disable 2FA and confirm with a code from the app.

Tip

Turn on 2FA on every account with the owner or admin role. Whoever controls the team controls your connected cloud accounts.

To change your password, use Password and sign-in in the same menu.

Require 2FA for the team

The owner can make 2FA mandatory for every member. Under Team → Settings, turn on Require 2FA for all members. Turn on 2FA for your own account first: without it, the option won't switch on.

Require 2FA for all members option with the list of who doesn't have it yet
Require 2FA for all members option with the list of who doesn't have it yet

The card lists who doesn't have 2FA yet. With the requirement on, those people see the 2FA required notice in the team's dashboard and can only use it again after turning 2FA on. Account screens (2FA, preferences, password) and support stay open.

Warning

The requirement also applies to the API: API tokens of members without 2FA stop working in this team until they turn it on.

Sign in with Google, GitHub, GitLab or Bitbucket

Besides email and password, you can sign in with your Google, GitHub, GitLab or Bitbucket account. The buttons show up under Sign in, on sign-up and on the invite screen. Only the providers turned on in this dashboard appear.

Sign-in screen with the Google, GitHub, GitLab and Bitbucket buttons
Sign-in screen with the Google, GitHub, GitLab and Bitbucket buttons

  • You already have an account: the dashboard finds it by the email confirmed at the provider and links the two the first time. After that, it works even if you change the email at the provider.
  • You don't have an account: with sign-up open, the account is created right away, without a password. Through an invite link, the account joins the team directly, as long as the provider's email is the invited one.
  • 2FA: with 2FA on, the dashboard asks for the code after the provider, just like signing in with a password.

The provider must report a confirmed email. If the account's email at the provider is not confirmed, sign-in is refused: confirm it there or sign in with email and password.

Connect and disconnect sign-ins

In Password and sign-in (avatar, at the bottom of the sidebar), the Sign in with card shows the providers connected to your account:

  • Connect: opens the provider and connects its account to yours. It can be an account with another email.
  • Disconnect: removes the provider from your account.

Sign in with card on the Password and sign-in screen
Sign in with card on the Password and sign-in screen

An account created by social sign-in starts without a password. On the same screen, the Create password card creates the first one without asking for the current one. The dashboard won't let you disconnect your only way to sign in: create a password or connect another provider first.

A provider account is connected to a single person: if it is already connected to someone else in the dashboard, the connection is refused.

Audit log

Under Team → Audit log, you see who did what in the team: deploys and rollbacks, services and projects created or deleted, edited variables, domains, databases, viewed database passwords, servers, cloud, GitHub and Cloudflare connections, members and permissions, subscription, terminal, files and SFTP. The screen requires the View access logs permission (owner and admin, by default).

Audit log screen with deploys, variables and viewed passwords
Audit log screen with deploys, variables and viewed passwords

Each row shows When, Who, What (with the name of the service, project or database, even after it's deleted), Details and the IP. Actions made with an API token show the token name; actions by platform support using someone's account are flagged.

  • Filter by Area, Person and period (From and To), or click someone's name.
  • Export CSV downloads what is filtered (up to 10,000 rows).
Note

Variable values, passwords and file contents are never recorded: only names. Records older than the plan's history are deleted.

Access logs

In Team → Access logs, you see team members' sign-ins, sign-outs and failed attempts. The screen requires the View access logs permission (owner and admin, by default).

Access logs screen with sign-ins and failures
Access logs screen with sign-ins and failures

Each row shows When, Type, User, the IP and the Browser. The types are:

  • Signed in and Signed out;
  • Signed in (social login): with Google, GitHub, GitLab or Bitbucket;
  • Wrong password (the row shows the email typed);
  • 2FA requested and Wrong 2FA code.

Filter by type with the selector at the top, or click a person's name to see only their sign-ins. Records older than the plan's history (History (days) limit) are deleted.

API tokens

API tokens let the CLI, CI (GitHub Actions) and your automations call Ployter without your password. They start with ply_.

CLI sign-in through the browser

The simplest way to get a token is to run ployter login. The CLI opens the browser on the Authorize the CLI screen, which shows which machine the request came from and a code to compare with the one in the terminal. When you click Authorize, the panel creates a token with your permissions, valid for 1 year, named CLI · nome-da-máquina. See CLI.

Create a token

  1. Click your avatar at the bottom of the sidebar and open API tokens.
  2. Click New token.
  3. Enter a Name (e.g. GitHub Actions loja).
  4. Pick the Expiration: 7, 30 or 90 days, 1 year or Never expires.
  5. In Owner, choose:
    • Mine (valid while I'm on the team): the token acts as you and loses access if you leave the team or lose permissions.
    • Team (for client CI): the token belongs to no one and stays valid if its creator leaves. Only people with Rename and delete the team can create one.
  6. In Permissions, pick Same as mine or Choose, and check only what's needed. A team token always has chosen permissions.
  7. In Projects, pick:
    • All: every project of the team.
    • Only some: only the checked projects.
    • Only those it creates from templates: install token. It only applies the chosen templates and only touches the projects it creates with them.
    • Only those it creates (agency): starts with no project and only sees and touches the projects it creates itself. Made for AI agents over MCP.
  8. Click Create token.
  9. Copy the token. It won't be shown again.

New token modal with chosen permissions
New token modal with chosen permissions

Tip

For CI deploys, create a Team token with only Deploy and View logs, limited to the project, and store it as the PLOYTER_TOKEN secret. See CLI.

What a token can't do

Even with the permission, no token:

  • changes members, permissions or other tokens;
  • changes the subscription and payments;
  • changes the account (password, 2FA) or the team;
  • approves another CLI's sign-in.

These actions require the panel. That way, a leaked token can't take over the team.

A token limited to projects only sees those projects, lists included, and can't manage team-wide things: servers, templates and integrations. It can only choose which team server each service of its projects runs on.

You can never give a token a permission you don't have. A personal token also follows your permissions: if you lose one, the token loses it too.

Track and revoke

The list shows the name, the access (permissions and projects), Last used (with the IP) and when it Expires. Team tokens show the team tag. You see your own tokens and, if you manage the team, the team tokens.

To cut off a token, click Revoke. It stops working immediately. Do this when a token leaks, when a machine is lost or when a CI is no longer used. ployter logout only deletes the token from the machine: it stays valid until it's revoked here.