Commit 0b6b2c0
feat: Support 1Password Connect server in 1Password plugin (#533)
* Initial plan
* feat: add 1Password Connect server support
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>
* fix: escape double quotes in Connect API filter queries
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>
* fix: escape backslashes in Connect API filter queries
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>
* refactor: prefix Connect-only helper methods/fields with "connect"
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>
* downgrade to patch bump
this is purely additive functionality
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: theoephraim <1158956+theoephraim@users.noreply.github.com>
Co-authored-by: Theo Ephraim <theo@dmno.dev>1 parent 74752a3 commit 0b6b2c0
3 files changed
Lines changed: 300 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
92 | 118 | | |
93 | 119 | | |
94 | 120 | | |
| |||
173 | 199 | | |
174 | 200 | | |
175 | 201 | | |
| 202 | + | |
| 203 | + | |
176 | 204 | | |
177 | 205 | | |
178 | 206 | | |
| |||
203 | 231 | | |
204 | 232 | | |
205 | 233 | | |
| 234 | + | |
206 | 235 | | |
207 | 236 | | |
208 | 237 | | |
| |||
262 | 291 | | |
263 | 292 | | |
264 | 293 | | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
265 | 300 | | |
266 | 301 | | |
267 | 302 | | |
| |||
271 | 306 | | |
272 | 307 | | |
273 | 308 | | |
| 309 | + | |
274 | 310 | | |
275 | 311 | | |
276 | 312 | | |
0 commit comments