Repository navigation
release: 0.150.0 - #232
release: 0.150.0#232
Conversation
* 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
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
❌ 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.
| type APIKeyUpdateParams struct { | ||
| // New API key name | ||
| Name string `json:"name" api:"required"` | ||
| Name param.Opt[string] `json:"name,omitzero"` |
There was a problem hiding this comment.
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)
Triggered by learned rule: Flag undocumented Params required↔optional type changes
Reviewed by Cursor Bugbot for commit 80df938. Configure here.
Stainless-Generated-From: d47bfecf716a5a4ca7e4efd52b86f595c7faaf69
80df938 to
981b539
Compare
…ion in egress Stainless-Generated-From: eabeadef89db9a300e7f73808b86ccb9ea6956fd
981b539 to
cae4da9
Compare
|
🤖 Release is at https://github.com/kernel/kernel-go-sdk/releases/tag/v0.150.0 🌻 |


Automated Release PR
0.150.0 (2026-11-19)
⚠ BREAKING CHANGES
APIKeyUpdateParams.Nameis nowparam.Opt[string]; set it withkernel.String(...)Features
browser_idwhen 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)captcha_solverto browser creation;stealthis deprecated in favor ofcaptcha_solverandproxy(6e25f79)BrowserFingerprintrecords to browsers, applied at claim time (6e25f79)line_itemsto AgentCard card specs, passed through to checkout authorizations (6e25f79)source_ipcondition to API key policies (6e25f79)PATCH /org/api_keys/{id}, and link API keys to service accounts (6e25f79)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/credentialspackage (token cache, env-driven setup, client middleware, AWS STS via optionallib/credentials/awsstsimport).kernel.NewClient()can exchange an external identity token for short-lived API access viaoption.WithFederationTokenProviderorKERNEL_FEDERATION_RULE_IDand related env vars; Go 1.23 and AWS SDK deps are required for STS. An example underexamples/workload-identitydocuments the flow.API keys gain service-account linkage, in-place policy replacement on update (including
source_ipCIDR conditions on statements), and richer response fields (principal,service_account_id). Breaking:APIKeyUpdateParams.Nameis optional and must be set withkernel.String(...)instead of a barestring.Browsers introduce explicit
captcha_solverconfiguration andBrowserFingerprinton sessions (includinglinuxOS);stealthis deprecated in favor ofcaptcha_solverandproxy, 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_refusederror code.Reviewed by Cursor Bugbot for commit 6739004. Bugbot is set up for automated code reviews on this repo. Configure here.