Skip to content

feat(kong-harnesses): kong-harnesses docs for AI Gateway 2.4 - #8158

Open
Guaris wants to merge 37 commits into
release/ai-gateway-2.4from
release/kong-harnesses
Open

Guaris wants to merge 37 commits into
release/ai-gateway-2.4from
release/kong-harnesses

Conversation

@Guaris

@Guaris Guaris commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Preview:

Landing pages and navigation

Get started and how-tos

Sign-in how-tos

kong-harnesses command reference

Install and deploy

Claude Code reference

Identity provider

Other reference

Fixes #7792

Guaris and others added 6 commits November 18, 2026 16:44
* bootstrap docs

* rename to kong-harnesses and simplify skeleton

* add example reference page

* remove kong_harnesses from jekyll-dev.yml
* feat(tools): add agent-auth-cli release syncing to shared tool-versions library

* test(tools): cover bare release tags, published_at dates, and pagination-free fetching

* feat(tools): add help tree writing and Liquid escaping to tool-versions library

* feat(tools): add stale-page pruning to tool-versions library

* feat(tools): port Cobra help parsing helpers into tool-versions library

* feat(tools): add agent-auth-cli help extraction format adapter

* feat(agent-auth-cli): generate help includes from installed binary

* feat(agent-auth-cli): add version fetch script and release data

* feat(agent-auth-cli): add tool to frontmatter tools enum

* feat(agent-auth-cli): add reference pages for all CLI commands

* feat(agent-auth-cli): add landing page serving /agent-auth-cli/

Replace the reference index.md with a dummy landing page that links
every command reference page.

* feat(agent-auth-cli): add indices page listing command references

* feat(agent-auth-cli): add top navigation entry

* refactor(kong-harnesses): rename agent-auth-cli docs tooling and paths

Rename the CLI doc sync tool, its generated help includes, and the reference
pages to kong-harnesses, matching the renamed Kong/kong-harnesses repository
and binary. The extractor discovers commands with the shared
extractCobraCommands helper (the CLI prints an Available Commands section)
and still captures the whole help text, because prose precedes Usage.
Regenerate app/_data/tools/kong-harnesses.yml from the renamed repo.

* docs(kong-harnesses): regenerate help and pages for the renamed CLI

Regenerate app/_includes/kong-harnesses/help/** from the installed
kong-harnesses binary, add reference pages for the budget and budget refresh
commands and the profile default and profile get subcommands, and drop the
profile show page the CLI no longer has. Update the landing page, doc index,
top navigation entry, and the frontmatter tools enum.

* fix(kong-harnesses): pass vale lint for the new reference docs

Add statusLine and statusline to the spelling dictionary, which the new
statusline reference page uses, and reword the sync README heading that
vale flagged, so the change lints clean.

* feat(tools): write nested subcommand directories in help trees

Extend writeHelpTree with the nesting rule kongctl needs: a node with
children gets its own directory (index.md plus one file per child,
recursively), while a leaf keeps its flat named file. Top-level commands
are unchanged.

* feat(tools): add shared recursive Cobra command tree builder

buildCobraCommandTree runs <command> --help, parses Available Commands
with extractCobraCommands, and recurses up to maxDepth levels below the
top-level command, applying helpFromStdout to each node's raw --help
output. kongctl will use it with extractCobraHelp and maxDepth: 2;
kong-harnesses with full help and maxDepth: 1. Covered by node:test
suites under tools/kongctl-versions.

* refactor(kong-harnesses): build the command tree with the shared library

Delegate the exported buildCommandTree to buildCobraCommandTree
(kong-harnesses, maxDepth: 1, full help output) and switch the written
includes to ansi fences, matching kongctl. The existing parser tests
pass unchanged.

* docs(kong-harnesses): regenerate help includes with ansi fences

Regenerated with the shared extractor; the diff is one opening fence
line per include (``` to ```ansi), matching the kongctl help includes
so both render with terminal styling.

* refactor(kongctl): sync docs through the shared tool-versions library

Replace ~200 lines of duplicated sync logic with thin entry points:
extract-help.js builds the command tree with buildCobraCommandTree
(extractCobraHelp, maxDepth: 2) and writes it with writeHelpTree using
ansi fences; fetch-versions.js calls syncReleases like the kong-harnesses
entry point. The sync-kongctl workflow keeps running the same scripts.

* docs(kongctl): describe the sync scripts and equivalence proof

Document how extract-help.js and fetch-versions.js run locally and in
the sync workflow, and the snapshot procedure for proving that sync-
logic changes keep the generated help includes byte-identical.

* feat(kong-harnesses): add a card to the tools landing page

Add a kong-harnesses card directly after the kongctl card in the Tools
row, linking to /kong-harnesses/.

* docs(kong-harnesses): list budget subcommands in a table

Replace the See the budget subcommands sentence with a Command/
Description table linking budget refresh, matching the kongctl create
page layout.

* docs(kong-harnesses): list profile subcommands in a table

Replace the See the profile subcommands sentence with a Command/
Description table linking all eight profile subcommands, matching the
kongctl create page layout.

* docs(kong-harnesses): group the CLI reference index by function

Regroup CLI References into function-based sections (Get Started, Sign
In and Out, Manage Profiles, Get Access Tokens, View Status, Refresh
Budget Numbers, Diagnose Problems), each holding a command and its
subcommands, mirroring the kongctl index.

* fix(tools): correct the release-sync failure hint for public repos

The shared syncReleases error told every caller the repo was internal and
that GH_TOKEN was needed for read access. That is false for the public
Kong/kongctl repo, and it contradicted the kongctl README the same change
adds. Make the hint repo-aware: kong-harnesses keeps its internal-repo
wording, kongctl now points at rate limiting.

- cover both error branches with node:test, adding a kongctl releases suite
- cover the kongctl entry point's usage-scoping and depth-2 wiring, and the
  10-series limit the kongctl spec requires
- assert the kong-harnesses error message through the internalRepo flag its
  entry point actually passes
- correct the README/design claim that the node:test suite runs in CI, and
  add the git clean step the equivalence proof needs for new include files

* chore(kong-harnesses): update landing page

* chore(kong-harnesses): reconcile with the bootstrapped docs section

release/surfaces-cli already bootstrapped a kong-harnesses docs section
(#7899), which overlaps with this branch. Reconcile the overlap:

- drop the duplicate "kong-harnesses" entry in the frontmatter tools enum
- keep the get-started and reference links on the landing page
@Guaris
Guaris requested a review from a team as a code owner November 18, 2026 21:50
@kong-ksai
kong-ksai Bot requested a review from a team November 18, 2026 21:50
@kong-ksai

kong-ksai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

✅ KSAI Review: Finished


Run report (federated) · 1 paid run · $0.5731 total
# Engine Result Model Turns Cost
1 opencode2 success deepseek-ai/deepseek-v4.1-flash/max 117 $0.5731

Reviewing cost $0.5731

@netlify

netlify Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for kongdeveloper ready!

Name Link
🔨 Latest commit 988943c
🔍 Latest deploy log https://app.netlify.com/projects/kongdeveloper/deploys/6b082cbe83448dfbf5f802ae
😎 Deploy Preview https://deploy-preview-8158--kongdeveloper.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@kong-ksai kong-ksai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check Result
Scope Complete coverage of both scope groups: all 66 changed paths read at head, including the kong-harnesses pages and generated help includes, the data and workflow changes, and the tools/lib extraction with its tests.
Mandate Applied typescript-code-review to the tools JavaScript, adversarially on failure paths, boundaries and test value, and default-code-review with the repository docs rules to the workflow, data, landing pages, index and reference pages.
Findings 1 Medium, 4 Low
Findings audit Independent audit completed: 5 kept, 0 removed, 0 with insufficient evidence, 0 added.

Every candidate position survives the audit. The two prose-rule breaks, the index gap and the lost per-command tolerance are correctly Low; the placeholder page pair stays Medium because a live landing-page card resolves to a template, and no other page in app/ carries that template marker.

Position 2 needed a correction, not removal: the failure happens while the tree is built, before the includes directory is wiped, so the cost is a failed sync with no help written, not a cleared directory left behind. Severities elsewhere were checked up as well as down and none is under-called.

The scope sweep found no further concrete defect, so added is empty. The extraction reproduces the kongctl layout and help scoping, every include the new pages embed exists, the new workflow mirrors sync-kongctl, and the candidate's own note that no workflow runs the new node:test suites remains the strongest open gap.

Evidence limits are stated in coverage: the profile is read-only, so nothing ran, and CLI claims rest on the checked-in help includes. No candidate finding rests on the binary or the internal release repository, so that limit changes no verdict.

Comment thread app/kong-harnesses/example-reference.md Outdated
@@ -0,0 +1,53 @@
---
title: "TODO: Reference title, for example {{site.kong_harnesses}} configuration"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 Medium delete

This page ships as a template: the title, description and body are placeholders, yet the landing page sends readers here from the Reference card, which promises commands and options (app/_landing_pages/kong-harnesses.yaml:43).
The Get started card target, app/_how-tos/kong-harnesses/get-started.md, carries the same placeholders. Ship both pages with content, or remove them and their cards until the content exists.

React 👍 if this finding helped, 👎 if it did not.

return tree;

async function buildNode(prefix, name) {
const { stdout } = await exec(`${[command, ...prefix, name].join(' ')} --help`);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Low risk

The base kongctl extract-help.js caught a failing third-level '<cmd> <sub> --help' and continued, so the other commands' help still landed. This builder awaits the same exec with no handler, and it runs before writeHelpTree, so one failing command rejects and the sync writes no help at all.
Wrap the exec in a try/catch, or add an option that skips a command whose help fails, so the other commands' help still lands.

React 👍 if this finding helped, 👎 if it did not.

- title: About kong-harnesses
sections:
- items:
- path: /kong-harnesses/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Low nit

The index has no entry for the new guide at /kong-harnesses/get-started/, although the landing page links it as Get started (app/_landing_pages/kong-harnesses.yaml:34) and the sibling tool index lists its equivalent (app/_indices/kongctl.yaml:7).
Add '- path: /kong-harnesses/get-started/' to the About kong-harnesses section.

React 👍 if this finding helped, 👎 if it did not.

- /kong-harnesses/
---

The `doctor` command checks one profile end to end: the profile, the sign-in, the client, and both endpoints. It reaches the network, reports each finding beside its fix, and can write the report as JSON.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Low nit

'It reaches the network' gives the command a travel verb. The help include this sentence summarizes says doctor 'uses the network' (app/_includes/kong-harnesses/help/doctor/index.md:9).
Name the mechanism: 'It uses the network, reports each finding beside its fix, and can write the report as JSON.'

React 👍 if this finding helped, 👎 if it did not.

- /kong-harnesses/profile/
---

The `profile default` command chooses the profile that other commands use when no `--profile` flag is given. Until you choose one, the default is the first profile in `profile list`. Changing the default changes no agent CLI settings, because each agent CLI names its own profile.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Low nit

'Changing the default changes no agent CLI settings' puts 'no' after the verb, so the reader parses the clause as positive until the last word. Negate the verb: 'Changing the default doesn't change any agent CLI settings, because each agent CLI names its own profile.'
The same pattern repeats in app/kong-harnesses/profile/get.md:16 ('holds no secrets') and app/kong-harnesses/status.md:15 ('opens no network connections and writes no settings').

React 👍 if this finding helped, 👎 if it did not.

@kong-ksai
kong-ksai Bot removed the request for review from a team November 18, 2026 22:07
…e base path (#7940)

* feat(ai-gateway): document the claude.ai token on AI Models

On an Anthropic target at api.anthropic.com, AI Gateway forwards the
claude.ai token of the developer in place of the provider key when
allow_auth_override is on, or when the target has no key. Document
where Kong forwards and removes the token, and the auth_source log
field.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(ai-gateway): state only where the token is removed

AI Gateway removes the claude.ai token from the headers and from the
parameter that holds the provider key, not from every parameter. It
skips a key that a key auth strategy accepted.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(ai-gateway): describe auth_source as the credential choice

The field shows the credential that AI Gateway selects for the request,
also when a cache answers it and no upstream request goes out.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(ai-gateway): drop version badges on AI Gateway pages

AI Gateway pages carry no new_in badges. Also say that the accepted
key does not go upstream.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): match the claude.ai token text to the new design

The kong-ee change now forwards the token on an Anthropic target that goes
to api.anthropic.com, and removes it from Authorization on every other
target. It has no cost tag, no log field and no key-auth rule, so remove
them from the page and from the audit log reference.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): describe Claude subscriptions on one base path

The earlier text described a target setting that forwards the
claude.ai token. That change was reverted, so the text no longer
matches the gateway.

Replace it with the setup that works today: company AI Models that
check the IdP token in Authorization, and keyless subscription AI
Models with a -subscription alias and an x-kong-id-token header rule.
Add the rules, the Claude Code settings and the limits of this setup.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): narrow the OIDC strategy notes for header routes

The notes on the AI Model and AI Auth Strategy pages said that all
OIDC AI Models on one base path, or in one gateway, must share one
openid-connect strategy. The limit is per route: a header rule keeps
two routes apart, so each route can use its own strategy.

Also from review: explain what the header rule does, check that the
saved strategy keeps upstream_access_token_header null, say that any
SSO developer can use the subscription models, warn about API keys
and apiKeyHelper that replace the subscription token, restart the
client after a token refresh, narrow the context window and Okta
claims, and link the entity pages.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): use an Okta custom authorization server issuer

The Okta org authorization server can't issue custom scopes, so the
company scope check needs a custom authorization server. Both
strategy examples now use the default custom server with an audience
check.

Also quote the base URL placeholder so the shell does not read the
angle brackets as redirects, point the auth_strategies links at the
auth_strategies field, not the deprecated identity_providers field,
and say that Anthropic bills subscription requests to the developer.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): narrow the audience and the OIDC how-to note

Use an AI Gateway audience in both strategy examples, so that tokens
that the authorization server issues for other apps fail. Tell readers
to give company AI Models the same formats, capabilities and paths as
the subscription example, without the header rule.

Narrow the OIDC note in the Kong Identity A2A how-to to the same base
path and route rule condition as the entity pages, so the pages agree.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): send only subscription tokens to subscription models

Add an Authorization header rule to the subscription AI Model, so that
a company token in Authorization does not match the subscription route
and never reaches Anthropic. Add a Request Transformer AI Policy that
removes a client x-api-key, so that only the subscription token leaves
the gateway. Both were checked on a 2.4.0 data plane with real Okta
and Anthropic, and through Konnect.

Set upstream_access_token_header to null in the company strategy too,
so that the IdP token does not reach Anthropic on company models.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): name what a subscription AI Model needs

Name the header rules and the AI Policy in the sentence that says a
subscription AI Model needs both, so the reader knows which pair it is.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): rewrite the Claude subscriptions section in plain words

Start each subsection with its subject, name the mechanism in place of
travel verbs, split sentences that carried two ideas, and give the rules
and limits lists a lead-in. The examples and every condition stay the same.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): move Claude subscriptions to a how-to

Admins and developers follow the setup step by step, so it fits a how-to
better than the AI Model page. The how-to adds the company AI Models and the
Claude Code settings for both groups. The AI Model page keeps a short
paragraph with a link, and the OIDC notes say that a route rule lets AI
Models on one base path use different strategies.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): complete the Claude subscriptions how-to

Readers could not get an IdP token from the Okta prerequisites, and a shell
with ANTHROPIC_API_KEY from the Anthropic prerequisite replaced the
subscription sign-in. The how-to now sets up the Okta app and access policy,
clears conflicting credentials, pins every model role, uses the quickstart
proxy URL and validates both groups.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): state the Okta scopes and proxy URL for each group

The how-to now names the scopes that each Okta rule allows and requests, says
where the proxy URL comes from in each shell, and gives the real effect of a
shared model ID: the two AI Models share one model entry on the data plane.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): limit the company scope and the OIDC note

Another rule on the Okta server could grant the company scope, and the OIDC
notes read as if every AI Model had to use OIDC. The how-to also gives the
proxy URL to company developers and the model ID rule for every AI Model.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): set the Okta policy order and settings env

An Okta policy for all clients with a higher priority could block the company
scope, and env entries in Claude Code settings files replace the shell values
that the how-to sets.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): match the card text and link the route headers

The landing page card now reads like the other Claude Code cards, and the
A2A FAQ links config.route.headers as the two entity pages do.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): add Okta and token steps to the subscriptions how-to

Move the Okta setup into a prereq include with steps in the Admin Console,
add the PKCE steps that get the IdP token, and add a limit: subscription
developers can use only the models that have a subscription AI Model.
Apply the wording suggestions from the review.

Signed-off-by: Bart Smykla <bartek@smykla.com>

---------

Signed-off-by: Bart Smykla <bartek@smykla.com>
* feat(ai-gateway): set up Claude Code with kong-harnesses [2.4]

Add a developer guide from a new computer to a Claude Code session that
passes the kong-harnesses checks, with the features a gateway session
turns off, why, and what to do instead.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(ai-gateway): scope the Claude Code checks and fill the gaps

Check only Claude Code with doctor, add the Windows install of Claude
Code, split /cost prices from cost warnings, and name the places where
kong-harnesses does not run.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(ai-gateway): match the Claude Code guide to the CLI behavior

Say what setup keeps on a new run, that /model keeps the built-in
options, that the MSI needs administrator rights, and which models keep
Anthropic prices in /cost.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(ai-gateway): cover provider modes and static keys in the guide

Keep the /model sentence true in every provider mode, name the login
command, say that a static-key profile asks for the key, and state the
advisor and tool search rule as the profile and route decide it.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(ai-gateway): keep the guide to browser sign-in

A static-key profile has its own guide, so this one names a profile that
signs in through the browser. Also check the Claude Code install.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(ai-gateway): say what to do when the shell cannot find claude

The Claude Code installer can leave its bin folder out of PATH and prints
the step that adds it. A reader who skips that step gets a missing command
at the version check.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(ai-gateway): set min_version and tighten the Claude Code guide prose

The page documents a 2.4 tool, so it now sets min_version 2.4. The prose
follows the style rules: no trailing negation, no intensifier, click for a
button, a full sentence in the table, and a card text that matches its
siblings.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(ai-gateway): show the package repository address as text

The kong-harnesses package repository is not public yet, so a link to it
fails the broken link check. The address stays on the page as text.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(ai-gateway): make the kong-harnesses guide work from start to end

The guide started from a profile that an administrator gives the developer,
so it could not be tested from the top. It now sets up Okta, an AI Model with
an openid-connect AI Auth Strategy and a kong-harnesses profile first, then
signs in and configures Claude Code. A note shows the setup command that
developers run with a profile from their administrator.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(ai-gateway): add the Okta policy, Windows and cleanup steps

Okta must issue a refresh token, so the prereq now adds an access policy when
none allows the sign-in. Add a PowerShell profile command, the route warnings
of profile create, the Okta cleanup, and --profile on the doctor and login
commands. Put each sentence on its own line.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(ai-gateway): check the Okta token lifetime and tighten the wording

Check the token lifetime of the Okta rule that applies, order the new policy
first, and delete the app from the Inactive tab. Clean up only Claude Code,
say which shell runs which commands on Windows, and fix wording that the
style guide flags.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(ai-gateway): check the first Okta rule and name the Windows shells first

Check the lifetime of the first Okta rule that matches, and move the new
policy to the top. Say which shell runs which commands on Windows before the
first command. Fix the activate and route check wording.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(ai-gateway): say which Okta tokens the guide's gateway accepts

Say that the strategy accepts any token from the authorization server for
the audience, mention the /cost price prompt, link the Okta sign-up page, and
limit the export step to macOS and Linux.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(ai-gateway): check the audience of the Okta default server

An administrator can change the audience of the default server, and the
gateway then rejects the tokens, so check it in the prereq.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): serve the quickstart gateway over trusted HTTPS

kong-harnesses accepts only an HTTPS gateway origin whose certificate the
system trust store verifies, because the origin carries the sign-in. The
quickstart proxy URL is plain HTTP, so the profile in this guide could not
be created.

Add a prerequisite that makes a localhost certificate with mkcert and
passes it to the quickstart data plane as base64 KONG_SSL_CERT and
KONG_SSL_CERT_KEY, point the profile at https://localhost:8443, and remove
the certificate and the mkcert CA in the cleanup.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): clean up every copy of the local certificate

Delete the copies of the certificate and key that the quickstart keeps,
and the mkcert CA files that mkcert -uninstall leaves on disk. Run the
Windows cleanup in PowerShell, where the CA was installed, and start WSL
from the directory with the certificate files.

Name the access token in the certificate prerequisite, and call the
gateway URL an origin, not a port.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): delete only the mkcert CA files, and only after uninstall

mkcert writes the CA key read-only, so the cleanup now forces the delete
on both systems, and it deletes only rootCA.pem and rootCA-key.pem after
mkcert -uninstall succeeds, not the whole CAROOT directory.

Create the certificate in its own directory so mkcert overwrites no file
of the reader's, and split two sentences.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(vale): accept mkcert as a word

The kong-harnesses how-to names the mkcert tool in prose.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): give the commands that delete the certificate directory

On Windows the certificate directory is under PowerShell's location, not
the WSL home, so the cleanup gives a command for each shell. Say that
mkcert can ask for a password, and that kong-harnesses checks the
certificate against the Windows trust store.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): rely on the quickstart cleanup for the key copies

The quickstart -d clears its output directory, so the AI Gateway cleanup
already deletes the saved certificate and key, and the extra rm step goes.
Quote ::1 for PowerShell, keep a CA that other projects use, say that
mkcert -uninstall can prompt, and run the quickstart in the export shell
on every system.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): move the install steps to the landing page

The how-to had its own install section, but other tools keep their install
steps on the tool landing page and add a tool prereq that links to them.
Add an install section to the kong-harnesses landing page, a kong-harnesses
tool prereq, and remove the section from the Claude Code how-to.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): use the quickstart on http://localhost:8000

kong-harnesses now accepts a plain http gateway origin when the host is on
the same computer, so the how-to can use the AI Gateway quickstart as it is.
Remove the mkcert certificate steps and their cleanup, point the profile at
http://localhost:8000, and add a note that a remote gateway still needs
https with a trusted certificate. Tell readers behind a proxy to add the
gateway host to NO_PROXY, and state the kong-harnesses version that the
http origin needs.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): set both proxy exclusion variables and keep the list

kong-harnesses and Claude Code read no_proxy before NO_PROXY, so set both
on macOS and Linux, and keep the hosts already in the list. Say that the
variables exist only in this shell, that profile activate fails too, and
name the loopback hosts and the https issuer in the note.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): merge both proxy lists and keep them for later shells

Merge no_proxy and NO_PROXY into one list, so a list set only in uppercase
still applies. Say that profile activate only shows the failed check, that
the lowercase proxy variables count too, and that a later claude session
in a new shell needs the variables again.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): require NO_PROXY behind a proxy and use 127.0.0.1

kong-harnesses now configures no client for a plain http gateway that a
proxy would carry, so the NO_PROXY step is required behind a proxy. Use
127.0.0.1 in the examples, because localhost depends on the system
resolver, and warn that any program on the computer can listen on the
gateway port.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): scope the NO_PROXY step to the http gateway

Say that the NO_PROXY step is for this http gateway only, give the reason
in the shared-computer warning, split the proxy failure sentence, and
point the list sentence at the NO_PROXY commands.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): name the clients that work with an http gateway

kong-harnesses leaves OpenCode and Hermes out on a plain http gateway,
because their plugins send the sign-in through the proxy of their own
environment. Say that Codex, omp and pi also work with a local http
gateway, and that OpenCode and Hermes need https. Name ALL_PROXY, and say
that a new shell without the variables gets no access token.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): add Codex to the clients that need https

kong-harnesses now also leaves Codex out on a plain http gateway, because
Codex reads system proxy and PAC settings that the CLI can't check. Say
that only omp and pi work with a local http gateway besides Claude Code,
and that NO_PROXY entries are separated by commas.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): show the install steps in the shared prereq

Move the version note and the supported computers note into the shared
kong-harnesses prereq, and show the install tabs from the landing page
there. Remove the inline copies from the Claude Code how-to. Leave the
quickstart address out of the shared prereq, because other pages use
other gateways.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): apply review wording on the Claude Code how-to

Name omp and pi as agent CLIs, split the NO_PROXY paragraph, and name
Claude Code and the AI Gateway route where the text was vague.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): require kong-harnesses 0.17.1 or later

0.17.1 is the first release that accepts a plain http:// gateway origin
on loopback.

Signed-off-by: Bart Smykla <bartek@smykla.com>

---------

Signed-off-by: Bart Smykla <bartek@smykla.com>
@tomek-labuk tomek-labuk added this to the kong-harnesses 2.4 milestone Nov 23, 2026
* feat(kong-harnesses): add the support page

Say which kong-harnesses release Kong supports, and how a customer
reports a problem with a doctor support report that holds no credential.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* feat(kong-harnesses): list the support page in the docs index

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): match the support page to the doctor report

Say that the report lists settings only for Claude Code, that the real
request needs a Claude Code profile and costs money, and recommend the
latest release as decK and kongctl do.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): state what the support report redacts

Describe the redaction per field, say that doctor refuses --inference
without a Claude Code profile, and use a profile name in the command.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): describe the support report fields exactly

Say which values the report shows and which it redacts, that doctor
finds the config path of other agent CLIs, and that a model request with
--inference can cost money.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): list the support report redaction rules

Give one rule per sentence for settings, environment variables and URLs,
as the report applies them, and say which settings sources it reads.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): state the support report sources and allowlist

Name the managed policy sources, the shell variables and the allowlist
groups that the report shows, the URL and NO_PROXY rules, and what the
report keeps. Use support report in the description.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): list each settings source the report checks

Name the four settings scopes and the managed policy sources, say that
values are resolved across them, describe the architecture as the one of
the build, and name the certificate store, region and collected values.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): say when the support report omits settings

Say that an unreadable user settings file leaves out the resolved values,
that source paths can contain the user name, and give the other agent CLIs
their own paragraph.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): list what the support report keeps

Say where to run the report, that findings name the gateway and settings
paths, that shell variables stay when user settings can't be read, and link
the Responsible Disclosure Program by name.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): put each sentence on its own line

The docs prose rules ask for one sentence per line. Split the support
page lines that held more than one sentence. No word changes.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): apply review feedback and simplify support page

Apply all copy suggestions from review, organize problem reporting into
numbered steps with clear subsections for report contents, redaction rules,
and security vulnerability reporting, use ALL_CAPS placeholder syntax, and
add CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST to the redaction allowlist.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): clarify support report contents, redaction, and security links

Address independent review findings:
- Clarify default-deny redaction rule upfront and summarize redaction rules in a {% table %} block
- Clarify that ANTHROPIC_CUSTOM_HEADERS and CLAUDE_CODE_CLIENT_KEY_PASSPHRASE are redacted, unrelated shell variables are ignored, and TLS/client key variables are file paths
- Make URL redaction rules exact (userinfo/query/fragment stripped, schemeless host requires port or dot)
- Scope Windows registry to Claude Code policy keys, add WSL exclusion, include profile-level findings/fixes/unavailable, and list all unredacted finding details and username-bearing paths
- Separate --inference prerequisite from cost warning and note no files or chat history are sent
- Use the shared /support/vulnerability-reporting.md include and update related_resources to link the Claude Code setup how-to
- Tighten prose (explicit subjects, no stacked 'and's, consistent version/problem terminology, 'in any letter case', TTL)

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): fix env exception, warning phrasing, and CLI term

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): state version support scope and PowerShell 5.1 UTF-8 note

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): use OS navtabs for the support report command

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): keep --inference error phrasing accurate across OS tabs

Signed-off-by: Bart Smykla <bartek@smykla.com>

---------

Signed-off-by: Bart Smykla <bartek@smykla.com>
@tomek-labuk tomek-labuk added the do not merge Issues/ PRs whose changes should not be merged at this time label Nov 24, 2026
* feat(kong-harnesses): sign in and recover a missing access token

Add a reference page on how to sign in to a kong-harnesses profile, check
the sign-in, sign in again or sign out, and fix each problem that stops
kong-harnesses from giving the agent CLI an access token.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): cover profile errors and CI keys on sign-in page

Add the profile, subscription and generic lines that credential prints
when it gives no token, the environment key and client-managed Login
states, the CI profile that login refuses, and the IPv6 loopback fix for
a proxied plain-HTTP gateway. Link each command to its reference page.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): match sign-in page to login, logout and token

Say that login --replace and logout ask for the profile name, that
replace stops the current sign-in first, and that logout can leave the
sign-out at the identity provider unconfirmed. Add the proxy, profile
read, cancel, token output and fresh login lines, the Error: prefix and
the printed sign-in URL. Fix the client-managed Login state, the Ready
state, the subscription fix and the XDG_RUNTIME_DIR cause.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): say that login diagnostics can sign in

login --diagnostics runs a plain login when the profile has no usable
sign-in, so it can remove the saved sign-in and open the browser. The
login reference said that it changes nothing.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): match sign-in page to token, logout and status

Say that token never signs in, so fresh login is required covers a
missing or expired sign-in, and that a subscription profile and the
codex, omp and pi clients need login first. Scope Managed by the client
to the reported client, cover both NO_PROXY spellings, the logout
partial results and the CI key, and add the profile selection, profile
storage and token cancel lines.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): name the renewal rejection behind fresh login

Say that fresh login is required means the identity provider rejected
the renewal or the sign-in is missing or expired, that token doesn't open
a browser, and that no browser opened means no sign-in result arrived.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): cover plugin clients and login-only errors

Add the lines that only login prints and the refusal for OpenCode and
Hermes Agent, which sign in through their own plugin. Link the profile
errors to the errors reference. Cover the profile storage, profile
argument and environment key lines for login, the newer-release profile
fix, the unreadable profile in status, a login after a stopped renewal,
and what diagnostics still asks for. Drop the proxy check line that a
release build can't print.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): match sign-in page to the fixed CLI messages

Use the per-platform profile storage messages and the profile move line,
add the logout terminal line, the login mode flag, login could not
complete and gateway MCP key read lines, and drop the replacement line
that login can't print. Set NO_PROXY in the shell before activation,
split the logout cases into a list, name the plugin client flags, and
use the PROFILE_NAME placeholder from the style guide.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): say when logout asks and which clients need HTTPS

Say that logout asks for the profile name only when a sign-in is saved,
that Codex, OpenCode and Hermes Agent need an HTTPS gateway, and that
Windows can reserve the callback port. Add the token cancel after the
token, the damaged sign-in behind fresh login, the logout cancel and
could not complete lines, and link the profile selection errors.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): cover logout partial results and output failures

Add the logout partial results, including the new local cleanup line
for a path that never asks the identity provider, and the output write
failures of login and logout. Give the Hermes Agent sign-out steps, run
login first only for an identity provider profile, say that a CI logout
leaves the environment key, and send the profile selection errors of
every command to the errors reference.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): match the sign-in page to the latest logout behavior

Say that a failed removal of a usable sign-in or a key reports a local
cleanup that did not contact the identity provider, and keep the "needs
attention" line for a saved sign-in that can't be used. Add a status step
to both logout partial results, the IPv6 reserved port list on Windows,
the logout secret store lines, and the Hermes logout and remove targets.

Say that the sign-in URL works only while kong-harnesses waits, that a
first sign-in that fails can need login with diagnostics, that a profile
file can also be unreadable, that a subscription profile also needs the
Claude sign-in, and that a CI key works while the variable is set.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): cover more logout and login paths on the sign-in page

Name the other lines that logout shares with credential, the unusable
sign-in case of login --replace, the earlier-release sign-in that keeps
the sign-out unconfirmed, and the session without Secret Service that
hides a saved key from logout. Say where to find the callback port, that
project settings can override the proxy exclusions, and how the gateway
MCP key prompt can stop or fail.

Use doctor with --profile, give the final profile storage fixes, keep
only a link for the profile selection errors, and lead the DPAPI fix
with the desktop session.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): cover the profile lock and vault cases of sign-in

Say which saved sign-in goes through the removal prompt, and that a
locked or refusing secret store prints its own line. Say that logout
takes the Linux profile lock first, that a failed lock release can follow
a removal, and that the runtime directory must exist with mode 0700.

Say that every command prints the profile folder lines, that an earlier
release sign-in can stay active at the identity provider, that managed
settings can stop the activation, and how to sign in to OpenCode.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): give both OpenCode sign-in forms and tighter fixes

Give the OpenCode 2 and OpenCode 1 forms of the sign-in command, the
doctor step for a plugin that OpenCode couldn't install, and a link from
the refusal row to those steps. Say that login doesn't ask when no
Secret Service runs, and that an earlier-release sign-in is reported
unconfirmed even when its removal fails.

Limit the profile folder lines to the commands that load the profile
store, point the token output failures at the agent CLI, and tell a CI
job to set the key variable instead of running login.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): tighten the browser, proxy and agent plugin steps

Say that the sign-in URL comes before the error line and can be cut off,
and get a new URL with login --no-browser. Give the proxy fix as one
sequence that runs doctor first and activates once, and say that a proxy
value that isn't valid also counts.

Follow the doctor setup step when the profile doesn't set up OpenCode,
restart Hermes Agent after its sign-in, and use the entry ID or label to
remove one Hermes credential. Check status before a new login after a
cancelled login, and fix two wordings.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): match the logout attention line and safer retries

Tell the reader to run logout again when logout says the sign-in needs
attention, as the CLI now says, and to check the cause of an unreadable
profile before a new import. Ask for keys of gateway MCP servers again
after a cancelled login, and point a profile without OpenCode to the
administrator.

Remove one Hermes Agent credential by its entry ID only, say that a
closed standard output also stops the token output, and say when the
no-browser error line comes.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): match the unreadable profile and OpenCode setup steps

Say that the Profile state field names the next step for each unreadable
profile cause, recreate a profile that the reader made, and activate an
imported profile for OpenCode. Say when an older sign-in copy keeps the
sign-out unconfirmed, and that a new callback port needs a redirect URI
that the identity provider accepts.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): say that logout always removes gateway MCP keys

Every logout that removes the sign-in or the key also removes the saved
keys of gateway MCP servers for the profile, not only the logout that
finds no sign-in.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): move the sign-in messages to their own page

Move the access-token and login/logout error message tables from
app/kong-harnesses/sign-in.md to app/kong-harnesses/sign-in/errors.md,
keeping both H2 headings intact. Update cross-links in sign-in.md, add a
link line and related resource entry to the new page, list it in
app/_indices/kong-harnesses.yaml, and align the moved logout messages
with the current CLI output.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): trim repeated plugin steps and sign-out edge cases

Remove the repeated OpenCode and Hermes Agent setup and credential
removal instructions from app/kong-harnesses/sign-in/errors.md so both
rows link to the single copy in Sign in to a profile. Shorten the
unconfirmed revocation and CI-job edge cases in Sign out on
app/kong-harnesses/sign-in.md, keeping the Already signed out warning
on the matching error row and one concise sentence for leftover saved
credentials.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): clarify CI logout rules and failure link placement

State when logout shows Already signed out for a CI profile, explain that
logout asks for confirmation and removes an older saved sign-in or key
when the session has access to the secret store, and restore the Linux
XDG_RUNTIME_DIR lock requirement before running logout in a job. Move the
logout failure messages link out of the final list item so it applies to
the whole list.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): wrap sign-in pages to one sentence per line

Put each sentence on its own line in app/kong-harnesses/sign-in.md prose
and list items, and use folded YAML scalars in the table cells of
app/kong-harnesses/sign-in.md and app/kong-harnesses/sign-in/errors.md so
every multi-sentence cause, fix, and meaning value puts one sentence on
each line without changing the rendered text.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): clarify logout disables local sign-in first

Restore the revocation-order behavior in app/kong-harnesses/sign-in.md:
when a profile names a revocation endpoint and the saved sign-in can be
used, logout disables the current sign-in on the local computer before
requesting revocation from the identity provider, and removes the saved
sign-in after the identity provider confirms revocation.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): keep per-OS sign-in steps and errors in OS tabs

The sign-in pages mixed macOS, Linux and Windows facts in one flow: the
secret store of each system in one sentence, Linux-only CI sign-out steps
in the shared text, and error rows whose fix listed a step per system.

Show the secret store of each system in a small table. Put the CI sign-out
steps in a "macOS and Windows" tab and a Linux tab. Move the secret store,
session, profile folder and callback address errors into one table per
system, under the same heading, so the links to it keep working. Do the
same for the error about an unreadable key of a gateway MCP server.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): share the callback row in the sign-in errors

The callback address row was the same in each OS tab. Put it once in the
shared table and keep a Windows-only row for the reserved port and the
netsh steps.

Also say that a relative XDG_CONFIG_HOME fails even when HOME is absolute,
and move the runtime directory case of logout into the Linux tab.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): state the shared CI logout case once

The sentence about a saved sign-in in a CI job was the same in both OS
tabs. Put it once before the tabs.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): put each login intro sentence on its own line

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): say logout cannot reach the store

Without Secret Service, logout tries the secret store and finds no
service. It does not skip the check, so say that it cannot reach the
store.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): match logout and port causes to the CLI

Without Secret Service, logout reports Already signed out and leaves
a saved sign-in in place, so say that instead of an unreachable
store. On Windows the callback message covers a reserved port and a
port that another program uses, so name both causes and point to the
fix line above the tabs. Drop a repeated HOME sentence.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): rewrite sign-in as per-CLI how-to guides

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): state Codex POST /v1/responses requirement

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): align Codex guide with live gateway checks

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): simplify sign-in guides and tighten prose

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): deduplicate sign-in includes and polish wording

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): simplify sign-in include and align status wording

Signed-off-by: Bart Smykla <bartek@smykla.com>

* Restructure and rewrite how-tos

* fix broken links

* docs(kong-harnesses): hide non-Claude-Code harnesses for 2.4 release

Signed-off-by: Bart Smykla <bartek@smykla.com>

---------

Signed-off-by: Bart Smykla <bartek@smykla.com>
Co-authored-by: tomek-labuk <tomasz.labuk@konghq.com>
@tomek-labuk tomek-labuk added the release-docs Docs for release label Nov 24, 2026
* ci(kong-harnesses): run the sync on the release branch [2.4]

GitHub runs a scheduled workflow only from the default branch, so the
sync-kong-harnesses workflow never ran for release/kong-harnesses. This
puts the same workflow file on the release branch that #8231 adds to
main.

A base job sends the sync to this branch while it exists. The versions
job downloads the newest release and checks it against SHA256SUMS.txt
and its build provenance. The release data reads every page of releases
and takes only vX.Y.Z tags, and the sync fails when no such release is
left, so the help never goes out with old release data.

The workflow and fetch-versions.js read the releases repository from the
KONG_HARNESSES_RELEASES_REPO secret, through the shared parseRepo rule in
tools/lib/tool-versions.js.

This change was part of #8229 and moves here unchanged, so that PR holds
only the reference pages.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* ci(kong-harnesses): install the sync release with the action

Name Kong/kong-harnesses in the workflow, fetch-versions.js, the tests
and the README again, in place of the KONG_HARNESSES_RELEASES_REPO
secret, and install the release with Kong/setup-kong-harnesses in place
of the download and checks in the workflow.

The versions job now runs fetch-versions.js first and passes the latest
vX.Y.Z release that it takes to the action, so the help and the release
data name the same release without a check after the install. The
releases token reads only Kong/kong-harnesses.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* ci(kong-harnesses): pick the sync branch with an input

Drop the base job and sync the branch in dev_site_base_branch, with
release/kong-harnesses as the default for scheduled runs, as the other
generate workflows of this repository do.

Signed-off-by: Bart Smykla <bartek@smykla.com>

---------

Signed-off-by: Bart Smykla <bartek@smykla.com>
@Guaris Guaris mentioned this pull request Nov 24, 2026
bartsmykla and others added 7 commits November 25, 2026 07:45
* feat(kong-harnesses): install for every user and through MDM [2.4]

Add a page for administrators that install kong-harnesses for every
user of a computer: the macOS installer package with its signature
check, the Windows installer with an Intune deployment, and the Linux
packages, with upgrade and removal for each. Link it from the
kong-harnesses landing page and index.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): check downloads before install [2.4]

Add one section that checks the checksum and the build provenance of a
downloaded file, and point each platform to it. The Linux packages have
no signature and the Windows installer is not signed yet, so these checks
are the only proof that a file is the release build.

Make the silent Windows install wait and print its exit code, split the
macOS checks into one command for each block, and add the steps that
remove the settings of each developer.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): fix install and Intune steps [2.4]

Keep a silent Windows install from restarting the computer and name the
exit codes that mean success, run the Intune packaging tool from its
folder, and follow the Intune steps in the order of the admin center.
Keep the supersedence chain below the Intune limit.

Use one meaning for the file placeholder, check the permissions of
/usr/local before the macOS package, say how Intune detects a macOS
package, and add the sign-out steps for OpenCode and Hermes Agent.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): one action per Intune step [2.4]

Write the Intune steps with one action each, in the order of the admin
center. Run the silent Windows install with the full path of the
installer, match the checksum line by the exact filename, and check for a
Homebrew link and access control entries on macOS.

Say what to do when Intune does not detect the macOS package, remove each
Hermes Agent credential by its index, and point the install steps on the
kong-harnesses page to the file checks.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): fix removal and Intune details [2.4]

Remove the package files and receipt also when Homebrew owns the link,
remove Hermes credentials from the highest index, and use the full path
of the installer on the kong-harnesses page. Add the Intune description
and scope tags steps, make the PowerShell checksum line print False when
no line matches, and use /bin/ls for the access control check.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): check the macOS copy before removal [2.4]

Compare the installed executable with the checksum in the package
receipt, so the removal steps never delete a copy that another install
put at the same path. Use the current Intune architecture choice and the
docs formats for dropdown menus and toggles, assign each macOS package
to the matching Macs, and name the executable in the Windows permission
check.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): select the Windows platform in Intune [2.4]

The Intune app type pane asks for the platform before the app type, so
add that step.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): use the toggle format in the Intune steps [2.4]

Uninstall previous version is a toggle in Intune, so the step uses the
docs toggle format. Keep the final period of the exact Intune label for
the architecture option.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): remove only the package files on macOS [2.4]

Delete only the license and notices that the package adds, and remove
their folder only when it is empty. Delete the executable only when it
is a file, not a link, and its checksum is in the receipt. Warn that the
removal cannot tell a release archive copy from the package copy.

Make the Windows checksum check case-sensitive, as on macOS and Linux.
State the Intune supersedence limit as Microsoft gives it.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): guard the macOS removal and Intune reinstall [2.4]

Check that the folders of the license and notices are not links before
rm, and say what to do when the executable is missing. Remove the MDM
deployment or the Intune Required assignment first, so the app is not
installed again. Stop the Intune install from restarting the device, and
give the Properties path to remove the supersedence of the old app.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): name the Intune receipt check for the macOS pkg [2.4]

Intune can detect a PKG install by its package receipt when no app bundle
is found, so name the receipt and check it on the test Mac. Drop a
reference to a position on the page from the macOS warning.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): move the Intune steps to a how-to [2.4]

The install page passed 2,000 words and did several jobs, so the Intune
walkthrough is now its own how-to, as the Entra ID SSO steps are, and
the page links to it.

The macOS removal now checks that /usr/local and /usr/local/bin are
folders, because rm can delete a file in another folder through a linked
parent folder. The Intune test of a new macOS release uses a Mac with the
previous release and checks the version in the receipt.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): test MDM deployments on one device first [2.4]

Give the macOS MDM deployment its own section with a receipt version
check on a test Mac, and make the fallback tool check the release
version. Assign the Intune app to a test group first, check it in a new
PowerShell window, and then add the other groups. Name the Intune
permissions and device prerequisites, and use the exact Intune labels.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): rewrite the install and Intune guides

Rewrite the system-wide install reference page and the Microsoft Intune
deployment how-to from scratch for clarity and task order while preserving all
verification, security, scope, and removal steps:

- Add a packages-by-platform lookup table and OS navtabs for checksum,
  provenance, Linux package, and path verification commands in
  app/kong-harnesses/install.md.
- Split macOS, Windows, and Linux sections into clear Install, Deploy, and
  Remove subsections and update the Hermes sign-out command to use the entry
  ID.
- Group the Intune wizard UI steps into subheadings, move validation ahead of
  rollout and future release upgrades, and place device removal steps in the
  how-to cleanup block.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): move developer removal steps to a how-to

Add app/_how-tos/kong-harnesses/remove-kong-harnesses.md as the single owner of
developer removal steps and per-platform uninstall instructions, and register it
in app/_indices/kong-harnesses.yaml.

Replace the duplicated removal steps in app/kong-harnesses/install.md with a
single sentence and link, and update the removal links in
app/_how-tos/kong-harnesses/deploy-with-intune.md.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): tighten install checks and platform snippets

Apply review findings to app/kong-harnesses/install.md and the Linux and
Windows install includes:

- Promote checksum and provenance labels to H3 headings and share the checksum
  lead-in before the platform tabs.
- Require existing /usr/local and /usr/local/bin paths on macOS to be
  directories, and include that check in macOS MDM deployments.
- Name supported Linux distributions, reference the platform packages table
  instead of repeating filenames, align macOS and Windows removal order,
  shorten the macOS Intune note, split long conditions, and tighten the Windows
  doctor check note.
- Use FILE and MSI_PATH placeholders with one sentence per line in the Linux
  and Windows install includes.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): fix Intune permissions, placeholders, and UI steps

Apply review findings to app/_how-tos/kong-harnesses/deploy-with-intune.md:

- Add Mobile apps Read permission for custom Intune roles.
- Clarify that FILE is the installer filename rather than a full path.
- Split the TLDR summary into shorter sentences and remove the mid-step branch
  in Assign the app to a test group.
- Promote Roll out to remaining groups to an H2 section, add full Intune UI
  navigation and single-action steps for rollout and previous-app removal, and
  split the upgrade assignment step.
- Clarify the Intune supersedence graph limit (at most 11 apps counting the new
  app and up to 10 superseded apps) with a link to Microsoft Learn.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): fix sign-out order and removal rules

Reorder the developer removal how-to so kong-harnesses logout and the
OpenCode and Hermes Agent plugin sign-outs run before profile cleanup,
keeping plugin settings available for sign-out while matching the order
the CLI allows.

Also address review findings on remove-kong-harnesses.md:
- Qualify the tldr revocation claim and link the sign-out rules.
- Send invalid or unreadable profiles to the invalid-profile steps before
  the general logout retry step.
- Clarify the logout confirmation prompt for saved sign-ins and static
  keys versus leftover gateway MCP server keys.
- Note that machine-wide profiles appear in profile list, must be signed
  out before fleet build removal, and are refused by profile delete.
- Link exit-code meanings to errors#exit-codes and link the fleet build
  sentence to the fleet build removal how-to.
- Validate deletion with profile list because KONG_HARNESSES_PROFILE
  limits status to one profile.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): tighten Intune cleanup, upgrade, and rollout checks

Address review findings on deploy-with-intune.md:
- Make the Intune cleanup steps linear with full UI navigation and
  controls, moving the manual device-by-device removal option to a note.
- Replace hard-coded step numbers in the upgrade section with a link to
  Assign the app to a test group starting on the Assignments page.
- Split previous-app removal into three short lists and add the explicit
  Click the previous app and Click Delete controls.
- End both the remaining-groups rollout and the upgrade workflow with
  Intune install-status checks under Monitor.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): tighten macOS Intune note and Windows exit codes

Address review findings on install.md:
- Remove the redundant Remove developer settings H2 section at the end.
- Fold the repeated one-Mac test clause in the macOS Intune PKG note.
- Condense the Windows silent installer exit-code explanation to two
  sentences.
- Align the removal-link wording across platforms with the sign-out,
  cleanup, and profile deletion order.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): align macOS Intune PKG detection note with Microsoft docs

Remove the claim that Microsoft Intune's unmanaged macOS PKG app type detects
installations by package receipt. Document what Microsoft's detection rules
check (included .app bundle IDs and build numbers, excluding non-application
files) and note that the kong-harnesses .pkg installs only the CLI executable
and documentation files without a .app bundle.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): fix unreadable profile routing, delete rules, and Hermes logout

Route unreadable profiles by the next step the CLI prints instead of sending
every unreadable profile to invalid-profile deletion, and keep OpenCode and
Hermes Agent plugin sign-outs before profile cleanup. Clarify when logout prints
Already signed out, document immediate machine-wide refusal and invalid-profile
MCP key cleanup in profile delete, and align Hermes Agent full removal with
hermes auth logout kong-ai-gateway.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): clarify Intune uninstall preconditions and app deletion steps

Confirm developers have completed removal steps before assigning Uninstall,
state that Intune's Uninstall assignment applies only to copies installed by the
same Intune app deployment, use the right-click or ellipsis menu path to delete
the previous app, and scope the final All apps check to the upgraded processor
type.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): state Intune macOS PKG detection limit plainly

State plainly that Microsoft Intune's macOS app (PKG) type cannot report
installation success for the kong-harnesses package because the package
installs no .app bundle.

Give the checks that verify deployment: pkgutil --pkg-info for the receipt
version, /usr/local/bin/kong-harnesses version, or an MDM tool that checks
the package receipt version.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): update unreadable profile and invalid delete steps

Match the CLI diagnostics for unreadable machine-wide profiles, bad-name
files, and invalid user profile deletion:

- Map invalid and untrusted machine-wide profiles to asking an administrator
  to reinstall them, and map machine-wide files with invalid names to
  skipping logout and asking an administrator to remove them.
- Scope the invalid user profile path to messages that report an invalid or
  unreadable user profile and name kong-harnesses profile delete.
- Explain that deleting an invalid user profile removes gateway MCP server
  keys listed in the document after confirmation and names any remaining or
  unreadable items in the Gateway MCP keys output field for removal from
  the system password store.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): cover both processor-type apps in Intune cleanup

Clarify in the cleanup procedure that administrators who deployed both x64
and Arm64 Win32 apps must repeat the Intune assignment changes for each
processor-type app, both for Intune uninstall assignments and for manual
removal.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): stop naming the internal repository

The install page verified the build provenance against the internal
repository and its release workflow file, and the install includes called
Cloudsmith "the kong-harnesses repository".

Scope the provenance check to the Kong organization with --owner Kong, keep
--source-ref for the release tag, and add --deny-self-hosted-runners. Say
that the check confirms a Kong GitHub Actions workflow built the file. Name
the Cloudsmith repository as the source of the packages, the checksums and
the attestation bundle.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): give each OS its own tab

Some text mixed operating systems in one flow. The download check split one
procedure into a checksum tab block and a provenance tab block, the path
check put macOS and Linux paths in one sentence, and the removal page listed
the secret store and the uninstall tool of each OS side by side.

Put the checksum and provenance checks in one tab per OS, split the path
check into macOS and Linux tabs, and keep the OS details of the removal page
in its existing uninstall tabs.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): show how to delete leftover gateway MCP keys

When profile delete can't remove a gateway MCP key of an invalid profile,
the page told readers to delete the named items from the system password
store, but not how. The way differs on each OS, so add one tab per OS:
the login keychain item on macOS, the Secret Service item on Linux and
the DPAPI file in the vault folder on Windows, each also for the
PROFILE_NAME.mcp-key.* case.

Drop the Linux CI sentence from the shared sign-out step. The sign-in
page owns that fact in its CI job tabs, and the step already links there.
Use the CLI term "system password store" in the prerequisite.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): say which test result allows a macOS rollout

The rollout step waited for an MDM success report, but Intune can't
report success for a package without an app bundle. Name the check for
each case: the MDM success report and the receipt version for a tool
such as Jamf Pro, and the receipt version and the version command on the
test Mac for Intune.

Move the prerelease limit of the Windows installer from the shared text
into the Windows row of the package table, and use "can't" in two notes.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): list and delete leftover MCP keys safely

The Linux listing piped secret-tool search output to grep, but secret-tool
prints the secret on stdout and the attributes on stderr, so the listing
showed secret values and missed the item names. It now discards stdout,
reads stderr, unlocks the keyring when needed and prints only the names of
the profile's items, plus any secret-tool error.

On macOS, security delete-generic-password deletes only the first match,
and kong-harnesses writes to the default keychain. The step now loops until
no item is left, the wildcard case lists account names from dump-keychain
instead of a manual Keychain Access search, and the page says that macOS can
ask for the keychain password.

The Linux warning now says that a clear without the profile attribute
deletes every saved item, and the Windows step says that a missing path
means that the item is already gone.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): point the Intune PKG note to the rollout step

The note offered the receipt check and the binary check as alternatives,
but the rollout step needs both before a rollout with Intune. The note now
points to that step instead of restating the checks.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): check that each removed MCP key is gone

security can say that a password has been deleted when the delete
failed, and secret-tool clear skips items in a locked keyring, so add
a check step to the macOS and Linux tabs. Name the keychain to pass
when the default changed after setup. Group the Linux search in braces
so zsh doesn't also pipe the secret to sed. Put the step for every key
of a profile first in the Windows tab, as in the other tabs.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): prove MCP key removal past a lock

A locked keychain or keyring made the removal checks look like
success. On macOS, unlock the keychain before the delete, and count
the not-found result only after that unlock. On Linux, run the list
command again as the check, because a lookup of a locked item exits
the same way as a lookup of a removed one.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): unlock the right keychain first

Unlock the keychain before the list step, because a locked keychain
can hide item names. Name the keychain path for every security
command, the unlock included, and say what to do when the former
default keychain is not known. On Linux, print a secret-tool line
when the command fails or is missing, so an empty result proves
that the item is gone.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): skip the System keychain in removal

The System keychain is in the search list, but kong-harnesses saves
no item there and a user cannot unlock it, so the steps skip it.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): check every keychain and one item

macOS saves each key in the keychain that is the default at the time
of the save, so the removal steps now run for every keychain in the
search list. The Linux check searches for the one item, so that a
locked item of another profile does not fail it.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): say an item stays where it was created

macOS adds a new item to the default keychain and updates an existing
item in place, so the item is in the keychain that was the default when
kong-harnesses created it.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): name the keychain in each command

Adding a keychain path at the end of the line breaks the awk pipe and
the delete loop, so each security command now has a KEYCHAIN_PATH
placeholder in the right place. The Linux list step also says that a
locked item prints a secret-tool line.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): quote the keychain path

security list-keychains prints quoted paths, and a path with a space
splits into two arguments without quotes, which makes the check report
that the item is gone.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): paste the keychain path without its quotes

security list-keychains prints each path in double quotes, and the
commands already quote the placeholder, so the reader pastes only the
path between the quotes.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): read the keychain path into a variable

security list-keychains prints a path without shell escapes, and a $
in a pasted path expands inside double quotes. Reading the path with
read -r keeps it exact, and each command uses the variable.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): say a later save keeps the keychain

A save of an existing item updates it in place, so the item stays in
the keychain where kong-harnesses created it.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): cover a save outside the keychain list

A later save updates a gateway MCP key in place only while its keychain
is in the search list. When that keychain left the list, the save makes
a new item in the default keychain and the old one stays, so the page
now says that and lets the reader paste the path of such a keychain.
The paste step also says to drop the spaces and quotes that
`security list-keychains` prints around each path.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): say when a keychain copy goes unreported

kong-harnesses looks for a gateway MCP key only in the keychains that
`security list-keychains` prints. A copy in a keychain outside that list
stays after a save, and `profile delete` doesn't report it in the
`Gateway MCP keys` field. Say that, run the removal step for such a
keychain also when that field is absent, say that a save with more than
one match changes nothing, and split the long paste sentence.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): list keychain items without the delete field

A copy of a gateway MCP key in a keychain outside the search list is not
named in the `Gateway MCP keys` field, so the macOS steps now list the
item names of the profile in each keychain whatever that field shows.
The logout step says that such a key stays and links to the removal
steps, and the paste step is split into short sentences.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): give leftover MCP key removal its own section

A gateway MCP server key can stay after `logout` of a valid profile
too, but the steps that remove it sat inside the procedure for an
invalid profile, which says that it applies only to such a profile.
Move them under their own heading outside the tabs, and point both the
logout step and the invalid-profile procedure to it.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): point each leftover key step to one place

The last step for an invalid profile repeated the leftover key steps.
Point it to the section that holds them, and say in that section when
its steps apply, also after logout of a valid profile, and where the item
names come from.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): address review and split upgrade and recovery guides

Apply wording, UI step, and formatting review feedback on the Intune deployment and kong-harnesses removal how-tos.

- Add tools: [kong-harnesses] and prereqs.skip_tool: true to deploy-with-intune.md.
- Move Intune release upgrades and supersedence cleanup into a dedicated how-to (/kong-harnesses/upgrade-with-intune/) and extract repeated Intune steps into shared includes under app/_includes/how-tos/steps/.
- Move invalid profile deletion and leftover gateway MCP server key cleanup into a dedicated how-to (/kong-harnesses/delete-invalid-profiles-and-leftover-keys/) so remove-kong-harnesses.md follows a single linear path.
- Update app/kong-harnesses/install.md and app/_indices/kong-harnesses.yaml with the new guides and align warning and step formatting.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): refine how-to validation, Intune steps, and prose clarity

Address thorough docs review findings across the install, Intune, removal, and recovery pages:

- Move Validate to the final section of deploy-with-intune.md and separate rollout monitoring into Validate on both Intune guides.
- Replace conditional Scope tags callouts with the explicit wizard step after Dependencies, and specify exact UI controls for removing assignments, supersedence links, and previous apps.
- Remove the secondary manual-uninstall branch from deploy-with-intune.md cleanup.
- Split the combined macOS and Linux validation tab, tighten step 1 error links, and clarify fleet-build cleanup in remove-kong-harnesses.md.
- Split multi-action recovery steps, fix heading-independent opening sentences, and strengthen Validate in delete-invalid-profiles-and-leftover-keys.md.
- Deduplicate Intune PKG detection notes, replace relative step-skip counts with named steps, and refine install.md, windows.md, and the landing page card CTA.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): move intune how-tos to reference pages (#8274)

* move intune how-tos to reference pages

* fixes

* docs(kong-harnesses): hide non-Claude harnesses and add AI Gateway requirement

Hide OpenCode, Codex, Hermes Agent, and omp mentions behind Liquid comments for the Claude Code-only 2.4 launch, and add AI Gateway to Requirements in app/kong-harnesses/deploy-with-intune.md.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): Restructure removal how-tos (#8282)

* restructure howots

* review fixes

* fix(kong-harnesses): remove links to unmerged pages

Signed-off-by: Bart Smykla <bartek@smykla.com>

---------

Signed-off-by: Bart Smykla <bartek@smykla.com>
Co-authored-by: tomek-labuk <tomasz.labuk@konghq.com>
* feat(kong-harnesses): add a troubleshooting page

The doctor report prints a fix line under each finding, but no page
explains what each check looks at, what the exit codes mean, or how to
remove kong-harnesses from a computer.

Add a reference page with the next step for each doctor check, the exit
code for each kind of problem, and the order to clean up the agent CLI
settings, sign out and delete the profile. Link it from the doctor and
profile cleanup pages and add it to the docs index.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): match the troubleshooting page to doctor

Say how doctor picks the exit code when it checks more than one agent
CLI or finds an install problem. Cover the settings file env block in
the overrides check, the sign-in commands of OpenCode and Hermes, the
fix line of an unchecked route, and the other profile and login fixes
that doctor prints. Stop running profile cleanup twice in the removal
steps.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): cover more doctor fixes and one-profile removal

Add the exit codes for an inference failure and a canceled run. Point
the client, plugin, picker, model and MCP rows at the fix line where
doctor prints more than one fix, and name the profile model list and
managed settings cases. Remove one profile with a cleanup per agent
CLI, because a cleanup without --client also removes other profiles.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): tie the troubleshooting rows to doctor output

Say when a fix line is missing, which checks use the profile model list,
what the anthropic and gateway-mcp checks skip, and when the Linux
keyring and runtime directory fixes apply. Move the install row first,
because doctor prints it before the reports. Remove one profile with
logout and profile delete, and follow the cleanup command that delete
names, so a cleanup never removes the setup of another profile.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): match more troubleshooting rows to doctor

Say what the route, catalog, overrides and anthropic checks look at in
each provider mode, when a CI profile can't use login, and when the
fix line is missing. List the gateway MCP servers under exit code 2,
skip the identity provider for a static key, and remove the claim that
the cleanup report names each kept edit.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): cover proxy, route and cleanup edge cases

Say when doctor skips the gateway connection test behind a proxy, how
to exclude a local http gateway from both proxy variables, and that an
IPv6 gateway needs https. Follow the route and overrides fix lines
first, cover a malformed model list, and add the cleanup exit codes for
edits it can't sort out and for a cleanup that doesn't finish.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): match the proxy and cleanup steps to doctor

Give the proxy fix that the current CLI prints: activate again for
Claude Code, follow the fix line when project or managed settings set a
proxy, and list each form of an IPv6 loopback address for the other
agent CLIs. Say which checks go through the proxy, when the model list
needs a sign-in, and how to take over settings that no activation
recorded. Split logout from profile delete, and say when cleanup exits
with 2 or 4.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): order the proxy steps and use PROFILE_NAME

Add the gateway host to NO_PROXY and no_proxy in the shell before
Claude Code activates again, because activation refuses while a shell
proxy applies, and say that Codex, OpenCode and Hermes need https.
Cover the sign-in that OpenCode and Hermes own, the catalog fix line, a
gateway that doesn't answer, and exit 4 with --client. Use the
PROFILE_NAME and CLIENT_NAME placeholders, as the style guide asks.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): give the exit code of each gateway MCP failure

List a refused or missing MCP route under exit code 1 and a missing MCP
server key under exit code 3, as the next CLI release reports them. Say
that cleanup names each setting it left as edited, that only an https
gateway sends other checks through the proxy, and what the overrides
check reads in each source. Run doctor for CLIENT_NAME, move the
cleanup warning before the steps, and say when logout asks to confirm.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): match exit 2, route and cleanup text to doctor

Take the gateway MCP settings out of exit code 2, because a blocked
server is only a warning. Say that a 401 or 403 answer is a refused
sign-in on the route, that the overrides check counts only credentials
that aren't empty and switches that are on, and that cleanup names the
settings or groups that hold your edits. Point the runtime directory,
client, anthropic, picker and npm rows at what doctor reports.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): put cleanup before manual removal

Run profile cleanup first for inconsistent settings, and remove values
manually only when cleanup reports that the settings no longer match.
Say when the gateway check fails or skips its direct test, that the
overrides check reads the environment of doctor, which gateway MCP
servers doctor doesn't probe, when logout asks to confirm, and where
the profile line shows a missing runtime directory.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): say when logout asks and doctor skips inference

Say that logout asks to confirm for a saved sign-in or key, and removes
leftover gateway MCP keys without asking. Name the managed settings as
a source of a client setup, skip the inference request for a Claude
subscription profile, and run profile activate on its own when the fix
line names only that step. Apply the --inference gateway skip to both
schemes.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): cover unreadable proxy settings and two documents

Say that an http gateway also fails when doctor can't check the proxy
settings, also with --inference, and that doctor reads the project
settings of the folder it runs in. Cover the two ownership documents
that cleanup refuses, and follow the cleanup message for values it
can't sort out.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): say when doctor skips the issuer connection test

Say that the issuer check skips its direct test when a proxy applies,
and that exit code 130 means a canceled run. Quote the cleanup command
as doctor prints it, name the other proxy settings that fail an http
gateway, and cover the folders above a Windows install.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): cover subscription catalog reads and discovery

Tell a Claude subscription profile to start Claude Code to read the
model list, because doctor can't send that sign-in. Say that gateway
discovery keeps the built-in models and that a skipped model needs its
own row, that the cleanup output names kept edits only after a cleanup
that succeeds, and that the letter case proxy rule is for Windows only.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): fix sign-out, model, install and overrides rows

Say that logout removes only the sign-in that kong-harnesses saved,
and give the OpenCode and Hermes Agent sign-out commands, because
logout refuses those agent CLIs.

Give the model step for each fix line, say when the install check
runs, say what gateway discovery adds to the picker, and say that
the overrides check skips a shell variable that the settings file
also sets.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): cover invalid profiles and override levels

Say how to remove an invalid profile, which kong-harnesses can't read:
profile delete then skips logout and the agent CLI check, so clean up
each agent CLI and sign out after an import.

Say which agent CLIs doctor checks without --client and what to do
when the profile sets up none, that logout also removes the keys of
gateway MCP servers, and which shell credential fails or warns in the
overrides check.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): fix the delete, login, catalog and cleanup text

Say that profile delete can remove an invalid profile while an agent
CLI uses it or a sign-in remains, and that it then warns about the
sign-in.

Cover a token lifetime limit that login refuses, give the catalog
step for a Claude subscription profile, say that cleanup without
--client names the kept edits of each finished agent CLI also when
another one fails, and reword the sentences with a trailing "no".

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): name doctor for invalid and too-new profiles

Say that doctor and profile list also name an invalid profile, give
the step for a profile that needs a newer kong-harnesses, say that the
login check fails for a token lifetime limit that no token passes, and
give status with --profile, because status without a profile only
lists the profiles.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): link removal steps to remove-kong-harnesses

Move the developer removal steps out of the troubleshooting reference so
/kong-harnesses/remove-kong-harnesses/ owns them in one place. Replace the
Undo setup section with one sentence and a link, update the description and
related resources, and point profile/cleanup.md to the new removal guide.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): link exit codes and fleet troubleshooting

Replace the doctor exit-code table with a link to /kong-harnesses/errors/#exit-codes
so exit codes have one owner. Add a single link line and related-resource entry
for /kong-harnesses/troubleshooting/claude-code-fleet/ without adding a fleet
section.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): trim repeats and internal details in troubleshooting

Deduplicate repeated fix-line phrasing and duplicate client/issuer notes across
the doctor check table, and cut internal probe-transport and HTTP-mapping
details that readers do not need to act on doctor findings.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): restore doctor check rules and drop exit-0 repeat

Remove the repeated doctor exit-0 sentence owned by errors#exit-codes and keep
only the link to Exit codes.

Restore the dropped doctor check details in the Next step for each check table:

- gateway: note that other checks for an https:// gateway, such as catalog, can
  send their requests through the proxy, and tell readers to run profile
  activate on its own when the fix: line names only that step.
- route: state that doctor sends the JSON body {}, and that HTTP 401 or 403
  means the gateway refuses the credential only when doctor sends it.
- overrides: restore that the check skips shell variables also set in the
  settings file env block because the settings value takes precedence, and tell
  readers to do each step the fix: line names.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): clarify issuer, gateway, and route doctor checks

Update the Next step for each check table in troubleshooting.md to match
kong-harnesses doctor behavior:

- issuer: state that doctor skips the issuer check for a static-key profile.
- gateway: state that gateway tests only a direct connection without sending an
  HTTP request and warns on an https:// proxy, that route, catalog, gateway-mcp,
  and inference each send their own HTTP request (through the proxy when one
  applies to an https:// gateway), and that catalog and gateway-mcp skip their
  requests when gateway fails while route still attempts its request.
- route: state that when doctor cannot send a credential, route reports ok on an
  HTTP 401 or 403 response (or warns for a Claude subscription profile), and
  that ok confirms only that the route exists rather than credential acceptance.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): list the removal steps in the order to run them

The removal how-to signs out before profile cleanup, because cleanup
removes the plugin settings that the OpenCode and Hermes Agent sign-outs
need. Name the steps in that order.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): clarify doctor proxy rules and route check outcomes

Refine the gateway and route check descriptions in troubleshooting.md to
match kong-harnesses doctor behavior:

- gateway: note that route, catalog, gateway-mcp, and inference can each
  send an HTTP request (rather than always sending one), state that each
  request uses Claude Code's proxy rule for Claude Code and Go's standard
  proxy policy for other agent CLIs, and note that a gateway failure alone
  does not stop route.
- route: include a Claude subscription profile among the cases sent without
  a credential, state that route warns on HTTP 401 or 403 for a Claude
  subscription profile without confirming that the route exists, and limit
  the unauthenticated ok outcome to other profiles.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): keep OS-specific doctor fixes apart

The troubleshooting table mixed OS-specific cases into general fixes.
The NO_PROXY step told every reader to set both NO_PROXY and no_proxy,
which is one variable on Windows, and the Linux and Windows cases sat
inside sentences that apply on every OS.

Tell the reader to add the gateway host to each variable that the fix:
line names, because doctor names the spellings that the shell has. Start
the runtime directory and Secret Service fixes with "On Linux", because
only Linux reports them. Give the Windows case of a proxy variable set
twice in two letter cases its own sentence.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): make the troubleshooting page easier to follow

Split the run and report steps into short sections, link the
support page, and give each check plain steps. Rare cases that
doctor already explains on its fix: line now point to that line.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): add the provider and mcp checks to troubleshooting

Add rows for the provider and mcp checks, give each client, anthropic,
picker, gateway-mcp and inference case its own step, and keep the proxy
cases and the removal order that the last rewrite dropped.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): lead each troubleshooting step with the fix line

The fix: line already fits the setup of the reader, so each row now
starts from it and adds only the context it can't give. This fixes the
steps that sent managed-settings users to profile activate, and adds
the inference exit code, the MCP deny rule, and the empty credential
values that activation writes.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): match the troubleshooting steps to each fix line

Drop the proxy and model steps that could conflict with a fix: line,
say when a fix: line gives a choice, move the request proxy rules to
the route row, and cover the managed start refusal, the catalog 404,
and the step after profile cleanup.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): fix the start refusal levels in troubleshooting

Say that a managed start refusal fails the Claude Code network checks,
warns in other reports, applies only to runs that check Claude Code,
and exits with 2. Let the fix: line pick the step in the client,
picker and route rows, and copy proxy entries from that line.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): fix the catalog, model and proxy entry steps

Let the fix: line pick the credential step in the catalog row, import
a pinned-model profile before asking the administrator, say that an
http:// gateway needs a loopback host, and keep the host-only form for
a managed NO_PROXY entry.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): split the proxy entry rules and fix the pinned model step

Give the host-name and IPv6 NO_PROXY rules their own lines, let the
fix: line pick the step after a pinned-model import, and list what the
picker check reports.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): split picker reports by discovery mode

Split the picker report list by discovery mode, run profile activate only
when the fix line names it, note the route warning for a test request
without a client input, tie the subscription catalog step to the fix
line, and name the MCP allowlist entry types.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): scope the OpenCode cleanup and MCP entries

Scope the OpenCode cleanup step to OpenCode, pick the MCP allowlist entry
type that the allowlist already uses, limit the route warning to refused or
missing routes, limit the subscription catalog step and the profile list
picker report to their cases, and give the allowManagedMcpServersOnly
value.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): split OpenCode cleanup and activation shells

Keep the OpenCode cleanup and activation shell conditions apart, ask for
both NO_PROXY spellings in managed settings, start the MCP steps from the
cause in the report, choose the MCP entry type from every applied
allowlist, and split the long route warning sentence.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): order the OpenCode steps and limit route warn

Number the OpenCode cleanup and activation steps with each shell condition
before its command, name every NO_PROXY spelling for managed settings,
limit the route warning to a refused credential or a missing route, and
say that the finding, not the fix line, names the unread OpenCode file.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): key the OpenCode steps to the cleanup fix

Start the scoped OpenCode steps from a fix line that says to run profile
cleanup, add NO_PROXY when the managed settings set none, send the reader
to the administrator only for a policy block that the report names, and
split the route warning sentence.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): keep other OpenCode fix steps

Keep the other steps on an OpenCode fix line next to the scoped cleanup
and activation, and say that the MCP allowlists merge only without the
managed lock.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): apply the style guide to troubleshooting

Use bullet cases in the route, catalog, picker, model and inference rows,
lead the profile row with the fix line, move the proxy rules for request
checks to Run doctor, drop end periods from fragment list items, replace
verb-no phrasing, put the comma inside the quotes, name the skipped check,
and say how to check the only or default profile.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): correct the model, route and inference cases

Say that the model fix line names a kind of model, give the fail level for
a refused credential, cover a missing route in the route lead-in, keep the
inference steps on the fix line, note KONG_HARNESSES_PROFILE for the
default profile, and reorder the picker report list.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): keep the inference prompt case apart

Keep the send-a-prompt inference case apart from the doctor rerun, split
the route warning bullet, and name PROFILE_NAME for every command.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): hide the other agent CLIs in troubleshooting

The first release supports only Claude Code. Wrap the OpenCode, Hermes and
Codex text in Liquid comments, so the page does not render it. The text
comes back when these agent CLIs ship.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): trim the troubleshooting page

Keep only what a user needs to act on each check, because the fix: line in
the report gives the exact step. The hidden rows for other agent CLIs stay
in comments until these agent CLIs ship.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): remove links to unmerged pages

The errors and fleet troubleshooting pages are not on the release branch
yet, so the broken link check fails on links to them. Add the links back
when those pages merge.

Signed-off-by: Bart Smykla <bartek@smykla.com>

---------

Signed-off-by: Bart Smykla <bartek@smykla.com>
The first release ships Claude Code only. Two notes that are already
in the release branch still name Codex, OpenCode, Hermes, omp and pi.
They stay in Liquid comments until the December follow-up.

Signed-off-by: Bart Smykla <bartek@smykla.com>
* feat(kong-harnesses): keep a Claude Code fleet current [2.4]

Add a how-to for the upkeep of a fleet that fleet build set up: hold
every managed computer to a range of Claude Code versions, move the
fleet to a new model version without a failed session, and explain why
the settings come through MDM and not from the gateway.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* feat(kong-harnesses): add fleet cards to the landing page

Link the MDM rollout page and the fleet upkeep page from the
kong-harnesses landing page.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): fix fleet upkeep commands and model move

Show the update commands for file and MDM builds, keep the version
range in the model build, and keep the earlier model until every
session that used it has ended. Use the style-guide placeholders,
list the pages in the kong-harnesses index and name the refusals
that the build makes.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): pilot the model move and match Claude Code docs

Deploy a model move to one computer first, follow the Anthropic docs
on what the version range does, give the Anthropic API mode reason
from model discovery, and cover file builds with a base
managed-settings.json and Linux.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): one model move flow and a pilot per platform

Use --model in every provider mode, pilot each platform build on one
computer, keep the earlier model until resumed sessions move, and
cover the desktop app updates and partial gateway rates.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): fix the pilot, resume and desktop app steps

Let the pilot start a session on a model ID that the picker may not
select, cover sessions that resume on the earlier model, scope the
FAQ to what server-managed settings can deliver, and note the
Microsoft Store updates of the desktop app.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): pass the current policy and fix the pilot order

Pass the current managed-settings.json in file builds, name the
combined-policy refusals as the build checks them, choose the model
before the pilot prompt, scope the server-managed settings answer and
keep each paragraph on one line.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): use the fleet build flags that ship

Name --no-policy, --mcp-servers, --profile-models and
--claude-code-any-version, and say that a rebuild refuses to drop the
recorded models or version range. Drop the note about --model in the
Anthropic API mode, which now works.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): rewrite the fleet upkeep guide

Rewrite the Claude Code fleet upkeep how-to for clarity and scannability,
putting each sentence on its own line and keeping every safety warning,
scope limit, refusal rule, and revert flag.

Include the rebuild refusal and revert rules for --model, version bounds,
--host-settings merge, --wsl inherit, and allowlist MCP flags in a
reference table, split version-range enforcement by install method, and
separate the model rollout into single-action pilot and fleet steps.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): move fleet build options to the reference page

Replace the recorded-choice flag table, version-range checks,
version-bound behavior, and model override details with short inline
summaries and links to /kong-harnesses/fleet-build-options/.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): move the MDM settings FAQ to the rollout guide

Remove the MDM delivery FAQ from the fleet upkeep guide and link to
/kong-harnesses/roll-out-claude-code-through-mdm/ in the introduction.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): apply fleet upkeep accuracy and style fixes

Apply review fixes to the Claude Code fleet upkeep guide:

- Limit --no-policy rebuild fallback to file builds without
  managed-settings.json (including computers with only managed-settings.d/
  files); require --policy for MDM rebuilds.
- Replace hardcoded --profile work with PROFILE_NAME matching the build
  record, and normalize placeholder quoting.
- Require Claude Code 2.1.285 or later (tested through AI Gateway) so
  every managed computer enforces allowedProviders, and remove the
  misleading provider-modes link.
- Note that fleet build refuses omitting --mcp-servers for profiles with
  gateway MCP servers or recorded any/exclusive modes, and split MCP modes
  into a list.
- Add the availableModels and deniedModels check during model moves,
  extend piloting to every platform and policy group, merge duplicated
  File/MDM navtabs into one command per task with an MDM flag note, and
  remove repeated lead-ins and the off-topic removal link.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): link the fleet options and removal pages

Add the fleet build options reference and the fleet removal guide to the
related resources of the fleet upkeep guide, next to the MDM rollout guide.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): put per-OS fleet rebuild steps in OS tabs

The fleet upkeep guide gave macOS commands and told Linux and Windows
readers in prose which flags to change. Put the platform, executable,
delivery and MDM policy file in macOS, Linux and Windows tabs, and give
each rebuild command once per OS. Keep the profile, MCP mode and file
build policy rules outside the tabs, because they are the same on every
OS. Name the path that each OS installer writes.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): deploy the whole fleet build after a rebuild

The rebuild and rollout steps named only root and mdm, but a macOS build
also needs scripts/preinstall in its package. Point to the deploy steps for
each platform, and roll out the same package or files that passed the
pilot test.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): share the OS tab choice with the rollout page

The tabs on this page used their own groups, so the OS that a reader chose
on the rollout page did not carry over. Use the fleet-build group of that
page for each OS tab block here.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): deploy every pilot item in the rollout

An MDM build has a package and a separate MDM policy, so the rollout
step could leave out the policy. Deploy every item that passed the
pilot and link the platform deploy steps.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): make fleet rebuild commands complete

Every command now carries the kept flags of the earlier build, so a
copied command no longer hits a refusal. Each placeholder is defined
once before its first use, with the policy path per platform. The
commands are single lines, so they run in any shell on the build
computer.

Both tasks now test the build on one computer per platform and policy
group before the full deploy. The model test checks the managed alias
for each moved family instead of selecting the model by hand, and the
rollout follows the Claude Code resume rules.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): one fleet upkeep flow with safe flags

The version pin and the model move now share one build, test and deploy
flow. A CHANGE_FLAGS placeholder holds the version bounds, the new
model or both, and KEPT_FLAGS leaves out each flag that CHANGE_FLAGS
sets, because fleet build refuses a flag that appears twice.

The test assigns the new MDM policy only to the test computer, checks
the installed release before the deploy and resumes a saved session on
the earlier model. The new AI Model gets the same auth strategies and
ACLs, and the commands use line breaks again, as the style guide asks.

The index hunk goes, because the MDM rollout PR adds the same group
with this page in it.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): safe inputs for fleet upkeep tests

KEPT_FLAGS now lists each choice to copy from the earlier command, with
the exclusive --mcp-config always passed and no revert flags copied.
A failed test puts the earlier build back and rebuilds from the
original inputs, never from files on the test computer.

The test installs the new release on the test computer first, names
the saved session so it resumes directly, and checks it on the earlier
model before the deploy. The macOS package keeps its identifier with a
later version, a policy group now names delivery and managed-mcp.json,
and the landing card reads "Maintain a fleet".

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): close fleet upkeep rebuild gaps

The new AI Model gets the earlier model's format, access settings and
AI Policies, and NEW_MODEL_ID follows its routing rule. --model always
names the family, because fleet build otherwise guesses it from the
letters of the ID.

Placeholders give the record values and the --mcp-servers default, the
Earlier build line now leads to an action, and all three revert flags
are named. A failed test puts back the earlier package, policy and
Claude Code release, the test session gets a new name each time, and
the deploy keeps the new command for the next rebuild.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): tighten fleet upkeep checks

Retire the earlier AI Model only after every policy group has the new
build and the Events debugger shows no requests for it. Check that the
version range supports the new model, read MCP mode and kept models
from the record file, note that the profile is read as it is now, and
link the troubleshooting page from the rollback steps.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): clarify the fleet deploy lead-in

Name the action in the deploy lead-in and negate the verb in the AI
Model retirement step, per the style guide.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): split fleet upkeep how-tos (#8281)

* split how-tos

* review fixes

* fix(kong-harnesses): remove merge conflict markers

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): remove links to unmerged pages

Signed-off-by: Bart Smykla <bartek@smykla.com>

---------

Signed-off-by: Bart Smykla <bartek@smykla.com>
Co-authored-by: tomek-labuk <tomasz.labuk@konghq.com>
Add tools/kong-harnesses-changelog with generate.js, which parses the
release-please CHANGELOG.md into app/_changelogs/kong-harnesses.json,
and its node:test suite.

Write a release_dates map from the releases API in syncReleases, before
the ten-series cap, and regenerate the kong-harnesses data file.
Add the {% tool_changelog tool="<name>" %} tag, its drop, and the
tool_changelog.{md,html} components, plus the kong-harnesses changelog
page and the generated JSON.
Add the kong-harnesses changelog card, sitemap link, landing page card,
and index entry. Add the manual workflow that regenerates the JSON from
the private changelog and opens a pull request.
fabianrbz and others added 14 commits November 25, 2026 11:51
Replace the contents API read with a checkout of Kong/kong-harnesses,
so the changelog is not bound by the 1 MB endpoint limit. Match the
generate-aigw-changelog.yml pattern for the private kong-ee repo.
Add /kong-harnesses/changelog/ to COMPOUND_ID_URLS so each type heading
gets a version-prefixed id, matching the Gateway and AI Gateway
changelogs.
Fix five parser defects in the release-please changelog reader:

- Reset the version state on every level-2 heading, so bullets under an
  unrecognized heading no longer leak into the previous version.
- Skip a non-numeric version heading instead of emitting a key the drop
  cannot pass to Gem::Version, which broke the page build.
- Validate the --min-version floor, so a non-numeric value fails loudly
  instead of silently disabling the floor.
- Merge entries when a version heading repeats, instead of dropping the
  earlier entries.
- Accept the space-separated argument form, so `--input PATH` works the
  same as `--input=PATH`.

Add a test for each fix.
Split the multi-line expectations so the drop spec passes rubocop
without autocorrect offenses.
Drop the private-repo wording, and document running the script against a
local clone of kong-harnesses instead of a token-authenticated clone.
* feat(kong-harnesses): add profile file and error references [2.4]

The command pages list every command and flag, but nothing described the
fields of a profile, which releases read each schema version, or what an
exit code or an error message means.

Add a profile file page with each field, its limits and the first release
that reads each schema version, checked against the parser of the 0.17.1
release. Add an errors page with the exit codes and the fix for each
profile and client setup error. Link the sign-in and support pages for the
errors they already list. Link the support page from the doctor page, and
refresh the profile create help from the 0.17.1 binary.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): rename the exit code table key for Vale

Vale reads the snake_case table key as prose and asks to format it as code.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* ci(kong-harnesses): run the sync from main and verify the release

GitHub runs a scheduled workflow only from the default branch, and this
workflow was only on release/kong-harnesses, so the sync never ran. A
base job now picks release/kong-harnesses while it exists, else the
default branch, and both checkout and the pull request use it.

The versions job no longer installs the binary through the
setup-kong-harnesses action. It downloads the newest release, checks the
archive against SHA256SUMS.txt and against its build provenance with
gh attestation verify, and checks that the tag is on main, as
install-release.sh in kong-harnesses does. The release download and the
pull request use separate GitHub App tokens.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): correct and complete the profile and error pages

The profile file page said that gateway_ca_bundle trusts the gateway
certificate, and it mixed 0.18.0 settings into the 0.17.1 rows. It now
says which release or schema version writes each setting, lists the
choice pairs that import refuses, and gives the limits of each field:
reserved names, printable text, route names, model metadata, pricing,
telemetry, request shape, attribution headers and MCP servers. A new
section lists the security identity fields and what a change to them
needs.

The errors page now covers import failures, a busy profile, a security
identity change in use, managed and machine-wide profiles, login
--replace, MCP keys, partial logout and cleanup, the pi saved key, two
ownership documents and client detection. The exit code rows for 3 and
4 now cover a resumed renewal and a partial activation.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): cover the remaining selected profile errors

The errors page now covers a profile that needs a newer release, with
the update fix for both the old and the new message, the generic
missing, invalid, or unsupported message from token, credential, doctor
and the MCP credential helper, and a machine-wide profile that another
account can change.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* ci(kong-harnesses): harden the sync base branch and release checks

The run steps had no pipefail, and the base job took any ls-remote failure
for a missing branch, so a network error could send the sync to the
wrong branch. The steps now run in bash with pipefail, fall back only
when ls-remote reports a missing branch, and stop on an empty branch or
tag. The versions job refuses a branch without the sync scripts, and
each base branch gets its own pull request branch.

The release data read only the first page of releases and took any
stable tag, so it could name another release than the binary whose help
the job extracts. It now reads every page and takes only vX.Y.Z tags,
and the job fails when the data names another latest release.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): document activation and import rules in full

The profile page now says what activation does for each client and
field it can't use, that it puts back a setting it replaced, and that a
version 18 profile writes the nonessential traffic switch blank for any
auto_updates value. It also gives the scope, redirect, pricing and
header rules, the file encodings, the release an http gateway needs,
and the identity change from version 11 to 12.

The errors page now gives the doctor exit code across clients, treats
exit 4 as a partial result, quotes the HTTPS import message, and adds
the encoding, OIDC discovery, OIDC metadata and MCP key store errors.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* ci(kong-harnesses): pin the sync actions to the versions on main

The main branch runs harden-runner v2.23.0 and create-pull-request v8.1.3
in every workflow, so the sync uses the same builds on both branches.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* ci(kong-harnesses): name the sync branch after the full base branch

The head branch replaced each / of the base branch with -, so
release/kong-harnesses and release-kong-harnesses shared one sync branch
and one pull request. The head branch is now
sync-kong-harnesses-releases/<base branch>, which is unique for each base.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): document plain HTTP gateways and profile selection

The table of sign-in fields had an unescaped quote and backslash, which
the table parser refuses, so the page did not build.

The profile page now says which clients refuse an http:// gateway, how
activation keeps such requests off proxies, and that fleet build refuses
one. It gives the URL limits, the optional version 7 models, and that a
key profile refuses public_client_evidence.

The errors page lists the profile selection errors of every command,
the plain HTTP gateway errors and every encoding name, and tells people
to save a UTF-8 copy in an editor. Errors that only login and logout
print move to the sign-in page, which this page links.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* ci(kong-harnesses): match the base branch exactly and move the sync prefix

git ls-remote reads its argument as a pattern, so a requested base such as
release/* passed the branch test. The base job now refuses a name that
git check-ref-format --branch refuses, and needs the exact ref in the
listing.

A branch named sync-kong-harnesses-releases, which the old workflow used,
would block sync-kong-harnesses-releases/<base>. The head branch is now
sync-kong-harnesses/releases/<base>, a name that no workflow used.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): correct anchors, proxy limits and split refusals

The site slugs "can't" as "can-t", so the links to the access token table
pointed nowhere. The plain HTTP section now gives the full NO_PROXY fix,
says that project settings win over the values that activation writes,
and that activation changes nothing when a client check fails.

The errors page splits the managed settings refusals of import and delete,
adds the status error for a profile without a supported client, names
status for "did not finish for", and uses --dry-run. The profile page
gives the MCP OAuth rules, the release where profile create started to
write the newest version, and the name Hermes Agent.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): correct the references and queue the sync runs

The errors page now gives the fix for each encoding, names every command
that prints the profile selection and lookup messages, adds the missing
profile create, import and delete messages and the fleet build refusals,
and says that only a failed check leaves every client unchanged. The
profile page gives the 365 second token minimum, the artifact rule for
version 18 and the jq form of profile get.

The sync job queues runs for one base branch, and the install step picks
the release from every page of releases, as fetch-versions.js does. The
GH_TOKEN option of the release scripts is now named tokenRequired.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): add setup, fleet and retry errors, fail empty sync

The errors page now covers the setup and fleet build errors, the
--client refusal of profile activate and setup, and the import over an
invalid profile. The invalid profile entry names profile delete first,
and the no-client entry uses the new text and asks the administrator
first. Messages that only ask for a retry share one table by what to
check.

The profile file reference lists the authorization_endpoint query
parameters that create and import refuse, the subscription artifact
pair, what artifact writes from version 14, nested extra_body keys and
the Hermes sign-in rule. It says that a stored profile with a 360
lifetime still reads, links the sign-in step for each kind of profile,
and limits the no-write claim of activation to the settings check.

The release sync failed silently when no vX.Y.Z release was left. It
now throws, so fetch-versions.js exits 1 instead of keeping the old
data beside new help.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* ci(kong-harnesses): describe what the release checks guard against

The comments on the checksum and provenance checks and on the release
selection now name the case that each check stops: a replaced archive
with a matching checksum line, and an older release marked as the
latest one. They match the workflow on main.

The GH_TOKEN hint of the release scripts and the README now only ask
for a token.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): spell pre-releases as the other docs pages do

Vale flagged "prereleases" in the versions README. The docs pages write
"pre-release" and "pre-releases", for example app/operator/support-policy.md,
so the README follows them. The workflow comment keeps its text, so it
stays the same as on main.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): describe the sync tokens by the step that uses them

The versions README now says that the job reads the releases with the
Kong docs GitHub App token and opens the pull request with a second
token, without saying what either token can reach.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): compare release versions as whole numbers

compareVersions read each part of a version as a Number, which loses
digits above 2^53, so it could pick another latest release than sort -V
in the workflow. It now compares each part as a BigInt, and a test
checks 2^53 + 1 against 2^53 in both orders.

The versions README now says that without GH_TOKEN the script sends the
request with no token, and asks for GH_TOKEN only when the request
fails.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): move profile file encoding to profile-file

Document the profile file encoding rules and fixes in one section on
app/kong-harnesses/profile-file.md, verified against internal/profile/encoding.go
and encodingFix in internal/cli/run.go, and update the intro summary to name
UTF-8 with or without a byte-order mark and UTF-16LE or UTF-16BE with a
byte-order mark.

Replace the encoding list on app/kong-harnesses/errors.md with a link to
/kong-harnesses/profile-file/#profile-file-encoding.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): trim errors page and own exit codes

Consolidate all exit code rules, including kong-harnesses doctor exit codes
and precedence, under #exit-codes so it is the single owner.

Merge the small H3 groups for managed-settings refusals, invalid installed
profiles, and profile delete sign-in and inspection refusals (49 H3 to 44 H3)
without dropping any causes or fixes.

Update sign-in error links to /kong-harnesses/sign-in/errors/ with the same
H2 anchors, and point the fleet build flags link to
/kong-harnesses/fleet-build-options/.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): link NO_PROXY steps from profile-file

Trim the NO_PROXY configuration steps under Plain HTTP gateways in
app/kong-harnesses/profile-file.md to a concise summary and link to the
gateway check in /kong-harnesses/troubleshooting/#next-step-for-each-check.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): add Claude Code choice rules to profile-file

Add the Claude Code choice rules that claude-code-outside-traffic now links to
under #claude-code-choices:
- note that DISABLE_BUG_COMMAND is the earlier name of DISABLE_FEEDBACK_COMMAND
  and turns off /bug, /feedback, /share, and feedback that Claude drafts
- note that version 18 also refuses setting only one of bug_command and
  feedback_command, and that other omitted choices never cause a conflict
- clarify what happens for an installed pre-version-18 subscription profile
  with artifact: true and auto_updates: false
- document what auto_updates: false turns off while
  CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC is blank, and launch environment
  precedence in the Claude Desktop app and self-hosted environment runners

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): clarify doctor exit codes in errors

Clarify the kong-harnesses doctor exit codes under #exit-codes:
- note that refresh-pending reports ok and exits with 0 instead of 3
- note that exit 1 covers non-temporary failures such as a missing route or a
  refused sign-in
- note that the kong-harnesses install check for exit 2 applies on Windows

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): fix review findings in profile-file reference

Address review findings on the profile file reference without dropping facts:

- Restore the managed settings proxy refusal for plain HTTP gateways.
- Clarify that -Encoding BigEndianUnicode follows Get-Content for UTF-16BE.
- Remove the duplicate encoding list from the intro and note that the
  65,536-byte limit applies to the file as saved.
- Name both profile create and profile import in Security identity, and add
  the visible ASCII constraint for audience.
- Document eligible Anthropic API advisor choices for schema 18 blank
  CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC handling and pre-18 warnings.
- Clarify FORCE_AUTOUPDATE_PLUGINS=1, the fast mode gateway-key check
  conditions, and developer overrides when auto_updates is true.
- Trim prose under the overload threshold, remove the Example H2 (8 H2s),
  and format one sentence per line using folded YAML scalars in tables.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): fix review findings in errors reference

Address review findings on the errors and exit codes reference:

- Broaden exit code 1 to operational failures, including non-temporary
  endpoint failures reported by doctor.
- Clarify that refresh-pending passes the doctor login check and exits 0
  only when no other check fails.
- Note that doctor exit code 2 includes a login token lifetime ceiling
  finding, and name both profile create and profile import for security
  identity refusals.
- Consolidate repeated invalid profile name and profile delete entries,
  remove positional wording, and format one sentence per line.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): document setup without a profile file

Add the interactive setup path without a profile file or HTTPS URL,
including the command, required gateway URL and model ID, and the static
key choice at the Sign-in prompt.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): clarify profile-file rules and wording

Restore the pre-schema-14 choice defaults for profiles before version
14, state which clients work with an http:// gateway and which require
https://, and limit the plain-HTTP proxy refusal to proxy variables in
the command environment.

Split the multi-feature switch explanation into one sentence per switch,
broaden the advisor feature-flag wording, drop the repeated advisor
eligibility sentence and the unsupported apiKeyHelper mention, and
restore the clearer prose in the intro, security identity, auto mode,
and attribution sections.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): clarify doctor exit codes and profile errors

Describe how doctor selects its exit code from the first failed check in
report order and the highest severity across reports.

Restore the "profile name after --profile is invalid" heading text and
combine the two profile delete sign-in entries that share the same
logout and delete steps.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): clarify setup resume and gateway key behavior

Limit the safe rerun and resume description to file and HTTPS URL
sources, and note that running setup without a source starts profile
creation again.

State that setup asks for the gateway key during profile creation only
when the terminal can hide input, and reuses it for sign-in only when
entered and accepted by the gateway.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): clarify plain-HTTP and Claude Code choice rules

Replace the repeated plain-HTTP client list in the gateway_origin row
with a link to Plain HTTP gateways, keep the 0.17.1 requirement, and
align client list punctuation.

State in Plain HTTP gateways that Claude Code, omp, and pi work with an
http:// gateway when the profile configures them, they are installed or
named with --client, and the applicable checks pass.

Clarify that kong-harnesses treats pre-schema-14 choices from
anthropic_telemetry to webfetch_preflight as false when reading a
profile, limit the advisor feature-flag note to anthropic-messages, and
note that activation writes CLAUDE_CODE_DISABLE_ADVISOR_TOOL=1 for an
older stored profile when a provider mode, experimental_betas: false, or
blocked feature flags keep the advisor off.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): clarify setup rerun, resume, and key rules

Clarify on both setup and errors pages that only an unchanged file or
HTTPS URL source skips profile import, while a usable sign-in and a
configured client stay as they are on every rerun, and running setup
without a source starts profile creation from the first question.

Tell readers to run the command that the error message names to resume
past finished steps, note the persistent client refusal exception with a
link to the setup error entry, and scope the interactive gateway key
prompt and reuse rules to the administrator-key sign-in choice when
sign-in needs a key.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): document setup --profile and resume command

Document the setup --profile (-p) flag in setup.md and refresh the
generated setup help include to match the updated CLI help output.

Update setup.md and errors.md so the resume instructions reflect that
after profile create saves a profile, setup names setup --profile with
the run's flags instead of asking the profile creation questions again.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): note preserved edits when restoring choices

Clarify under Claude Code choices in profile-file.md that profile
activate restores each setting it stops controlling to its earlier value
unless the setting changed after activation wrote it, and keeps the
current value when it did change.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): document unreadable profile messages and invalid delete

Own the five unreadable-profile diagnostics and fixes under Profile errors in
errors.md: newer schema version, invalid or untrusted machine-wide profile,
machine-wide filename that is not a profile name, user filename that is not a
profile name, and invalid user profile.

Update the invalid-profile delete behavior so it states that profile delete
removes saved gateway MCP server keys listed in the invalid file, names any
remaining password store item when a key stays or the server list cannot be
read, and still warns when a saved sign-in may remain.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): name the system password store in generic errors

Two entries on the errors page that apply on every OS named only the macOS
Keychain. Use "system password store", the term that the sign-in errors
page and the CLI messages use, so the text does not mix one OS into a
general fix.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* ci(kong-harnesses): read the releases repository from a variable

The sync workflow, the release data script, its tests and the README
named the repository that publishes the kong-harnesses releases. That
repository is internal, so this public repository must not name it.

The workflow now reads the <owner>/<name> only from the repository
variable KONG_HARNESSES_RELEASES_REPO, and fails early with an error that
names the variable when it is empty or malformed. The release token, the
install step and fetch-versions.js take the name from it. The provenance
check keeps the repository and signer workflow identity. The tests use
the fixture name example/tool, and the README names the variable and says
that an administrator must set it.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): correct setup reruns, unreadable output and key rules

A setup rerun keeps the settings of a configured client only while they
still match the profile, so other model aliases update them. The
"Unreadable" recovery step is text output only, JSON and YAML report the
state unreadable, and profile list exits with 1 when it also can't read
the default. Import, create and setup send an invalid or untrusted
machine-wide profile to the reinstall entry and a valid one to sign-in.
An invalid delete removes a key for each name in mcp_servers. An omitted
Claude Code choice can restore an earlier value.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* ci(kong-harnesses): read the releases repository from a secret

GitHub masks a secret in the logs but not a variable, and this repository
is public. The sync job now reads the repository name from the secret
KONG_HARNESSES_RELEASES_REPO in every step, and masks the name on its own
too, because the token step logs its owner and repositories inputs. No
error message prints the value.

The workflow and syncReleases share one owner/name rule that also refuses
. and .. as the name, with tests for the malformed forms. The READMEs
drop the internal repository name and tell the reader to export the
variables first, because Bash reads <owner>/<name> as redirections.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): scope unreadable profile steps to text output

The errors page now says that status prints one message on standard
error, so with JSON or YAML output another unreadable profile has no
recovery step, and that the unreadable report carries its step only in
text output. profile delete names PROFILE_NAME.mcp-key.* also when the
mcp_servers list is absent or null. The setup help include says that a
rerun keeps the settings of an agent CLI only when they still match the
profile.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* ci(kong-harnesses): mask the owner of the releases repository

The token step logs its owner input, and GitHub masks only the whole
secret, so mask the owner on its own as well as the name. The README now
says that the job logs show *** in their place.

Put each sentence of the sync READMEs on its own line.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): fix unreadable profile steps and help text

The status message names only the first problem that exits with 2, and
--profile refuses a bad profile file name before it can show the fix. Tell
the reader to run status in text output without a profile selector to see
each recovery step.

Say the absent or null mcp_servers list case once, and copy the current
help text of setup and profile create, which now accepts a token lifetime
from 365 seconds.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* ci(kong-harnesses): stop on a releases secret in another letter case

gh attestation verify matches the repository without regard to letter case,
then prints the build and signer repository in the case of the repository.
GitHub masks only the exact text of the secret, so a value in another case
leaves the name in the log. Right after the releases token step, compare
the full name of the repository with the secret, and stop with an error
that prints neither value when they differ. The README says so.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* ci(kong-harnesses): put each kongctl README sentence on its own line

Signed-off-by: Bart Smykla <bartek@smykla.com>

* ci(kong-harnesses): keep gh api errors out of the letter case check

On an access error, the letter case check printed the error text of
gh api, which can name the releases repository in its own letter case.
The masks of the secret miss a name in another case, so that text could
reach the log. The check now drops that text and keeps only the generic
error, and it still stops the job.

The error of a secret in another letter case now says that the secret
must be the exact <owner>/<name> of the repository, in its letter case,
and that the old name of a renamed or moved repository fails too. The
comment and the README say the same.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* ci(kong-harnesses): put the last kongctl README sentences on own lines

The last line of the kongctl versions README still held two sentences.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): correct and simplify the profile file page

Check the page against the CLI on main. The 365 floor for the token
lifetime and the stricter choice rules came after 0.18.0, so the notes
now say "up to 0.18.0". The route artifact field matters again for a
subscription profile, the gateway origin and identity provider URLs
need a lowercase host, and model IDs and MCP paths have the limits
that the CLI checks.

Split the Claude Code choices into a table of refused combinations and
a section on nonessential traffic, put the encoding fixes in OS tabs,
add when to use each sign-in kind, and drop the release history notes
that a reader of the current release doesn't need.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): add missing errors and split dense sections

Add the messages that the CLI on main prints and the errors page left
out: the open client check after login, the managed settings start
refusal, a settings file that Claude Code ignores, the advisor and
schema 18 choice refusals, the discovery check for a public client,
the Linux runtime directory, the setup partial result, and a fleet
policy that holds an earlier build.

Give unreadable profiles and the doctor exit codes their own sections,
keep the setup rerun and resume rules only on the setup page, and
update the doctor help with the OpenCode settings and Windows install
checks.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): fix round 2 review findings

Add the setup, profile create and setup refusal messages that the
errors page missed, and correct what doctor, profile delete, the start
refusal and the fleet removal tell the reader to do. Fix the size limit
cause of an import refusal, the redirect_uri port and path rules, the
token lifetime that the identity provider must issue, and which
features the nonessential traffic switch covers. Split dense sentences,
put the macOS and Linux tab first, and move the encoding section to the
end of the profile file page.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): correct tool search and left-out choices

A left-out tool_search on a route without tool_reference gets
ENABLE_TOOL_SEARCH=false, and Claude Code defers MCP tools behind a
gateway otherwise, so the old text said the opposite. List the left-out
choices that activation still turns off, give the encoding steps one
tab per OS, and add the generic settings message. Describe the doctor
findings that belong to no client, and name the plugin clients on the
setup page.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): add client refusals and fix tool search text

Add the route check and npm registry refusals, the shared ownership
document refusal, the client folder variable error, and the prefix that
profile activate adds when it changed nothing. experimental_betas false
writes ENABLE_TOOL_SEARCH=false only where activation writes that key,
and the auto mode check pair is in the table of refused choices. Fix a
list that took in the next paragraph, and split long sentences.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): match the npm registry message for one client

With --client, the npm registry refusal has no "is not configured"
prefix, so the entry now quotes the part that every run prints. Name
profile create where it prints the same replacement errors as import,
say manually, call mcp_servers an object, and say "writes blank" for a
choice that activation writes as an empty value.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): name login --diagnostics and the 360 to 364 range

Plain login never prints "selected profile is missing, invalid, or
unsupported", only login --diagnostics does. Releases up to 0.18.0
accepted every lifetime ceiling from 360, so a stored profile with 360
to 364 still reads. Say what advisor true writes, put exit code 4 in
code, and split a long sentence.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): cover prompts and usage errors

Name the two messages for a prompt without a terminal and give the
flag that avoids each prompt. Add the profile create --client refusal
and the doctor --inference refusal, with the fix for each reason.

Drop login --diagnostics from the commands that read every client
block, name its Reason line, and name KWallet next to GNOME Keyring.
Note that some sign_in values and mcp_servers need a newer release
than schema 12, split long sentences and use serial commas in lists.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): cover login without a terminal

Add login to the terminal entry and point CI jobs at an environment_key
profile. Say that a proxy fails the doctor gateway check for an http://
gateway, and only skips the check for an https:// gateway or the
identity provider.

Quote the profile list message for an unreadable default and its fix,
name environment-key next to static-key for OpenCode and Hermes Agent,
split long sentences, open entries without relying on the heading, and
replace verbs that give software a will of its own.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): state profile list and doctor exits

Say that profile list exits with 1 for an unreadable default marker
even when every profile is valid, and that doctor takes the most
severe code across the top-level findings and the client reports.
Say when profile delete leaves a gateway MCP server key.

Put placeholders in code and in capitals, name the variables in the
ANTHROPIC_AUTH_TOKEN entry, and use "select" for the setup choice.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): fix the bug and feedback trigger

The one-switch message comes only from a schema 18 profile that sets
one of bug_command and feedback_command. Different values fail every
schema version with the general profile import message, so link it.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): name Claude Code in the settings entry

Use the product name that the CLI message prints, and split the saved
sign-in bullet of profile delete into two sentences.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): hide agent CLIs other than Claude Code

The first release documents only Claude Code. Wrap the content about
Codex, OpenCode, Hermes Agent, omp and pi in Liquid comments, so it
comes back as is in the follow-up release.

Hide the other client blocks, routes, schema notes, plain HTTP rules
and the error entries that only those clients print, and reword the
lists and sentences around them for Claude Code alone.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* small fixes

* restructure content

---------

Signed-off-by: Bart Smykla <bartek@smykla.com>
Co-authored-by: Angel <angel.guarisma@konghq.com>
@Guaris Guaris self-assigned this Nov 25, 2026
bartsmykla and others added 5 commits November 26, 2026 09:54
* feat(ai-gateway): list the Claude Code provider modes Kong tests [2.4]

Add the provider modes in which Kong tests each new Claude Code release
through AI Gateway to the AI CLIs page, with the switch and the gateway URL
setting of each mode. The modes come from a data file, so a release job can
update them.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(ai-gateway): rename the table key that Vale reads as code [2.4]

Vale flags the key base_url in the provider modes include as code. Rename
it to url in the include and the data file.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): make the provider modes text match what Kong tests [2.4]

Say that the tests run on new latest-channel releases through the current
AI Gateway release, that the forwarded check covers request body fields
too, and that the Bedrock and Vertex AI modes are not tested. Rename the
date key to match the text that shows it.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): state exactly what the provider mode tests check [2.4]

The release job tests the newest latest-channel release each hour, so it
can skip a release and says nothing about the stable channel. Say that,
and name the forwarded headers and body fields the test compares. Give
the mode switches their value and nest the table rows under the section
heading in the Markdown export.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): say what the test model provider is [2.4]

The page did not define the stand-in model provider. Say that it is a mock
provider that Kong runs for the tests.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): drop the hand-kept date and state the compare rule [2.4]

No job writes the date in the provider modes data file yet, so it goes
stale. Remove it and the line that shows it. The forwarded check compares
the content of each value, so say that a new order, spacing or JSON
encoding passes.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): list every setting the provider mode tests use [2.4]

Add the cloud sign-in skip switch and the workspace ID to the table, as
the tested setup sets them. Say that the hourly job tests each new release
pair or test setup, that only the tests through AI Gateway leave out the
Bedrock and Vertex AI modes, and that the forwarded check compares values
before and after the gateway. Name the linked guide as the cookbook does.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): fix Vale and tighten the provider modes text [2.4]

Vale reads the table key skip_auth as code, so rename it to skip. Name
the linked how-to by its title, use one name for the gateway under test,
and drop the claim about joined header lines, which the test does not
cover.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): name what starts a test run and the token count test [2.4]

The job runs again only for a new Claude Code or AI Gateway release, a new
decK configuration or a new pi version, so name those. Say that the value
comparison covers inference requests and what the token count test checks,
and drop the advice to use your own workspace ID, which the test does not
use.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): split the run trigger sentence [2.4]

Split the long sentence about what starts a test run, say that a mode
sets the provider API that Claude Code calls, and say that AI Gateway
returns the provider's token count unchanged.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): say a new gateway image starts a test run [2.4]

The job keys on the digest of the latest AI Gateway image, so a new image
starts a run without a new release. Name the last column for the settings
that only some modes need, as the tests set other settings too.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* feat(ai-gateway): list Claude Code known issues [2.4] (#8218)

* feat(ai-gateway): list known issues with Claude Code releases [2.4]

Add a section to the AI CLIs page where Kong lists a Claude Code release
that fails in a provider mode, with what breaks and how to avoid it, and
say how to keep Claude Code on a release that works.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(ai-gateway): link kong-harnesses from the known issues section

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(ai-gateway): render the known issues heading as h3 and clarify updates

Move the heading to the row, because the structured text block always
renders an h2. Scope the promise to tested releases, keep an entry until
no supported release is older, and say who turns auto-updates on, how to
roll back, the stable channel and where DISABLE_AUTOUPDATER goes.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(ai-gateway): name the tested channel and provider modes

The compatibility check takes each new release from the latest channel and
runs it in the Anthropic API, Microsoft Foundry and Amazon Bedrock Mantle
modes only, so say that instead of all modes. Tell readers to roll back to a
release that worked in their mode and check it, and link the setup section
that shows the DISABLE_AUTOUPDATER example.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(ai-gateway): point known issues at the provider mode table

The provider mode section lists the channel and the modes that Kong tests,
so link to it instead of a second list that can drift. Put the known issues
after that section, so the link points up, and link kong-harnesses at its
first mention.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(ai-gateway): cover every profile and the channel in the update steps

A profile can keep auto-updates on in more ways than one flag, so tell
readers to check with claude doctor instead of listing them. Say that a
rollback holds only with auto-updates off, and name the autoUpdatesChannel
setting that Claude Code follows for auto-updates and claude update.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(ai-gateway): give the update steps for each kind of install

Homebrew ignores autoUpdatesChannel and claude update, and claude doctor
shows the auto-updates state only on native and npm installs, so give each
step per install and link Anthropic's pages for other package managers. Say
that Kong tests the newest latest-channel release it finds, that a profile
can also leave the setting out, that a rollback needs auto-updates off
first, and what to do when an npm or Homebrew claude stays first on PATH.
Use the plain text block that the row above uses.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(ai-gateway): guard the update, rollback and stable steps

Tell readers to check the list before they update or switch to stable,
since the newest latest or stable release can be one that fails. Say that
the stable switch can move to an older release and that minimumVersion
holds the current one, give the exact package manager opt-in value, and
find the claude that runs first with the Anthropic checks before removing
another install.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(ai-gateway): make each update and stable step checkable

Give the npm and WinGet update commands from the Claude Code setup docs,
check the result with claude --version, and stop on a failed install before
removing another one. Show where to read the stable release, keep readers off
claude install stable when they want to stay on their release, note that
/config clears minimumVersion, and give the npm and Homebrew cask switches.
Point the checks at this section, which has no list while it is empty.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(ai-gateway): check the release that runs and cover WinGet

A version mismatch after an update or a rollback can come from a failed
install or a custom launcher, so check the update result and run the native
build by its full path before removing another install, with the Windows
commands and path. Give npm and WinGet readers a move to the native build at
their release before the stable switch, note that claude install stable
saves the channel, and check releases for a known issue in the reader's
mode. Point readers whose profile keeps auto-updates on to their
administrator.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(ai-gateway): split the stable steps by install and fix PowerShell

Put the stable switch in one sub-step per install, with the npm and WinGet
move to the native build first, and keep users of the claude-code cask on
it. Give the Command Prompt and PowerShell forms of the full-path check, say
what to do with a custom launcher, link the latest release file, name the
steps that the text points to, and word the empty state as no confirmed
issue.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(ai-gateway): break up the long steps and scope the kept value

Split the auto-updates and rollback steps into sub-steps, note that the
stable cask can be older, and drop the intro sentence that repeated the row
above. Say that kong-harnesses keeps a hand-set DISABLE_AUTOUPDATER only for
a profile that keeps auto-updates on or leaves the setting out, since a
profile that turns them off writes 1. Check the release of the channel or
package manager in use before an update, send npm 12 users to Anthropic's
fix, and name the empty state sentence in the editor comment.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(ai-gateway): split the update step and fix the PATH check

Add the native build's folder to PATH when the shell can't find claude,
and remove another install only when it runs first. Split the update step
into check, update and verify, say that minimumVersion holds back a release,
give the npm and WinGet version checks and the package manager lag, and
name the stable update with auto-updates off. Say that a release missing
from the section can still have no test result, link profile create, use
one placeholder, and remove an entry when Kong stops supporting it.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(ai-gateway): keep a rollback from updating itself and finish the PATH check

claude install puts a native build in place that updates itself, so turn
auto-updates off first also on Homebrew and WinGet, and keep them off after
the npm or WinGet move. Add the native folder to PATH when it is missing,
go on only once claude --version shows the installed release, and limit
minimumVersion to native auto-updates and claude update. Follow Anthropic's
wording for package manager lag, give both cask names, scope the custom
launcher to macOS and Linux, and put the no-result note in its own
paragraph so the editor comment replaces a whole paragraph.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(ai-gateway): check the release before an update and after the move

Find the release that an update would install and skip it when this
section lists an issue for it. After the npm or WinGet move both installs
show the same release, so run the PATH checks before the native steps. Close
Claude Code before a WinGet upgrade, wait only when the package manager
lacks the release, and tie minimumVersion to the release that you get. Split
the native stable step, send Homebrew users with a native build that runs
first to the native steps, and say a release might not have a result yet.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): move Claude Code release known issues to a reference page

Move the Claude Code known issues list and version-management steps out of the
AI CLIs landing page into a dedicated reference page at
/ai-gateway/claude-code-known-issues/.

Leave a short two-sentence signpost and link on the AI CLIs landing page, and
register the new reference page in the AI Gateway documentation index.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): move maintainer note and clarify DISABLE_AUTOUPDATER

Move the maintainer instructions for updating Confirmed issues out of an HTML
comment in app/ai-gateway/claude-code-known-issues.md into
docs/claude-code-known-issues.md so they do not appear in rendered HTML or LLM
Markdown output.

Clarify that DISABLE_AUTOUPDATER=1 turns off automatic updates whether set in
Claude Code settings or exported in the shell, and that kong-harnesses leaves
both unchanged when a profile keeps auto-updates on or omits the setting.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): wrap provider modes and trim known-issues signpost

Wrap the Claude Code provider modes paragraphs in ai-clis.yaml to one sentence
per line.

Use plain Claude Code consistently in the known-issues signpost instead of
mixing it with a site variable, and drop the redundant sentence that listed
the sections of the linked page.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): clarify auto-update switches on profile activation

Limit the unchanged-setting statement to DISABLE_AUTOUPDATER when no earlier
activation wrote it, and explain that activating a profile that enables or
omits auto-updates restores an earlier DISABLE_AUTOUPDATER value (or removes
the key if it wasn't present before) when an earlier activation wrote it.

Note that CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC also turns off auto-updates
unless activation writes it blank for another enabled choice, link to the
Claude Code choices reference for the full rules, and advise running claude
doctor after activating a profile.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): say when activation keeps your DISABLE_AUTOUPDATER value

Activation restores an earlier DISABLE_AUTOUPDATER value only when the
settings file still has the value that activation wrote. A value that you
changed after that activation stays.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): give each OS one tab in the executable check

The executable check split one procedure into two tab blocks and gave
Windows two tabs, one per shell. Put the whole check in one tab block
with a macOS and Linux tab and a Windows tab, and keep both Windows
shell commands in the Windows tab.

Move the Linux package manager note from prose after the stable channel
tabs into its own tab, and link the Claude Code section that tells how
to switch the apt, dnf and apk repositories to stable.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): use Get-Command for the PowerShell PATH check

where.exe can list a claude file in the current folder that PowerShell
can't run by name. In the Windows tab, PowerShell users now run
Get-Command claude -All, and Command Prompt users keep where.exe claude.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): replace the latest apk line when switching to stable

The apk steps on the Claude Code setup page append the stable repository
line and keep a latest line, so apk still sees the latest channel. Tell
Alpine Linux users to replace the latest line with the stable line.
apt and dnf overwrite their repository file, so they need no change.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): match the full apk latest line

The sed pattern also matched a mirror line such as latest-other, and
a second run added the stable line again. Match the whole latest URL,
add the stable line only when it is missing, and say that apk keeps
the current release until the stable channel serves a newer one.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): extract Claude Code compatibility testing reference and apply review feedback

Move the Claude Code provider modes and compatibility testing details
from the AI CLIs landing page to a dedicated reference page at
app/ai-gateway/claude-code-compatibility.md, add it to the AI Gateway
index, and replace the inline sections on the AI CLIs landing page with
a two-card Claude Code release compatibility row.

Apply all review suggestions on app/ai-gateway/claude-code-known-issues.md,
update its provider modes link to the new compatibility reference page,
and split the Alpine Linux apk commands into one command per code block.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(ai-gateway): simplify Claude Code compatibility and known issues docs

Tighten and simplify the Claude Code compatibility testing, release known
issues, AI CLIs landing page card, and maintainer docs against all
developer.konghq.com style, prose, and page-shape rules:

- Add situation-based guidance at the top of claude-code-known-issues.md
  so readers immediately see which section fits their case.
- Clarify the kong-harnesses profile check (profile get), settings file
  recommendation, and concise activation summary; move Homebrew/WinGet
  guidance up front and claude doctor verification to the end.
- Remove contradictory claude install stable guidance, add a
  minimumVersion example, and remind readers to keep existing settings.
- Split all Alpine Linux apk steps into strictly one command per code
  block, promote Check which executable runs to H2, and fix the WinGet
  code block language tag.
- Remove internal CI triggers from claude-code-compatibility.md, clarify
  that test results cover only the latest AI Gateway image, and use active
  voice on the AI CLIs card description.
- Improve docs/claude-code-known-issues.md with a consistent open/fixed
  entry template, restore instructions, and a public removal criterion.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix codefences

---------

Signed-off-by: Bart Smykla <bartek@smykla.com>
Co-authored-by: tomek-labuk <tomasz.labuk@konghq.com>

* Fixes

* appease vale

---------

Signed-off-by: Bart Smykla <bartek@smykla.com>
Co-authored-by: tomek-labuk <tomasz.labuk@konghq.com>
* feat(kong-harnesses): register the sign-in client in the identity provider [2.4]

Add a reference page with the client settings that an OIDC identity
provider needs for kong-harnesses: the public client, the grant types,
PKCE, the exact callback, offline access, the gateway audience, the
discovery checks and the access token lifetime. Link it from the Okta
prereq.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): correct the identity provider facts from review

Match the page to the CLI rules: the callback form, the scopes that a
custom list replaces, the discovery fields that are always checked, the
supported ID token algorithms and the expires_in lifetime range.

Separate the audience that the profile requests from the aud value that
config.audience_required checks, add the Keycloak mapper and the Auth0
offline access setting, link logout for revocation, and drop the Hermes
note. Add the page to the kong-harnesses index.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): name the gateway API scope for the none parameter

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): correct callback, Entra ID and Keycloak setup

A sign-in listens on the callback port, so two profiles that share a
port can't sign in at the same time, even with different paths. Add the
port and trailing slash rules, and the Entra ID loopback rules.

Add the Entra ID tenant issuer, audience and API permission, and the
Keycloak default client scope with --audience-parameter none. Say that
login repeats the discovery checks, that the client must sign ID tokens
with an accepted algorithm, and how to pick the token lifetime limit.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): add per-provider audience setup and scope rules

Give the Auth0, Keycloak, Entra ID and PingFederate settings that put the
gateway audience in the access token, at sign-in and at renewal. Use the
dedicated Keycloak client scope, because a token response with an extra
scope fails the sign-in, and state that scope rule.

Mark the default callback, the query response mode, the consent prompt,
the listener addresses and the discovery recheck at sign-in. Fix the
audience_required list, the Entra ID token versions, the lifetime limit
above 24 hours and the profile create placeholders.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): tighten token, scope and provider rules

Add the Bearer token type row, the RSA and ECDSA ID token algorithms and
the scope rule at renewal. Renewal needs more than 6 minutes left after
it saves the new token, so ask for a lifetime above 6 minutes.

Correct the Entra ID v1.0 aud, the PingFederate access token manager,
the Auth0 API identifier and the Keycloak offline_access setup. Note the
consent prompt that providers can skip, the localhost and 127.0.0.1 port
conflict with its error text, and a PKCE check when discovery omits it.
Link the login, setup, profile get and doctor pages.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): correct renewal scopes, consent and audience steps

Renewal checks the scopes against the last accepted list, and the CLI
sends the audience only in the browser authorization request. Auth0 asks
for confirmation at each sign-in with a loopback callback.

Order the public-client evidence steps around a test client, merge the
discovery rules into one list, show the Entra ID manifest entry for a
127.0.0.1 callback, put the port conflict message in an output block
and name the other providers that the page covers.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): ask for more than 6 minutes in the Okta prereq

Renewal needs more than 6 minutes left on the new access token, so an
Okta rule with a lifetime of exactly 6 minutes fails. Use the same
range as the identity provider reference page.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): use the Graph manifest and a stable audience link

Use publicClient.redirectUris from the Microsoft Graph app manifest for a
127.0.0.1 callback, and link config.audience_required to the Authorization
section of the OpenID Connect page, whose anchor renders without scripts.

Add the revocation_endpoint https check, the PingFederate signing and
at+jwt settings, the Entra ID audience_required value, the renewal margin
and setup next to login. Soften the Auth0 prompt, clarify the scope list
at renewal and cut repeats to keep the page under the overload limit.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): add the iss check and the loopback port rule

Add the authorization_response_iss_parameter_supported check, the fixed
profile port next to a provider that accepts any loopback port, and the
Entra ID consent screen at each sign-in. Match the Auth0 prompt to the
Allow Skipping User Consent setting of the API.

Say that only Okta is tested, word the callback path rule as the CLI
checks it, and cut repeats to keep the page under the overload limit.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): add Auth0 rotation, endpoint and iss rules

Add Auth0 refresh token rotation with reuse detection, the endpoint rule
without user information or a fragment, and the callback without iss when
discovery doesn't require it. Make the gateway refusal depend on
config.audience_required, and keep existing Entra ID redirect URIs.

Describe the callback-in-use error in place of a quoted internal message,
drop the Entra ID consent claim that Microsoft sources don't settle, give
the full Keycloak dedicated scope reason and link the command pages.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): add the audience claim default and URL rules

Say that config.audience_claim defaults to aud, refuse an empty or
repeated scope value, and give the canonical https endpoint rule without
port 443 or dot segments. Add user information to the callback rule.

Name the Auth0 Refresh Token Rotation setting, which also detects reuse,
and the Keycloak Refresh Token Max Reuse value. Cut repeats to keep the
page under the overload limit.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* fix(kong-harnesses): match the page to the fixed CLI sign-in rules

The CLI now uses one lifetime rule at sign-in and renewal: at least 365
seconds, and a flag range from 365 to 86400. It accepts a percent-encoded
scope or the last path segment of a requested URI scope, checks iss when
the callback has one, and reports a reserved Windows port as in use.

Give the Keycloak shared scope option with Include in token scope off,
and cut repeats to keep the page under the overload limit.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): move provider settings to their own page

The identity provider page mixed the settings that every provider needs
with the settings of Auth0, Keycloak, Microsoft Entra ID and
PingFederate, and it grew past the size of one reference page.

Move the provider settings to a new page at
/kong-harnesses/identity-provider/providers/, with one section per
provider, and link to it from the main page and the index.

Also describe the canonical endpoint URL and its percent encoding, the
scope forms that the token response can use, the reserved parameters
of the authorization endpoint, the saved endpoint check, the Keycloak
offline scope and rotation settings, the Entra ID token version, and
the whole minute lifetime for consoles that set minutes.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): correct discovery, scope and provider details

Name the discovery fields that must be nonempty arrays, and say that
the issuer is a canonical https URL without a query.

Say that each scope in a token response must match a different
requested scope, and that renewal compares with the requested scopes
that the last accepted response matched.

On the provider page, add the Auth0 issuer, the Auth0 rotation toggle
and overlap period, the PingFederate token lifetime, and the Entra ID
token version wording. Make Auth0 rotation optional, because rotating
and persistent refresh tokens both work. Remove text that repeats the
main page, and clarify which port can differ for a loopback callback.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): add public client and PKCE provider settings

Each provider section now says how to register a public client and
which PKCE method it uses. Keycloak, like Entra ID, leaves out `none`
from its discovery document by default, so both sections point to the
public client evidence test. Add the Keycloak issuer.

On the main page, move the callback `iss` rules to the Callback
section, because only sign-in checks them, and say that a developer has
2 minutes to finish the sign-in. Say that a renewal without `scope`
keeps the last list, and that developers sign in again after the public
client evidence flag changes. Link the provider page in the related
resources.

Set the Okta lifetime check to 7 to 60 minutes, because Okta sets the
lifetime in whole minutes.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): match the pages to the profile checks of the CLI

`profile create` now refuses an authorization endpoint whose query sets
a sign-in parameter, so list that rule with the discovery checks. Spell
out the canonical URL limits: 2,048 bytes of visible ASCII without a
backslash, and no port with a leading zero. Give the order in which a
returned scope matches a requested scope.

The CLI has no command that edits a profile, so say to create the
production profile with the evidence flag, and that developers who
already signed in run login again.

On the provider page, add the PingFederate issuer and the step for a
discovery template without `none`, and use the Default Access Token
Manager alone. Use the issuer from the Keycloak discovery document,
with a context path. Cite the Microsoft pages for the loopback rules and
the manifest, and point the Entra ID scope text to the main page.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): list every identity provider check on one page

Each review round found more refusals that the pages left out. Add a
reference page that lists every check that kong-harnesses makes on the
profile values, the URLs, the HTTP responses, the discovery document,
the signing keys, the token responses and the ID token, from one pass
over the validators. The main page links to it instead of repeating the
URL rules.

On the main page, put the re-login rule in one place with every value
that the security identity includes, write the discovery rules as full
sentences, and say which claim can differ from the audience.

On the provider page, add the PingFederate OpenID Connect policy, the
Auth0 lifetime range, the Auth0 MFA condition of the loopback prompt,
the Entra ID rule of one localhost callback per path, and the older
manifest attribute name. Move the S256 rule to the main page.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): move identity provider checks to one page

Move the discovery document rules and the callback rules from the main
page to the checks page, and link to them. Keep each scope and audience
rule on the checks page only.

List the checks that an administrator can hit through configuration:
the callback request, the gateway origin and discovery URL, a numeric
host, the content encoding, the TLS connection before a renewal, the
token and scope lengths, the EC curve, the kid header and the exp and
iat format. Cover the pure encoding rules in one sentence with links to
the RFCs.

Add the scope list to the values that make developers sign in again.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): split the signing key checks and add sources

Split the signing key checks into the keys that kong-harnesses skips and
the keys that make the sign-in fail, as the CLI does. Say how a renewal
reads a response with a status other than 2xx. Add the host rules for
percent encoding and the canonical IPv4 form.

Add the Entra ID steps that give the client the delegated permission of
the gateway API. Link the provider settings and defaults to the provider
docs, and drop the Keycloak access token default that no provider page
states. Negate the verb in place of a trailing "no".

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): match the key, callback and profile checks

Give the signing key checks in the order of the CLI: the kty and kid
rules apply to every key, and the other rules apply only to a key that
the CLI doesn't skip. Say that exactly one usable key must match the ID
token. Add the profile name, gateway origin and discovery URL rules, the
exact callback host and path, the fixed message for a provider error,
the proxy condition of the renewal connection check, and the system
trust store for the identity provider certificate.

Give the Keycloak lifetime range and the scopes that Keycloak names in
the token response. Say that a profile that a client still uses can't
change, and how to release it. Keep the discovery and invalid_grant
rules on the checks page only.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): keep the checks to what an administrator sets

Say that a key can leave out alg, use and key_ops, and start each key
step with its condition. Give the key type and curve for each ID token
algorithm. Make the invalid_grant rule need a complete JSON body, and
say that the CLI tries to remove the saved sign-in.

Say that a renewal checks the 360 seconds again after it saves the new
refresh token, that only a saved endpoint must match the discovery
document, and how to release a profile in one client. Give the Entra ID
ceiling for the default lifetimes and for a lifetime policy. Remove a
meta sentence, a repeated discovery URL rule, a repeated audience check,
the Okta audience example and the Entra ID plain PKCE note.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): match the scope, Keycloak and callback rules

Give the allowed scopes at sign-in and at renewal, and the scope match
steps in the order of the CLI. Make the invalid_grant rule need a JSON
body of at most 65,536 bytes. Say what the 2-minute sign-in limit covers,
what the 5-second renewal margin is, and that any program on the
callback port stops the sign-in.

For Keycloak, keep Include in token scope on only for the scopes that
the profile requests, allow persistent refresh tokens, keep Add to ID
token off in the Audience mapper, and drop the unsourced resource claim.
Say that Entra ID matches the port of a 127.0.0.1 callback. Keep the
saved endpoint rule on the checks page only, and link --redirect-uri to
the callback rules.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): correct the renewal margin and Keycloak steps

Say that the 365-second minimum has a 5-second margin and that the token
must still have 360 seconds left after the renewal saves the refresh
token. Say that the 2-minute limit is the wait for the browser callback.

For Keycloak, say that a --scope list replaces the defaults and must
keep profile and email, that the CLI saves the refresh token of each
renewal, why the profile uses --audience-parameter none, and that the
CLI refuses an ID token with another aud value. Make each 127.0.0.1
port of an Entra ID callback its own redirect URI in the same app
registration.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): tighten the Keycloak steps and lifetime rule

Say that --audience-parameter none uses the Audience mapper as the
source of the gateway audience, because Keycloak can read the resource
parameter when its Resource Indicators feature is on. Say that Keycloak
sends a new refresh token in each renewal response with rotation off.
Keep only the Keycloak result of a shorter --scope list, and state the
365-second minimum and its 5-second renewal margin once.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): state the Keycloak audience and refresh causes

Say that --audience-parameter none stops the sign-in request from
sending resource, so the Audience mapper is the only source of the
gateway audience. Say that Keycloak sends a new refresh token only when
Use Refresh Tokens is on. Fit the Include in token scope step to each
scope that the list leaves out, and say that the 360 seconds apply after
the renewed sign-in is saved.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): move token response scope checks to checks page

Move the token response scope matching, allowed-list tracking and
required-scope rules from identity-provider.md into
identity-provider/checks.md under Token responses, merging them with the
existing scope format bullet without duplication, and link there from
identity-provider.md.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): link profile creation and security identity owners

Replace the repeated profile creation command and security identity
rules in identity-provider.md with links to Profile creation on
profiles-for-administrators.md, the profile create CLI reference and
Security identity on profile-file.md.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): trim duplicated profile value rules in checks

Replace the repeated profile field rules under Profile values in
identity-provider/checks.md with links to Sign-in fields and Top-level
fields on profile-file.md while keeping the Profile values heading and
canonical URL cross-references, move discovery_url into the URLs list,
tighten the merged Token responses wording and point the scope and
audience rule links in identity-provider.md directly to Sign-in fields.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): remove repeated rules from providers page

Remove the repeated refresh-token storage sentence and generic lifetime
flag rule from the Keycloak section of identity-provider/providers.md,
and link to Token responses, ID token and Access token lifetime instead.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): clarify gateway origin and Keycloak scope wording

Split the `--gateway-origin` rule in `identity-provider/checks.md` into two
sentences so it states that the value follows the URL rules without a path or
query and that the port rule excludes `80` in place of `443` for loopback
`http`.

Split the Keycloak `Scopes` bullet in `identity-provider/providers.md` so the
link to `Token responses` is an attribution clause rather than the subject of
the sentence.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): clarify Keycloak custom scopes and origin port

Limit the Keycloak "Include in token scope" turn-off step in
`identity-provider/providers.md` to default client scopes that the profile
doesn't request, and state that a token response with `scope` must keep every\ncustom scope that the profile requests.\n\nReword the loopback `http` gateway origin port rule in\n`identity-provider/checks.md` to state directly that the URL must not name port\n`80`, in the same way that an `https` URL must not name port `443`.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): unlink unneeded Keycloak default scopes

Advise unlinking unneeded default client scopes from the kong-harnesses client
in the Client scopes tab rather than turning off the shared Include in token
scope switch, because changing that shared setting alters the scope claim for
every other client linked to that scope.

Limit turning off Include in token scope on a shared scope to cases where the
other clients linked to it need that change too, both under Scopes and under
Audience, and direct readers to move client-specific mappers or role mappings
to the dedicated client scope otherwise.

Remove the repeated sentence about turning off Include in token scope when
--scope omits profile or email.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): order the Keycloak scope choices

The Keycloak scope steps told readers to unlink a shared scope and then
offered to turn off Include in token scope on it, which contradicts. List
the choices first, in the order to apply them: unlink a scope that this
client does not need, keep the link and turn the switch off only when every
other linked client needs that, or move the mappers to the dedicated client
scope.

A scope with role scope mappings applies only to users with one of its
roles, and the dedicated client scope skips that check, so for such a scope
copy it, turn the switch off on the copy and link the copy only to this
client.

Say that openid is a protocol value with no client scope to link, and that
the switch must stay on only for the custom scopes that the profile
requests.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): put the callback port conflict in OS tabs

The callback section mixed the Windows reserved port case and its netsh
commands into the text for every OS. Move the conflict text into macOS and
Linux, and Windows tabs, so each reader sees only the steps for their OS.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): note Keycloak role limits on requested scopes

Keycloak applies a client scope with role scope mappings only for a user
who has one of its roles. For any other user it leaves the scope out of
the token response, so a requested custom scope goes missing and the
sign-in fails. Say this, link the Keycloak section, and tell
administrators to check the roles of each user who signs in.

Also say how a requested scope is linked: as a default client scope, or
as an optional client scope that the profile requests.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): note role limits on default Keycloak scopes

The Keycloak section said that the token response names each default
client scope with Include in token scope on. A default client scope with
role scope mappings is left out for a user who has none of its roles, so
say so and link the Keycloak section that describes it.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): fix provider facts and simplify IdP pages

Correct the Auth0 consent setting, drop the Entra ID public client
flows toggle that the sign-in doesn't use, and add the PingFederate
issuer claim and published signing key that the gateway needs. Add
the Auth0 per-app grant and the Keycloak rotation client policy.

Add the issuer row to the client settings, put the Keycloak scope
choices in a table, split the Windows port commands into two blocks,
and cut checks that aren't about the identity provider.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): name UI settings and restore Keycloak scope row

Say that --audience is needed with every audience parameter, name the
Auth0 and Keycloak consent settings, restore the first Keycloak scope
row to cover a scope with mappers only, and replace unclear phrases.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): add PingFederate scopes and Entra API scope

Define the PingFederate scopes and select the JWT instance in the OIDC
policy too, say that the Entra ID gateway API must expose a delegated
scope, scope the plain PKCE switch to the server, and say which
refresh token refusal needs a new sign-in.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): attach Keycloak links to the steps they cover

Link the Keycloak PKCE section, move the timeouts and audience mapper
links next to the steps that they document, and name the access token
lifetime in the first sentence of its section.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* docs(kong-harnesses): match refresh token wording and PingFederate titles

Name the saved refresh token in the renewal cross-reference, list
offline_access with the PingFederate scopes, and use the exact title of
the linked PingFederate policy page.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* trim

* fix landing page card

* Add missing commands reference

* push fixes

---------

Signed-off-by: Bart Smykla <bartek@smykla.com>
Co-authored-by: tomek-labuk <tomasz.labuk@konghq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not merge Issues/ PRs whose changes should not be merged at this time release-docs Docs for release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants