Website and codeTest access

Website and code

Give the Attack Agent test accounts

Add test accounts and access keys in Settings so the Attack Agent can sign in and test the parts of your website that sit behind a login.

Much of a website sits behind a sign-in. In Settings > Agents, under "Accounts and keys the Attack Agent can use.", owners and admins can give the Attack Agent test accounts and access keys for your website. The Attack Agent then signs in and checks what each kind of user can reach. Members can see each entry's label and role, but never its username, password or key.

Before you add test access

  • Your website must be saved in Settings > Website, with its domain verified and your confirmation that you may test it. See Add your website and verify its domain.
  • Create the accounts in your own app first. Use accounts made only for testing, never a real customer's account or your own.

Add at least two accounts with the same role. The Attack Agent then checks whether one account can open the other account's records.

Add a test account

  1. Open Settings > Agents

    Open Settings, then Agents, or go to /dashboard/settings/agents/.

  2. Press Add account

    The form opens below the list.

  3. Fill in the fields

    Label names the account, for example "Shop owner". Role says what kind of user it is, for example "admin" or "customer". Login page is the address of your sign-in page. Username and Password are what the agent types to sign in.

  4. Press Add account

    The entry appears in the list, and the section says "Saved."

Label, Username and Password are required. Role and Login page are optional.

Save an access key

Use a key when parts of your website or its API take a key instead of a sign-in.

  1. Press Add key

    In Settings > Agents, press Add key.

  2. Fill in the fields

    Label names the key. Send as says how your website expects it: Header or Query parameter. Name is the header or parameter name, for example X-API-Key or api_key. Key is the value.

  3. Press Add key

    The entry appears in the list, and the section says "Saved."

Limits for test access

Limits for test access
WhatLimit
Test accounts10 for each website
Access keys10 for each website
Label1 to 60 characters
RoleUp to 60 characters
Username, password and keyUp to 2,048 bytes each
Header or parameter nameUp to 200 characters, with no spaces or colons
Login pageA public http or https address

Values are write-only and encrypted

  • Write-only. After you save an entry, AgentProof never shows its username, password or key again, not even to owners. The list shows only the label, "Test account" or "Access key", the role and the date it was added.
  • Encrypted when stored. AgentProof stores the values encrypted.
  • Only for your website. Each entry belongs to the website that was in Settings > Website when you added it.
  • Hidden in records. While a run works, AgentProof replaces each password and key with [redacted] in the run's record, its live terminal, its chat and its trace.

The agent reads the values to sign in, so they pass through the AI model that runs the agent while it works. That is one more reason to use accounts made only for testing.

To change a password or key, remove the entry and add it again.

Which runs receive test access

The Attack Agent gets your test accounts and keys on every run that tests your website: planned and Run now runs, each copy in a swarm, tests after a deploy and retests after a fix. It gets them only while a verified domain covers the website.

These runs never receive them:

How the Attack Agent uses them

At the start of each run, AgentProof writes your entries to one file on the agent's computer, ~/access/access.json. Each run gets a fresh computer, and it is deleted when the run ends. The file looks like this:

json
{
  "site": "https://www.example.com",
  "accounts": [
    {"label": "Shop owner", "role": "admin", "loginUrl": "https://www.example.com/login", "username": "test-owner@example.com", "password": "..."}
  ],
  "keys": [
    {"label": "Partner API", "header": "X-API-Key", "value": "..."}
  ]
}

The Attack Agent is told to:

  • sign in only with the accounts and keys in this file, and never print their passwords, keys or tokens
  • try each API call your pages make while signed out and as each test account
  • ask for one account's records while signed in as another account
  • never change or delete real customer data, never place real orders or payments, and never contact your customers

Remove test access

Press Remove next to the entry, then Confirm remove. Only owners and admins can remove entries. Runs that start after that no longer receive it.

When you change your website

Test access belongs to one website. If you save a website on a different origin (a different http/https, host or port) in Settings > Website, AgentProof deletes every test account and key saved for the old website at once. Changing only the path keeps them. See Change your website.

Fix problems with test access

"Only owners and admins can manage test access."

Members cannot add or remove test access. Ask an owner or admin of your workspace.

"Add your website in Settings.", "Verify www.example.com in Settings first." or "Confirm you may test www.example.com in Settings."

Test access needs a saved website with a verified domain and your confirmation. Finish Settings > Website first.

"This website has reached its limit of 10."

Each website holds up to 10 test accounts and 10 access keys. Remove one you no longer need, then add the new one.

"Use 1 to 60 characters." or "Use 60 characters or fewer."

The Label is empty or longer than 60 characters, or the Role is longer than 60 characters.

"Use a plain name without spaces."

The header or parameter Name has a space or a colon, or is longer than 200 characters. Type only the name, such as X-API-Key, without its value.

"Use a shorter value."

A username, password or key is longer than 2,048 bytes.

"Enter a public website link."

Login page must be a public http or https address, such as https://www.example.com/login. Leave it empty if you are not sure.

Last updated