CopilotBYOKManager manages developer-tool configuration, may launch allowlisted application installers, orchestrates official GitHub sign-in flows, stores a separate GitHub personal-usage authorization, and reads local usage metadata. Treat reports and diagnostic files as potentially sensitive.
The v0.1 four-page core edition does not expose or automatically query Usage, Billing, separate personal-usage authorization or Resources. Their existing data and backend security contracts remain protected; the sections below cover retained code as well as currently exposed features.
The dedicated credential namespace may hold provider API keys explicitly imported from reviewed BYOK sources. Client login and account credentials belong to their original applications.
Do not include any of the following in a public issue, discussion, screenshot, or log attachment:
- API keys, GitHub tokens, authorization headers, device codes, cookies, or refresh tokens;
- browser profile data, VS Code SecretStorage data, Copilot CLI authentication files, or GitHub Copilot app credential data;
- JetBrains Password Safe data, Copilot authentication settings, raw
github-copilot/byok.json, private rollback snapshots, or IDE conversation/debug logs; - full environment dumps;
- complete VS Code, Copilot CLI, or Copilot app configuration files when they contain materialized credentials;
- raw Copilot session or Agent Debug Log files;
- prompts, assistant responses, tool arguments/results, source-code excerpts, repository contents, or private absolute paths;
- unredacted installer output that includes a username, home directory, proxy credential, or access token.
Use synthetic credentials and a minimal temporary fixture whenever possible.
Use the repository security page and report suspected vulnerabilities privately through GitHub's private vulnerability reporting feature when enabled. Do not open a public proof of concept before the maintainer has had a reasonable opportunity to investigate.
Reports are especially valuable for:
- credential or token disclosure;
- extraction or copying of client authentication material;
- command, argument, deep-link, or installer injection;
- execution of a non-allowlisted package or asset;
- release redirect, digest, or publisher-validation bypass;
- unsafe elevation behavior;
- path traversal, symlink, junction, or reparse-point bypass;
- unsafe file replacement, ownership bypass, or rollback corruption;
- cross-account sign-in confusion;
- a Copilot runtime quota or GitHub Billing permission/schema/error being represented as zero usage;
- AI-credit and premium-request unit confusion;
- usage-log ingestion that stores prompt, response, tool, code, environment, or credential content;
- usage double counting, cursor corruption, or shared CLI/app deduplication failure;
- incorrect price snapshot selection that materially misstates historical cost;
- secrets appearing in frontend errors, audit records, tracing, panic output, or database rows.
Include:
- the CopilotBYOKManager commit;
- operating system, architecture, and relevant client versions;
- the affected logical surface and physical target/profile;
- whether the issue occurs during detection, preview, install, sign-in, deployment, Billing refresh, usage sync, pricing, or rollback;
- a minimal reproduction using fake credentials and temporary files;
- expected versus actual behavior;
- whether another process edited the target or an operation was interrupted;
- redacted status codes, package/asset identity, parser/schema version, and timestamps when relevant;
- whether the problem is deterministic.
Do not attach a real token or raw session log. Extract the smallest synthetic record that reproduces the issue.
- Connection API keys and CopilotBYOKManager's least-privilege personal-usage GitHub token use separate operating-system credential-store references.
- CopilotBYOKManager must never import client-owned OAuth tokens, cookies, passwords, passkeys, or credential databases.
- Credential-store failure must be distinguishable from a missing credential.
- Redaction must occur before errors or progress events cross into the frontend.
- URL, header, process, tracing, and panic diagnostics must be tested for secret leakage.
- Editor focus/dirty-state tracking must not copy field values or serialize passwords into drafts. Closing a credential dialog clears its password fields; failed saves retain input only in the current editor.
The SQLite adapter implements synchronization of selected BYOK provider/model entries and explicit deletion of manual BYOK groups for official Windows x64 App builds after publisher, product, architecture and provider JSON database-format verification. It starts disabled and requires explicit enablement and a target-scoped risk confirmation. The Authorization-header route stores the selected provider key in plaintext in App SQLite rows; SQLite WAL/rollback journals and filesystem backups may retain it too. Manager-side OS credential storage does not encrypt these copies. The enable dialog discloses this before writing. The native adapter checks owner identity and restrictive Windows ACLs on the database, parent and sidecars.
Keys must stay out of previews, logs, diagnostics, exports, issues and screenshots. Restrict reads to reviewed schema metadata and bounded configuration rows; never enumerate account, session or conversation tables. Recovery data must be scoped, private and documented; do not silently copy the full App database. Unknown versions/schema, unsafe paths, lock contention, a running App or external edits fail closed. Disabling sync stops future writes but neither removes existing target keys nor guarantees erasure from journals/backups; show separate, reviewed owned-configuration revocation and key-rotation guidance. The exact invariants and acceptance gates are in the linked plan.
Dashboard discovery reads the verified App's non-account-linked provider names and model counts even with sync disabled. For previously owned providers it compares structural metadata, header names and credential presence. When Windows grants additional readers access, a confirmed publication can protect the database and SQLite journals before writing the key. The preview identifies any change to file inheritance in the database directory. Other existing children keep their access rules. Protected storage is required for credential writes and key extraction. Additional rights to modify or replace files or change their permissions block access.
The visibility check compares supported provider configurations and key availability with the saved catalog. The review returns bounded configuration metadata and key availability. The apply command rechecks the selected configuration and credential fingerprints. With explicit consent, it saves a static provider API key in the operating system credential store under the selected Connection. The operation is local. Keys and fingerprints stay out of IPC payloads, application state, logs and backups. Existing keys are preserved and conflicting source keys require a narrower selection. For the supported App provider schema, key import accepts the reviewed static Bearer Authorization field in non-account-linked provider rows.
Direct editing and deletion target one reviewed provider in an allowlisted VS Code, CLI or JetBrains configuration file. The editor exposes bounded names and endpoints. It preserves credentials on edit and uses the native write lock, stale-plan checks and private transaction journal. Compatible App observations read only non-account-linked provider names and model counts through the verified read-only adapter. With experimental sync enabled, a separate confirmation authorizes deleting one manual BYOK group. Its before-image can contain provider credentials and stays in the private local recovery journal until completion or recovery. A plan-bound permit authorizes exact restoration. Account-linked rows and client authentication stores are excluded.
These rules concern third-party client/component installers launched by the manager, not an Authenticode requirement on the manager's own first Windows package.
- Install operations are selected by native, compiled allowlists.
- The frontend and remote metadata cannot supply an executable command line.
- Downloaded GitHub Copilot app assets must pass bounded-download, architecture, digest when available, and expected-publisher validation before launch.
- Redirects must remain inside a documented allowlist and must never downgrade transport security.
- Installation success is confirmed by post-install rediscovery, not by process exit code alone.
- CopilotBYOKManager does not automatically uninstall or downgrade applications as rollback.
- The Windows x64 NSIS/standalone community build is explicitly Unsigned community build. Authenticode is not required for v0.1; do not imply a verified Windows publisher or instruct users to disable SmartScreen.
- macOS Universal DMGs retain both architectures and Hardened Runtime. Developer ID signing is optional; selecting it requires notarization and stapled tickets. Fresh ad-hoc release builds are permitted, while separately named dry-run artifacts cannot be promoted. Exact results remain in package metadata.
- Check the precise source SHA, version, architecture and SHA-256 list. A checksum verifies agreement with the published bytes, not authorship by itself or runtime correctness.
- Draft-first publication verifies the complete asset set, downloads and checks hashes before public promotion, and refuses already-public asset replacement. No auto-updater is enabled.
- P12/P8 files, certificate passwords, private signing identities, API identifiers and signing-key material must never appear in the repository, reports or attachments. Secrets belong only in the maintainer's protected release environment; see release secrets.
- Standalone ZIPs can write app state, OS credentials and client configuration outside their folder. Uninstalling the manager must not remove unrelated/client configuration.
- CopilotBYOKManager launches official client/browser/device sign-in flows only.
- It may compare non-secret account observations, but must not copy authentication state between applications.
- Verified, inferred, user-confirmed, unknown, unsupported, and conflict states remain distinct.
- Conflicting verified accounts block automatic completion; CopilotBYOKManager does not silently sign a client out.
- Runtime quota, GitHub personal Billing data, and locally observed token usage remain separate datasets.
- Unauthorized, forbidden, unsupported, stale, schema-error, network-error, not-covered, successful-empty, and zero are distinct states.
- AI credits and legacy premium requests are never added together.
- Personal Billing data is not presented as organization or enterprise coverage.
- GitHub actual amounts and locally calculated API-equivalent estimates are labeled and stored separately.
- Usage collection stores metadata only: client/source identity, model, route attribution, token buckets, timestamps, coverage, and price-snapshot references.
- Raw prompt, response, tool, code, environment, cookie, or authentication content is not persisted.
- Missing token fields remain unknown rather than becoming zero.
- Importers are bounded, incremental, idempotent, and resilient to active/incomplete final log lines.
- Shared runtime data must not be counted once as CLI usage and again as Copilot app usage.
- Money and rates use exact decimal/fixed-point arithmetic.
- Historical estimates bind to immutable price snapshots.
- Unknown or ambiguous model aliases and pricing tiers produce partial/unavailable estimates, not fabricated zero-cost rows.
- Current-price comparisons may be calculated separately but must not rewrite historical estimates.
CopilotBYOKManager is pre-release. Security fixes are applied to main; there is not yet a stable-version support matrix.