Protect what matters – even after you're gone. Make a plan for your digital legacy today.
Forum Discussion
Former Member
3 years agoIs there best-practices documentation on using 1password for Shiny app development?
I don't see any docs describing best practices on developing Shiny apps with 1password.
I currently develop shiny apps using Posit Workbench running on a remote machine.
I would like to handle secrets using 1password -- preferably via REST API calls, since I want to avoid having the op-cli as a non-R dependency.
1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser:_ Not Provided
Referrer: forum-search:https://1password.community/search?Search=shiny%20app
2 Replies
- Former Member
Yep, that answers my question. Thanks @eddy_1P !
We have implemented 1Password Connect on our local server, but this limits access to locally running jobs, so we are also going to host the connect server on the cloud... however, this is substantially more work to setup and maintain. - Former Member
Hey @nyoungb2,
Based on your described use case, it sounds like https://developer.1password.com/docs/connect is the product you're looking for.
1Password Connect is a REST API that you deploy in your infrastructure, and then you can fetch the secrets from it by making API calls to it. We also provide a set of SDKs to easily interact with Connect (e.g. https://github.com/1Password/connect-sdk-go, https://github.com/1Password/connect-sdk-js, https://github.com/1Password/connect-sdk-python).
I see that Shiny apps are build using R and Python, which makes me think that the Connect Python SDK may be a good starting point for you to experiment. Otherwise, you can check out https://developer.1password.com/docs/connect/connect-api-reference for more details about the endpoints and how they work.
Does this answer your question? Please let us know if you run into any issues or have any follow-up questions.