From 28f038fe58172d01eeaba6c1ebe84a2ff9f60930 Mon Sep 17 00:00:00 2001 From: rgarcia <72655+rgarcia@users.noreply.github.com> Date: Wed, 25 Nov 2026 02:37:15 +0000 Subject: [PATCH] Document pool acquisition for service accounts --- info/authentication.mdx | 2 +- info/workload-identity/migrate-from-api-keys.mdx | 2 +- info/workload-identity/overview.mdx | 4 ++-- info/workload-identity/service-accounts.mdx | 4 ++-- info/workload-identity/troubleshooting.mdx | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/info/authentication.mdx b/info/authentication.mdx index 01f06ca1..1ac8f428 100644 --- a/info/authentication.mdx +++ b/info/authentication.mdx @@ -44,7 +44,7 @@ For some jobs an API key is still a reasonable choice: - **Local development.** Your laptop has no workload identity. Sign in with `kernel login`, or create a personal key with a short expiry. - **Environments with no identity provider.** A VM at a host that issues no OIDC tokens, or a third-party tool that only accepts a key, can't federate. Give it a [service account API key](/info/workload-identity/service-accounts#service-account-api-keys) so the key belongs to your organization, not to the person who created it. - **Access across projects.** A federation rule covers one project. A task that needs every project in your organization at once needs an organization-scoped key. -- **Features closed to service accounts.** Acquiring a browser from a [pool](/browsers/pools), deploying or invoking [apps](/apps/deploy), and managing API keys aren't available to federated credentials. See [what a service account can't do](/info/workload-identity/service-accounts#what-a-service-account-cant-do). +- **Features closed to service accounts.** Deploying or invoking [apps](/apps/deploy) and managing API keys aren't available to federated credentials. See [what a service account can't do](/info/workload-identity/service-accounts#what-a-service-account-cant-do). When you do use an API key, limit what a leak can reach: scope it to one project, give it a [policy](/info/api-keys#scope-a-key-to-specific-resources) and a short expiry, and [limit it to your IP ranges](/info/api-keys#limit-a-key-to-your-ip-ranges) if it's used from a fixed network. diff --git a/info/workload-identity/migrate-from-api-keys.mdx b/info/workload-identity/migrate-from-api-keys.mdx index 9d590a66..7a6615c2 100644 --- a/info/workload-identity/migrate-from-api-keys.mdx +++ b/info/workload-identity/migrate-from-api-keys.mdx @@ -23,7 +23,7 @@ Open **Keys** > **API keys** in the [dashboard](https://dashboard.onkernel.com) - **Its project.** A federation rule covers one project. If the key is org-wide, work out which project the workload really uses. A workload that uses two projects needs two rules. - **What it calls.** An unrestricted key can do anything, but your workload does a few things. List them, such as creating, using, and deleting browsers, so you can grant only those. Your [audit logs](/info/audit-logs) record every authenticated request, and you can filter them to API key authentication. -Check that the workload doesn't depend on something [closed to service accounts](/info/workload-identity/service-accounts#what-a-service-account-cant-do): acquiring browsers from a pool, app deployments and invocations, or managing API keys. +Check that the workload doesn't depend on something [closed to service accounts](/info/workload-identity/service-accounts#what-a-service-account-cant-do): app deployments and invocations, or managing API keys. diff --git a/info/workload-identity/overview.mdx b/info/workload-identity/overview.mdx index 99dbc235..5db55214 100644 --- a/info/workload-identity/overview.mdx +++ b/info/workload-identity/overview.mdx @@ -6,7 +6,7 @@ description: "Authenticate CI jobs, cloud services, and Kubernetes pods to KERNE Workload identity federation lets a workload authenticate to KERNEL without an API key. The workload presents a short-lived OpenID Connect (OIDC) token from an identity provider it already has: GitHub Actions, AWS, Google Cloud, Microsoft Entra, Kubernetes, or any OIDC issuer. KERNEL checks the token against rules you configure and returns a KERNEL access token that expires in five minutes. -Use it for every workload that isn't a person at a keyboard. A few operations, such as acquiring a browser from a pool and running app deployments, [stay closed to service accounts](/info/workload-identity/service-accounts#what-a-service-account-cant-do), so check them before you plan a migration. A stored API key works until someone revokes it, so one leaked CI variable is standing access to your browsers, profiles, and credentials. With federation: +Use it for every workload that isn't a person at a keyboard. A few operations, such as running app deployments, [stay closed to service accounts](/info/workload-identity/service-accounts#what-a-service-account-cant-do), so check them before you plan a migration. A stored API key works until someone revokes it, so one leaked CI variable is standing access to your browsers, profiles, and credentials. With federation: - **There's no secret to leak.** Nothing is stored in CI variables, config files, or secret managers. The federation rule ID your workload sends is an identifier, not a credential. - **Tokens expire in minutes.** An access token lasts 300 seconds by default and 600 at most. The SDKs exchange a fresh one before it expires. @@ -275,7 +275,7 @@ The built-in SDK sources request a new identity token for every exchange, so you ## What a workload can do -A federated credential can do what its rule's policy grants, inside the rule's one project. Three things stay closed to service accounts whatever the policy says: acquiring a browser from a pool, using app deployments and invocations, and managing API keys. See [what a service account can't do](/info/workload-identity/service-accounts#what-a-service-account-cant-do). +A federated credential can do what its rule's policy grants, inside the rule's one project. Two things stay closed to service accounts whatever the policy says: using app deployments and invocations, and managing API keys. See [what a service account can't do](/info/workload-identity/service-accounts#what-a-service-account-cant-do). A workload can inspect its own identity and permissions: diff --git a/info/workload-identity/service-accounts.mdx b/info/workload-identity/service-accounts.mdx index cfd34a91..5e9cdfb9 100644 --- a/info/workload-identity/service-accounts.mdx +++ b/info/workload-identity/service-accounts.mdx @@ -34,15 +34,15 @@ Open a service account to see its ID, when it was created and last used, the **A A service account credential can do what its rule's or key's policy grants, inside that rule's or key's one project. The policy uses the same actions and resources as a scoped API key. See [Scoping permissions](/info/api-key-permissions). - **Browsers** it creates are recorded as created by the service account. Creating a browser needs `browsers:create` and `browsers:use`, plus permission on any profile, vault, or proxy the browser attaches. +- **Pooled browsers** it acquires are recorded as held by the service account for as long as the lease lasts. Acquiring from a [pool](/browsers/pools) and releasing back to it each need `browser_pools:use` and `browsers:use`, plus `profiles:use` when the pool has a profile. - **Other resources**, such as profiles and proxies, can be created when the policy grants it. They record no creator. ### What a service account can't do -Three things are closed to service accounts, whatever the policy says: +Two things are closed to service accounts, whatever the policy says: | Closed | Why | | --- | --- | -| Acquiring a browser from a [pool](/browsers/pools) | A pool lease records a user, not a service account. | | [App](/apps/deploy) deployments and invocations, including attaching a browser to an invocation and listing or deleting an invocation's browsers | Deployments and invocations identify their caller as a user. | | Managing API keys | A service account's policy can't include API key permissions. | diff --git a/info/workload-identity/troubleshooting.mdx b/info/workload-identity/troubleshooting.mdx index aca5fb88..97c0ac74 100644 --- a/info/workload-identity/troubleshooting.mdx +++ b/info/workload-identity/troubleshooting.mdx @@ -81,7 +81,7 @@ To allow reuse on a Microsoft Entra, Kubernetes, or custom OIDC issuer, select * | Symptom | Cause | Fix | | --- | --- | --- | | `403` with `insufficient_scope` | The rule's policy doesn't grant the action on that resource. | The message names the missing action and resource. Add it to the rule. Operations such as creating a browser need [more than one action](/info/api-key-permissions#operations-that-need-more-than-one-action). | -| A pool acquire, a deployment, or an invocation is refused | These are [closed to service accounts](/info/workload-identity/service-accounts#what-a-service-account-cant-do). | Use a personal API key for that part of the workload. | +| A deployment or an invocation is refused | These are [closed to service accounts](/info/workload-identity/service-accounts#what-a-service-account-cant-do). | Use a personal API key for that part of the workload. | | A request that names another project fails | The token is bound to the rule's project. | Create a rule for the other project. | | `401` shortly after it worked | The rule, issuer, or service account was disabled, archived, or changed. Issued tokens stop working within about 10 seconds. | Check the **Rules** and **Issuers** tabs. The SDK retries once with a fresh exchange, so a re-enabled rule recovers by itself. | | Lists come back empty | List endpoints return only what the policy can access. | Grant the matching read or use action. |