Skip to content

release: 0.150.0 - #232

Merged
hiroTamada merged 6 commits into
mainfrom
release-please--branches--main--changes--next
Nov 19, 2026
Merged

hiroTamada merged 6 commits into
mainfrom
release-please--branches--main--changes--next

Conversation

@kernel-internal

@kernel-internal kernel-internal Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Automated Release PR

0.150.0 (2026-11-19)

⚠ BREAKING CHANGES

  • APIKeyUpdateParams.Name is now param.Opt[string]; set it with kernel.String(...)

Features

  • Accept browser_id when authorizing a Kernel card: Evervault alias cards route that browser through the card vault's proxy as soon as the cardholder enters a fresh CVC (6e25f79)
  • Add captcha_solver to browser creation; stealth is deprecated in favor of captcha_solver and proxy (6e25f79)
  • Add BrowserFingerprint records to browsers, applied at claim time (6e25f79)
  • Add line_items to AgentCard card specs, passed through to checkout authorizations (6e25f79)
  • Add workload identity, the effective policy and the service account principal to the auth context (6e25f79)
  • Add the source_ip condition to API key policies (6e25f79)
  • Replace an API key's permissions in place with PATCH /org/api_keys/{id}, and link API keys to service accounts (6e25f79)
  • add workload identity federation credentials (5ae89f2)
  • Document conditions in the API key reference descriptions (11d3ab0)
  • Route VGS reveal-session payment windows through their own session in egress (3f7442f)

This pull request is managed by Stainless's GitHub App.

The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.

For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.

🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions


Note

High Risk
Breaking API-key update typing plus broad auth/credential and browser-behavior changes affect security-sensitive client configuration and may require call-site updates.

Overview
Release 0.150.0 bumps the package version and changelog; the substantive changes are in the generated API types and new auth plumbing.

Workload identity federation adds a lib/credentials package (token cache, env-driven setup, client middleware, AWS STS via optional lib/credentials/awssts import). kernel.NewClient() can exchange an external identity token for short-lived API access via option.WithFederationTokenProvider or KERNEL_FEDERATION_RULE_ID and related env vars; Go 1.23 and AWS SDK deps are required for STS. An example under examples/workload-identity documents the flow.

API keys gain service-account linkage, in-place policy replacement on update (including source_ip CIDR conditions on statements), and richer response fields (principal, service_account_id). Breaking: APIKeyUpdateParams.Name is optional and must be set with kernel.String(...) instead of a bare string.

Browsers introduce explicit captcha_solver configuration and BrowserFingerprint on sessions (including linux OS); stealth is deprecated in favor of captcha_solver and proxy, with proxy default-mode behavior tied to CAPTCHA solving rather than stealth alone. Managed auth and browser pools mirror these fields.

Auth context responses now expose workload identity metadata, service-account principals, and the effective policy. Proxy telemetry adds a payment_reveal_refused error code.

Reviewed by Cursor Bugbot for commit 6739004. Bugbot is set up for automated code reviews on this repo. Configure here.

rgarcia and others added 2 commits November 19, 2026 07:48
* Add workload identity federation credentials

A client can now trade a token from the workload's own identity provider
for a short-lived Kernel access token instead of using an API key, either
from the environment (KERNEL_FEDERATION_RULE_ID plus an identity-token
source) or with option.WithFederationTokenProvider.

The logic lives in lib/credentials: a token cache, the federation
provider, a one-shot ExchangeFederationAssertion, and identity-token
sources for files, static values, GitHub Actions and Google Cloud. The AWS
STS source is in lib/credentials/awssts so that only programs importing it
depend on the AWS SDK.

* Explain token replays by source and retry identity provider outages

A refused replay now says where the identity token came from: a file that
was not rotated, a static value, or a provider that repeated itself. An
invalid_target refusal points at the resource format.

Transient failures of the GitHub Actions and Google Cloud token endpoints
are retried like a transient exchange failure, and a forced refresh that
fails stays forced for the next attempt.

---------

Co-authored-by: rgarcia <72655+rgarcia@users.noreply.github.com>
Stainless-Generated-From: a5ae3b6c0d9a7a8ca79cea6f26bd320b096f0808

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 80df938. Configure here.

Comment thread CHANGELOG.md Resolved
Comment thread apikey.go
type APIKeyUpdateParams struct {
// New API key name
Name string `json:"name" api:"required"`
Name param.Opt[string] `json:"name,omitzero"`

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

API key Name became optional undocumentedly

Medium Severity

APIKeyUpdateParams.Name changed from a required string to param.Opt[string], which is source-breaking for callers that assign a plain string. The changelog and release notes do not name this field or the required-to-optional shift.

Additional Locations (1)
Fix in Cursor Fix in Web

Triggered by learned rule: Flag undocumented Params required↔optional type changes

Reviewed by Cursor Bugbot for commit 80df938. Configure here.

Stainless-Generated-From: d47bfecf716a5a4ca7e4efd52b86f595c7faaf69
@kernel-internal
kernel-internal Bot force-pushed the release-please--branches--main--changes--next branch from 80df938 to 981b539 Compare November 19, 2026 17:20
…ion in egress

Stainless-Generated-From: eabeadef89db9a300e7f73808b86ccb9ea6956fd
@kernel-internal
kernel-internal Bot force-pushed the release-please--branches--main--changes--next branch from 981b539 to cae4da9 Compare November 19, 2026 17:48
@hiroTamada
hiroTamada merged commit 26edb26 into main Nov 19, 2026
12 checks passed
@kernel-internal

Copy link
Copy Markdown
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants