Confirm approval decisions with an authenticator app (TOTP)
Description
Problem
The emailed code (AP-385) proves mailbox access and the PIN (AP-147) proves knowledge. Neither proves the approver holds a device, and email is not an authenticator under NIST SP 800-63B-4. Teams signing under 21 CFR Part 11 want an authenticator app code and an exportable, append-only trail of confirmations, wrong entries and credential changes.
Change
One decision confirmation setting
-
Decision confirmation > Settings, the first tab of the admin page (global admins, Jira and Confluence), has:
-
Method: Disabled (default), PIN, One-time code, Authenticator app. One method per site.
-
Scope, while a method is chosen: Enabled (on by default in every definition, a definition can turn it off) or Required (every definition).
-
"Expire authenticator apps", while the method is Authenticator app (see "App expiry").
-
-
Definition editor: one "Confirm decisions" checkbox (New badge), shown while a method is chosen, on by default. Under Required it is locked on, with "Required in Decision confirmation > Settings" in its tooltip; saved only under Enabled. No per-step option and no option on the Parametrize form.
-
A decision needs confirmation when a method is chosen, the scope is Required or the approval's definition had the checkbox on when it started, and people decide the step (not notification, automation, webhook or AI Prompt steps). The setting is read when someone decides; reruns read the definition again; older approvals count as on. It applies to everyone with an Atlassian account who decides, delegates and JSM customers included.
-
"Skip decision confirmation for Web API decisions" (Settings > General > Web API) covers the chosen method.
-
Changing the method keeps PINs, apps and backup codes. Personal > PIN shows while the method is PIN, Personal > Authenticator app while it is Authenticator app.
-
Email approvers have no account, so they confirm with AP-385's emailed code. Their mark says "Confirmed with a one-time code instead of an authenticator app" (under PIN, "instead of a PIN").
The authenticator app
-
Standard TOTP (RFC 6238), so any app works: SHA1, 6 digits, 30 seconds, one period of tolerance, none a setting.
-
Personal > "Authenticator app" (Jira and Confluence) lists the person's apps with name, date added, last used, "Expires" and the date (while apps expire) and the decisions confirmed with each; it offers Set up / Add another app, Remove and the backup codes.
-
First app: the app emails a code (AP-385's rules). Only then does it create the secret and show it once as a QR code and text. The person names the app and enters its code, which turns it on and is spent.
-
More apps (up to 5): a working code from an app that is on, or a backup code, replaces the email. The email "A new authenticator app was added to Approval Path" shows the name, time, IP and how it was confirmed, and links to the app with "This wasn't me", which removes it after a working code; without one, the person asks an admin for a reset.
-
An unfinished setup confirms nothing; it expires after 30 minutes, and a new setup discards it. The secret is stored encrypted (not hashed, because the app computes codes from it) with the app's data key, which Google Cloud KMS wraps, like OAuth and Slack tokens, not with the per-site secret (changes on every upgrade) or the app secret (its rotation would wipe every app). Nobody can read it back.
-
Removing an app and generating new backup codes need a working code and send an email. The removal email also says that codes from the app no longer work and to delete its entry in the authenticator app. Removing the last app deletes the backup codes.
App expiry
-
With the method Authenticator app: "Expire authenticator apps" (New badge, off by default) and "Expire after" 3, 6 or 12 months (12 when first turned on); other values are refused.
-
An app expires that many months after it was added. Turning it on or changing the period gives every app a new date, never sooner than 14 days after the change. Turning it off, or choosing another method, clears the dates and keeps the apps; switching back sets them again.
-
A job runs every 5 minutes. It emails a reminder 14 days before the date, once per date, with a link to Personal > Authenticator app. On the date it removes the app like a manual removal (the last app takes the backup codes with it), logs "App removed" with place System and detail "Expired", and emails the person.
Backup codes
-
The first app comes with 10 one-time backup codes (XXXXX-XXXXX), shown once with Copy and Download, stored only as a salted, slow hash. "Generate new backup codes" replaces the set; the page shows how many are left, warning at 3.
-
They work wherever an authenticator code does, except in Slack and Teams, where a refused decision could leave one valid with the chat provider. Using one emails the person the number left.
Where the code is asked
-
The panel (work item, JSM portal, Confluence page, approvals list), list row actions, the Confluence home feed and links to the work item or page all use "Confirm your decision", with "Use a backup code". It shows what is confirmed (person, approval, work item or page, step, decision, comment; in bulk, the approvals). People with no app on set one up there, JSM customers too.
-
Bulk: one code covers every selected approval that needs one; approvals found to need it only on submit get a second dialog and a new code. Email action buttons and Web API step links open a page that asks for the code, after checking that the link's person still decides on the step; with no app on, it links to the work item or page.
-
Slack and Teams: the decision dialog takes the authenticator code; backup codes, setup, and paused or locked people get a reply with the link. Rovo refuses with the link, and its lists say which approvals need the code.
-
The Web API refuses with
AUTHENTICATOR_CONFIRMATION_REQUIRED, unless the skip option is on; the decision is then marked "Authenticator confirmation skipped". Decisions refused anyway are refused before the code is checked.
Replay, pause and lock
-
Each app takes only codes from a later 30-second period than the last one it accepted, so a code never works twice, also on two simultaneous requests. A reused app code gets "Wait for the next code" and is not wrong; a reused backup code counts as wrong.
-
5 wrong authenticator or backup codes in 15 minutes in the app, Slack, Teams or bulk pause the authenticator in all of them; 5 on email links and Web API step links, counted together, pause all of the person's links, not the app. While paused, every code is refused, the right one too, with "Too many wrong codes. Try again in N minutes." The person gets an email, at most once a day.
-
100 wrong codes in a row, from all places, lock it, with an email. The person unlocks it with an emailed code, on the Personal page or in the dialog, at most 3 times in 24 hours; an admin reset also unlocks it.
-
Counts come from the confirmation log, per person, so restarts and several backend nodes do not reset them.
Confirmation log
-
A new log covers every method: right and wrong entries, confirmed decisions (one entry each), Web API decisions that skipped confirmation, apps set up, removed and reset, new backup codes, pauses, locks, unlocks and new PINs, each with the time and person, the method required and used (with the app's name), the place (panel, bulk, email link, approver portal, Slack, Teams, Web API, Personal page, admin page, system), the approval, step and decision, and the IP address for requests from the person's browser.
-
It is append-only: the database refuses updates and deletes, and entries keep the approval and step names and stay when the approval or the app is removed. Deleting entries (a data-deletion request) is a manual database procedure.
Admin: Decision confirmation page
-
A new admin sidebar item, "Decision confirmation", for global admins, in Jira and Confluence, with the tabs "Settings" (first), "Authenticator apps" (while the method is Authenticator app) and "Log".
-
"Authenticator apps" lists the people with an app on or a lock, 15 per page: apps, backup codes left, wrong codes in a row, state, last used. Filters: person, state (Active, Paused, Locked) and last used (a date range), with "Clear filters". Wrong codes in a row counts wrong app and backup codes since the last success, unlock or reset, per person; it reaches 100 when locked. A person's view shows the same count, their apps (with expiry date and decisions confirmed) and "Reset", which removes all their apps and backup codes and emails them.
-
"Log" lists 15 entries per page, filtered by person, email approver (part of the address), method, event (person, method and event take several values) and dates, with a CSV export from the header's Export button. Detail shows "Expired", "Email sent" and "Account deleted".
-
-
In every table of confirmed decisions (the log; "Decisions confirmed with it" on the Personal page and in a person's view) the approval opens the approvals list filtered to it (chip "Approval =" and its name, any status, not stored in saved filters) and the work item or page opens in a new tab.
Activity
-
Step details and Activity show one lock icon per decision, per member and voter: "Confirmed with an authenticator app", "Confirmed with a backup code", or "Authenticator confirmation skipped" (open lock) for Web API decisions. A group or vote row shows a skipped mark when any decision skipped it. The Activity CSV has one "Confirmation" column for every method.
Decisions
-
One method per site, opt-out per definition. Each decision needs one proof and each mark has one meaning. Per-step options can come later if customers ask.
-
Email approvers always get an emailed code. They have no account for a PIN or an app (separate ticket).
-
Chat takes authenticator codes only. A code expires within 90 seconds and works once. A backup code could stay valid with the chat provider if the decision is refused.
-
How the secret is kept. It is encrypted, not hashed, because the app computes codes from it. It does not use the per-site secret, which changes on every upgrade, or the app secret, whose rotation would wipe every app.
-
Pause per place and person, with a hard lock. A forwarded email link can pause only the person's links, never the app. At most 3 emailed unlocks a day, so a stolen mailbox and session cannot reset the lock over and over. The lock keeps consecutive guesses within NIST's limit; unlocking needs the mailbox, so an open session cannot undo it.
-
Expiry removes the app. An expired app is removed like a manual removal instead of staying as "expired", so an app is either on or gone everywhere. Turning expiry on or shortening it never removes an app with less than 14 days' notice.
-
Wrong codes are counted per person. A wrong code matches no app, so the admin list cannot count it per app.
-
One log for all methods. One export then shows how every decision was confirmed.
-
What the log stores. IP addresses, no user agents and no location lookup. Slack, Teams and Rovo entries have no IP, because those requests come from the provider.
-
Per site and product. Jira and Confluence keep separate apps, named "Approval Path for Jira" (or Confluence) with the site address.
-
Deleted users. A deleted Jira user's apps and backup codes are removed. Their log entries stay, as the record of their signatures.
-
JSM customers set up in the decision dialog. To remove an app, or after losing their codes, they ask an admin for a reset.
Out of scope
-
PINs and authenticator apps for email approvers (separate ticket). A per-step or per-approval option. Several methods at once. SMS, push, passkeys. Remembering a device. IP location. Configurable limits.
-
Web API endpoints for the log or the definition option. Webhook payloads, JQL, the Approval Status field.
Acceptance criteria
-
Method Disabled: nothing asks; the scope, the definition checkbox and the Personal items are hidden; saving a definition keeps its choice.
-
Authenticator app with Enabled: definitions with "Confirm decisions" on ask on every people step, those with it off ask nothing. Required: every approval asks and the checkbox is locked on; back to Enabled restores each choice.
-
Every channel above asks for the code or refuses with the link; a right code records the decision, shown in Activity and the log.
-
Setup starts only after the right emailed code (first app) or a working code. The activating code cannot confirm a decision, an unfinished setup confirms nothing, a sixth app is refused.
-
A code is refused when reused, older than the last accepted one, or the second of two simultaneous requests. The pause and the lock work as above, with their emails and the unlock limit.
-
Backup codes work once and only for their owner; new codes invalidate the old ones; Slack and Teams refuse them. Adding an app, removing one, new backup codes and using a backup code send emails; the first app sends none. "This wasn't me" removes that app after a working code. An admin reset removes all apps and backup codes and emails.
-
Email approvers get an emailed code (approver portal, email links, Slack) under every method, marked "instead of". Switching the method to PIN and back keeps every app and backup code.
-
Expiry: each app shows "Expires" and its date; apps older than the period expire 14 days after the change. A reminder arrives 14 days before, the app is removed on the date with the log row and the email, and turning it off clears the dates.
-
The people filters narrow the list and its count; a locked person shows 100 wrong codes in a row. The approval link opens the filtered approvals list, the work item or page link the work item or page.
-
The log holds every event above, refuses UPDATE and DELETE at the database, survives deleting the approval or the app, and exports to CSV.
-
A crafted request cannot decide without the code, read or remove another person's apps, start a setup or unlock without the emailed or working code, or change the settings or reach the admin page without global admin rights. No secret or code appears in logs, URLs, stored emails, chat payloads or later responses.
Fixes included
-
The decision confirmation window opens at a fixed size in Confluence (600 x 680 px) and fills the window width in the JSM portal; Jira still sizes it to its content.
Manual tester notes
-
Each method with Enabled (definition on and off) and Required, chosen in Decision confirmation > Settings: definition checkbox and its tooltip, Personal items, admin tabs (Authenticator apps appears after saving the method).
-
Expiry: turn it on with apps of different ages, try 3, 6 and 12 months, and check "Expires" and the date on each app card. Apps older than the period get the reminder email within minutes and expire 14 days later (email, log row). Turning it off clears the dates.
-
Authenticator apps tab: filters, "Clear filters", the empty message, wrong codes in a row in the table and the person's view. Approval and work item links on the log and both decision lists; the Event filter list is not cut off.
-
Real apps (Google Authenticator, Microsoft Authenticator, Authy, 1Password): scan the QR code and type the secret by hand; check the entry names in Jira and in Confluence. Set up from the Personal page and the dialog in Jira, Confluence and the JSM portal as a portal-only customer. The dialog (600x580) scrolls during the QR setup.
-
Clock skew: a code from the previous or next period works, one from two periods away does not. Two tabs submitting one code at once record one decision.
-
Pause and lock: 5 wrong codes over the panel, Slack and bulk give one email and the wait message; 5 on a forwarded email link pause only the person's links; 100 wrong codes (5 each on 20 email links) lock, an emailed-code unlock works, a fourth within 24 hours is refused.
-
The new-app link opens that app on the Personal page in Jira and in Confluence; check the removal and backup-code emails.
-
Admin reset, then a new setup. A deleted Jira user's apps go and their log entries stay. The panel, bulk and email page log the tester's public IP; Slack logs none.
-
Email approvers under PIN and Authenticator app ask for an emailed code (approver portal, email link, Slack); check the mark, log row and CSV value. Bulk: one code, every approval marked, one log row each.
-
Slack (desktop and phone), Teams (after AP-2146), Rovo: Jira texts never name Confluence and vice versa.