1Password / onepassword-sdk-go

https://developer.1password.com/docs/sdks/
MIT License
40 stars 3 forks source link

`SecretsAPI.Resolve` does not support items names that contain `.` #105

Closed pgavlin closed 2 months ago

pgavlin commented 2 months ago

Scenario & Reproduction Steps

Run this program with an appropriate service token and attempt to fetch an item with . characters in the name:

$ OP_SERVICE_ACCOUNT_TOKEN=... go run main.go "op://Test Vault/foo.bar.baz/username"

Actual Behavior

The program logs an error:

2024/07/15 10:31:41 error resolving secret reference: secret reference has invalid format - must be "op://<vault>/<item>/[section/]field"
exit status 1

Expected Behavior

The program fetches the item's contents and exists successfully.

SDK version

v0.1.0-beta.10

Additional information

No response

hculea commented 2 months ago

This should now be fixed with SDK release 0.1.0-beta.11.

Feel free to reopen if you run into any other such issues.