Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions administration/authentication/service_accounts.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ curl -X PATCH \

## Refuse old personal API keys

Instead of refusing all personal API keys, an admin can refuse only those issued before a cut-off. For example, after a key leaks, ask members to create new keys, then set a cut-off so the old keys stop working in the organization. This applies to shared organizations only. Set the cut-off in one of two ways:
Instead of refusing all personal API keys, an admin can refuse only those issued before a cut-off. For example, ask members to create new keys, then set a cut-off so the old keys stop working in the organization. This applies to shared organizations only. Set the cut-off in one of two ways:

- **Issued on or after a date**: Kosli accepts keys issued from 00:00 UTC on that date. The date can be at most 60 days in the past.
- **Issued no more than a number of days ago**: Kosli accepts keys issued within the last 1 to 3650 days. Each key stops working that many days after it was issued. Members then need to create a new key, or regenerate one, from their **Profile** page: rotating a key from the CLI keeps its issue date.
Expand All @@ -168,7 +168,7 @@ The cut-off takes effect immediately, including for the CLI and CI pipelines. Ko
A key's issue date is when its secret was issued:

- A key you create or regenerate from your **Profile** page is issued at that moment.
- A key created or rotated with another API key, for example with `kosli create api-key --personal` or `kosli rotate api-key --personal`, counts as issued when that API key was. A leaked key can't create a fresh key that gets past the cut-off.
- A key created or rotated with another API key, for example with `kosli create api-key --personal` or `kosli rotate api-key --personal`, counts as issued when that API key was. An old key can't create a fresh key that gets past the cut-off.
- During a rotation's grace period, the replaced secret keeps its own issue date.

Service account keys and signing in to the Kosli app in a browser are not affected. To change the cut-off, click **Edit** next to **Oldest personal key accepted**, enter the new date or number of days, and click **Save**. While the cut-off is on, confirm the change in the **Apply this cut-off?** dialog by clicking **Apply cut-off**. To stop applying the cut-off, set **Oldest personal key accepted** to **Off**, and in the **Turn off the cut-off?** dialog, click **Turn off**. The saved cut-off stays and applies again when you turn it back on. If you also [refuse all personal API keys](#refuse-personal-api-keys), that setting takes precedence.
Expand Down
24 changes: 24 additions & 0 deletions product-updates.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,30 @@ rss: true
</Update>
*/}

<Update
label="December 4, 2026"
id="personal-api-key-cutoff"
tags={["personal-api-key-cutoff"]}
Comment thread
AlexKantor87 marked this conversation as resolved.
Resolved
description="Admins can now stop personal API keys issued before a date, or more than a number of days ago, from working in their organization."
rss={{
title: "Refuse personal API keys issued before a cut-off",
description: "Admins can now stop personal API keys issued before a date, or more than a number of days ago, from working in their organization.",
date: "2026-12-04"
}}
>

## Refuse personal API keys issued before a cut-off

When members create new personal API keys, the old ones keep working until they expire or are deleted. An admin can now set a cut-off, so personal API keys issued before it stop working in your organization.

Set the cut-off as a date or as a number of days, under **Settings → General**, in the **API keys** panel. A request made with an older key gets a `403` that asks the member to create a new key in the Kosli web app. Service account keys and signing in to the app aren't affected.

A key created or rotated with another API key counts as issued when that key was. So an old key can't create a fresh one that gets past the cut-off.

To get started, read [Refuse old personal API keys](/administration/authentication/service_accounts#refuse-old-personal-api-keys).

</Update>

<Update
label="December 4, 2026"
id="attestation-override"
Expand Down