Ignitify.dev
Users, groups and permissions
Guides

Users, groups and permissions

Give each person, CI job or AI client its own key. Each key gets only the permissions it needs, and you can revoke it alone. You need CLI 2.0.0 or later.

Owner keys and user keys

KeyWhat it can do
Owner keyEverything. It is the only key that manages users, groups and keys. You get it from ignitify login.
User keyIt belongs to one user. It has the permissions of that user's groups, and nothing more. The owner makes it with ignitify key:create.
  • A user has a name only. A user has no password, no email and cannot sign in.
  • A user's permissions are the union of the permissions of all its groups. A user in no group can only run whoami and the commands that need no key.
  • Only an owner key can run the user:*, group:* and key:* commands. A user key cannot change its own access, so it can never lock the owner out.
  • A user key does not expire. It works until you revoke it, or remove its user.

The permissions

A group grants permissions from a fixed list of 13. You cannot make a new one. Read and write are separate for each resource, and a delete is a write.

terminal
$ ignitify permission:listpermission         allows─────────────────  ─────────────────────────────────────────────────────────────tasks.read         Read taskstasks.write        Create and delete tasks. Note: …deployments.read   Read deployments and build logsdeployments.write  Deploy, delete a deployment, ask for package adviceruns.read          Read runs, logs, timeline, failures, VMsruns.write         Start, cancel, delete runs; stop VMssecrets.read       List secret names (values are never readable). Note: …secrets.write      Set and delete secretshooks.read         List a task's hooks, read one hookhooks.write        Create and delete hooks; set notify. Note: …schedules.read     List schedules, read one scheduleschedules.write    Create, edit, pause, resume and delete schedules; a run at a                   later time also needs it. Note: …usage.read         Usage, series, notifications

permission:list needs no key and sends no request. Four permissions reach further than their name:

1 · Create a group

Do these steps with your owner key. Name the permissions, separated by commas.

terminal
$ ignitify group:create readers --permissions tasks.read,deployments.read,runs.read,usage.read

A user or group name is 1 to 63 lower case letters, digits and -, and starts with a letter or a digit. The CLI checks names and permissions before it sends the request. To change a group later, use group:grant and group:revoke.

2 · Create a user and add it to the group

terminal
$ ignitify user:create ai-assistant
ignitify group:add-user readers ai-assistant

A user can be in more than one group. user:get shows its groups, its permissions and its live keys.

3 · Create a key for the user

Write the key to a new file with --out. The file gets mode 0600, and the CLI prints only the key id.

terminal
$ ignitify key:create --user ai-assistant --label laptop --out ./ai-assistant.key✓ key key_Hn4TqXw8Zc2 written to ./ai-assistant.key (mode 0600). Hand the file over, then delete your copy.
  • --user and --label are required. The label tells you later where the key is used.
  • --out writes a new file only. It never writes over a file and never follows a link. If the file exists, no key is made.
  • Without --out, the CLI prints the key on the terminal.

4 · Use the key

The holder puts the key in the IGNITIFY_API_KEY environment variable. The CLI uses this variable before a saved login.

terminal
$ export IGNITIFY_API_KEY="$(cat ./ai-assistant.key)"
ignitify whoamiTenant Profile…This Keykey          key_Hn4TqXw8Zc2user         ai-assistantgroups       readerspermissions  tasks.read, deployments.read, runs.read, usage.read…

whoami shows the This Key block: the key, its user (owner for an owner key), its groups and its permissions.

When a key is refused

A user key that does not have the permission gets permission-denied. The message names the permission, so the holder knows what to ask for.

terminal
$ ignitify task:deploy helloError: permission denied: this key needs the deployments.write permission. Ask the owner to grant it to one of your groups.

A user key on a user:*, group:* or key:* command gets owner-required.

terminal
$ ignitify key:listError: owner key required: only owner keys manage users, groups and keys. This is a user key.

