From a224a7ac209e3061784d77b394a8018a7bcb1b83 Mon Sep 17 00:00:00 2001 From: Alex Kantor Date: Fri, 4 Dec 2026 15:58:02 +0000 Subject: [PATCH 1/2] docs: add product update for the personal API key cut-off Adds a What's new entry for refusing personal API keys issued before a cut-off, and drops the leak framing from the cut-off docs. Co-Authored-By: Claude Opus 5.5 --- .../authentication/service_accounts.md | 4 ++-- product-updates.mdx | 24 +++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/administration/authentication/service_accounts.md b/administration/authentication/service_accounts.md index ac86129..610dcea 100644 --- a/administration/authentication/service_accounts.md +++ b/administration/authentication/service_accounts.md @@ -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. @@ -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. diff --git a/product-updates.mdx b/product-updates.mdx index 1982ba8..a4c97f9 100644 --- a/product-updates.mdx +++ b/product-updates.mdx @@ -28,6 +28,30 @@ rss: true */} + + +## Refuse personal API keys issued before a cut-off + +When members replace their personal API keys, the old keys keep working until they expire. 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). + + + Date: Fri, 4 Dec 2026 16:29:23 +0000 Subject: [PATCH 2/2] docs: say old personal keys work until expired or deleted Co-Authored-By: Claude Opus 5.5 --- product-updates.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product-updates.mdx b/product-updates.mdx index a4c97f9..b44c5d4 100644 --- a/product-updates.mdx +++ b/product-updates.mdx @@ -42,7 +42,7 @@ rss: true ## Refuse personal API keys issued before a cut-off -When members replace their personal API keys, the old keys keep working until they expire. An admin can now set a cut-off, so personal API keys issued before it stop working in your organization. +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.