Skip to content

feat: Support 1Password Connect server in 1Password plugin#533

Open
Copilot wants to merge 6 commits intomainfrom
copilot/feature-support-1password-connect-server
Open

feat: Support 1Password Connect server in 1Password plugin#533
Copilot wants to merge 6 commits intomainfrom
copilot/feature-support-1password-connect-server

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 2, 2026

  • Identify the Connect-only helpers in OpPluginInstance that need clearer names
  • Rename resolveVaultIdconnectResolveVaultId, resolveItemIdconnectResolveItemId, extractFieldconnectExtractField, and the two caches accordingly
  • Lint and verify (ESLint clean)

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 2, 2026

🦋 Changeset detected

Latest commit: fb8767b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@varlock/1password-plugin Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copilot AI and others added 2 commits April 2, 2026 04:45
Add a new auth mode for self-hosted 1Password Connect servers using
connectHost + connectToken parameters in @initOp(). Uses direct REST
API calls via native fetch - no op CLI or 1Password SDK required.

Includes:
- Connect REST API integration with vault/item/field resolution
- op:// reference parsing for Connect API lookups
- Vault and item ID caching within a session
- New opConnectToken data type
- Clear error for opLoadEnvironment (not supported with Connect)
- Updated README with Connect server documentation
- Changeset for minor version bump

Agent-Logs-Url: https://github.com/dmno-dev/varlock/sessions/6fa88b02-ac93-4548-adfb-94a31cd5ac69

Co-authored-by: theoephraim <1158956+theoephraim@users.noreply.github.com>
Prevent potential filter syntax issues if vault/item names contain
double quotes by escaping them before constructing filter expressions.

Agent-Logs-Url: https://github.com/dmno-dev/varlock/sessions/6fa88b02-ac93-4548-adfb-94a31cd5ac69

Co-authored-by: theoephraim <1158956+theoephraim@users.noreply.github.com>
Address CodeQL incomplete-sanitization alert by escaping backslashes
before quotes in filter expressions to prevent filter injection.

Agent-Logs-Url: https://github.com/dmno-dev/varlock/sessions/6fa88b02-ac93-4548-adfb-94a31cd5ac69

Co-authored-by: theoephraim <1158956+theoephraim@users.noreply.github.com>
Copilot AI changed the title [WIP] Add support for 1password connect server in 1password plugin feat: Support 1Password Connect server in 1Password plugin Apr 2, 2026
Copilot AI requested a review from theoephraim April 2, 2026 04:49
Rename private members of OpPluginInstance to make it immediately clear
they are only relevant to the Connect server auth mode:

- vaultIdCache → connectVaultIdCache
- resolveVaultId → connectResolveVaultId
- itemIdCache → connectItemIdCache
- resolveItemId → connectResolveItemId
- extractField → connectExtractField

Agent-Logs-Url: https://github.com/dmno-dev/varlock/sessions/85435a8e-c00e-4d7e-9660-8b6966e6f017

Co-authored-by: theoephraim <1158956+theoephraim@users.noreply.github.com>
@theoephraim theoephraim marked this pull request as ready for review April 2, 2026 17:09
this is purely additive functionality
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 2, 2026

Open in StackBlitz

npm i https://pkg.pr.new/varlock@533
npm i https://pkg.pr.new/@varlock/vite-integration@533
npm i https://pkg.pr.new/@varlock/1password-plugin@533

commit: fb8767b

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 2, 2026

Open in StackBlitz

npm i https://pkg.pr.new/varlock@533
npm i https://pkg.pr.new/@varlock/vite-integration@533
npm i https://pkg.pr.new/@varlock/1password-plugin@533

commit: fb8767b

@theoephraim theoephraim requested a review from philmillman April 2, 2026 17:15
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.

[Feature Request] Support 1password connect server in 1password plugin

4 participants