Revoke and remove

  • key:revoke <key-id> stops one key at once. key:list shows each key with its user, label and last use, never the key value.
  • user:remove <name> revokes all keys of the user and removes it from all groups. You can use the name again.
  • group:remove-user and group:delete take permissions away. Users and keys stay.
  • A change has an effect on the next request of the key.
  • A revoked key stops, but what it made stays live: schedules, webhooks and callbacks. See the next section.

After a key leaks

Revoke the key first. A revoke changes only the key. The schedules, one-time schedules, webhooks and callbacks that the key made stay live, and their runs use your code and your secrets. Do each step below with your owner key.

  1. Revoke the key. key:revoke stops it on its next request.
    terminal
    $ ignitify key:revoke key_Hn4TqXw8Zc2 --yes
  2. Pause its recurring schedules. A recurring schedule shows created_by, the key that made it. A pause asks no question, so it runs in a loop. Check each one later, then cancel it or resume it.
    terminal
    $ ignitify schedule:list --json | jq -r '.[]
      | select(.kind=="cron" and .created_by=="key_Hn4TqXw8Zc2" and .status=="active")
      | .schedule_id' | xargs -n1 ignitify schedule:pause
  3. Cancel the one-time schedules made after the leak. A one-time schedule does not record its key, so use created_at and the time the leak can have started (UTC). A cancel asks first, so a loop needs --yes.
    terminal
    $ ignitify schedule:list --json | jq -r '.[]
      | select(.kind=="once" and .created_at >= "2027-01-14T00:00:00Z")
      | .schedule_id' | xargs -n1 ignitify schedule:cancel --yes
  4. Check the webhooks. A webhook call needs its signature, not a key, so a webhook works after the revoke. Run hook:list for each task, and delete each hook you did not make with hook:delete.
    terminal
    $ ignitify hook:list hello
    ignitify hook:delete hok_Wd3Lm8Qz5RtY
  5. Check the callbacks. A key with hooks.write can send the result of every run to its own URL. deployment:get --json shows notify_url. Clear a URL you do not know with notify:set --clear.
    terminal
    $ ignitify deployment:get dep_Hn4TqXw8Zc2P --json | jq -r .notify_url
    ignitify notify:set dep_Hn4TqXw8Zc2P --clear

The key limit

Your plan limits the number of live API keys. The limit counts every key: owner keys and user keys together. The limits are: free 2, starter 5, team 10, pro 25 and enterprise (on request) unlimited.

When you are at the limit, key:create is refused. Revoke a key you no longer use, or remove its user. See Pricing and Watch usage and limits.

Example · A read-only AI assistant

An AI client can read your tasks, deployments, runs and usage, but cannot change anything.

terminal
$ ignitify group:create readers --permissions tasks.read,deployments.read,runs.read,usage.read
ignitify user:create ai-assistant
ignitify group:add-user readers ai-assistant
ignitify key:create --user ai-assistant --label laptop --out ./ai-assistant.key

Put the key only in the environment of the AI client, as IGNITIFY_API_KEY. Use an AI client tells you how.

Example · A CI job that deploys and runs

A CI job can deploy a task and start runs. It cannot set secrets, delete tasks or manage access.

terminal
$ ignitify group:create ci --permissions tasks.read,deployments.read,deployments.write,runs.read,runs.write
ignitify user:create github-ci
ignitify group:add-user ci github-ci
ignitify key:create --user github-ci --label github --out ./github-ci.key

Put the contents of github-ci.key in your CI system's secret store, and give it to the job as IGNITIFY_API_KEY. Remember that deployments.write plus runs.write can read secret values.

In the job, start a run with --idempotency-key, so a retry after a network error starts no second run:

terminal
$ DEPLOYMENT_ID="$(ignitify task:deploy hello --json | jq -r .resource_id)"
ignitify task:run hello --deployment "$DEPLOYMENT_ID" --idempotency-key "ci-run-$CI_PIPELINE_ID"

Here CI_PIPELINE_ID stands for the unique id that your CI system gives each pipeline. The script pins --deployment, so a retry sends the same request.

See Retry a run safely for the rules of the key.