Import selected logins into Managed Auth - #224
Conversation
6c24e38 to
0f42d8b
Compare
Discover matching Bitwarden and 1Password metadata locally, reveal only approved records after profile creation, and reconcile a bounded set of Managed Auth connections. Optionally install the Managed Auth skill for detected local agents.
0f42d8b to
abd122d
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit abd122d. Configure here.
| } | ||
| projectClient, err := auth.GetAuthenticatedClient( | ||
| option.WithProjectID(project), | ||
| option.WithHeader("X-Kernel-Cli-Version", metadata.Version), |
There was a problem hiding this comment.
Project name client option mismatch
Medium Severity
The Managed Auth client is built with option.WithProjectID using the raw --project / KERNEL_PROJECT value. When that value is a project name, chooseImportProject returns it unchanged. Elsewhere the CLI uses option.WithProject, which is documented to accept a name or ID, so credential and connection calls can be scoped incorrectly while the cookie import still proceeds.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit abd122d. Configure here.


What
Adds the second CLI import layer on top of #223:
Why
The customer outcome is one local wizard: choose a project, import useful browser cookies, approve a small set of matching accounts, and leave agents with profile state plus Managed Auth connections. It avoids uploading an entire vault, requiring hundreds of manual Managed Auth setups, or copying a project ID from the dashboard.
How
Verification
go test ./internal/passwordmanager ./internal/agentskills ./internal/browserimport ./cmd -count=1go vet ./internal/passwordmanager ./internal/agentskills ./internal/browserimport ./cmdStack
Note
High Risk
Handles passwords and TOTP from local vaults, creates/updates cloud credentials, and writes files into agent skill directories. Failures in selection, reveal, or reconciliation can leak or overwrite auth state.
Overview
kernel profiles import-localcan now match Bitwarden/1Password logins for the selected sites, create Kernel credentials plus Managed Auth connections (including supported TOTP), and optionally install a Managed Auth agent skill.Secrets are revealed only after the browser profile exists, and only for user-approved items (at most one login per site). Bitwarden can unlock in-process; 1Password is limited to personal vaults. Provisioning uses stable import names, refreshes existing connections, and refuses to overwrite a domain already bound to another credential.
The wizard also prompts for the destination project when several are active, counts cookies before site selection, retries browser-import create with an idempotency key, and writes
SKILL.mdatomically while refusing symlinks and customized skills.Reviewed by Cursor Bugbot for commit abd122d. Bugbot is set up for automated code reviews on this repo. Configure here.