Skip to content

Conversation

@rmvangun
Copy link
Contributor

The 1Password CLI provider was malfunctioning when multiple vaults were configured. The secrets were reporting as not found.

There were two problems. First, the use of break made us stop continuing to parse more than the first secret found.

An additional error was triggered as it was attempting to parse secrets for vaults that didn't match.

We now make sure to only attempt to parse secrets for matching vault IDs.

Also uses a more robust regex for matching onepassword secrets.

@rmvangun rmvangun added the bug Something isn't working label Mar 17, 2025
@rmvangun rmvangun requested a review from emjacobs March 17, 2025 02:09
@rmvangun rmvangun self-assigned this Mar 17, 2025
@rmvangun
Copy link
Contributor Author

@rmvangun rmvangun merged commit 207a534 into main Mar 17, 2025
14 checks passed
@rmvangun rmvangun deleted the ENG-294_Fix-for-malfunction-involving-two-1Password-vaults branch March 17, 2025 02:14
rmvangun added a commit that referenced this pull request Mar 17, 2025
* Remove breaks so providers are created

* go deps

* Only parse secrets belonging to the provider

* Improve regex

* Add test
rmvangun added a commit that referenced this pull request Mar 31, 2025
* Remove breaks so providers are created

* go deps

* Only parse secrets belonging to the provider

* Improve regex

* Add test

tidy
@rmvangun rmvangun restored the ENG-294_Fix-for-malfunction-involving-two-1Password-vaults branch April 4, 2025 19:26
rmvangun added a commit that referenced this pull request Apr 12, 2025
* Remove breaks so providers are created

* go deps

* Only parse secrets belonging to the provider

* Improve regex

* Add test

tidy
rmvangun added a commit that referenced this pull request Apr 12, 2025
* Remove breaks so providers are created

* go deps

* Only parse secrets belonging to the provider

* Improve regex

* Add test

tidy
rmvangun added a commit that referenced this pull request Apr 12, 2025
* Add op_sdk_secrets_provider

* Fix 1Password multi-vault malfunction (#796)

* Remove breaks so providers are created

* go deps

* Only parse secrets belonging to the provider

* Improve regex

* Add test

tidy
rmvangun added a commit that referenced this pull request Apr 23, 2025
* Remove breaks so providers are created

* go deps

* Only parse secrets belonging to the provider

* Improve regex

* Add test

tidy
rmvangun added a commit that referenced this pull request Apr 23, 2025
* Add op_sdk_secrets_provider

* Fix 1Password multi-vault malfunction (#796)

* Remove breaks so providers are created

* go deps

* Only parse secrets belonging to the provider

* Improve regex

* Add test

tidy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants