Feature Request: First-Class Support for Dev Containers and 'op' CLI

swistaczek
swistaczek
Community Member

Summary
We request 1Password to add native support for Development Containers (Dev Containers) and improve integration of the 'op' CLI within these environments.

Background
Dev Containers are an increasingly popular approach to standardizing development environments across teams. They allow developers to use a consistent, reproducible setup by running all development tooling inside Docker containers. This approach has gained significant traction, especially with the adoption of Visual Studio Code's Dev Containers extension.

Current Limitations
The 1Password CLI ('op') does not function seamlessly within Dev Containers.
Authorization for 'op' inside a Dev Container is treated as a separate computer, complicating the user experience.
Existing solutions like 1Password Connect and Service Accounts don't address this use case adequately.

Requested Features
Native Dev Container Support: Develop an official integration that allows the 'op' CLI to work seamlessly within Dev Containers.
Authorization Continuity: Implement a mechanism that allows the 'op' CLI in a Dev Container to utilize the authorization from the host machine, similar to how Git and SSH work in Dev Containers.
Official Documentation: Provide comprehensive guides and best practices for using 1Password within Dev Container environments.

Use Case
Developers using Dev Containers should be able to:

Access their 1Password vault securely from within the container
Use the 'op' CLI for tasks like secret injection into environment variables
Maintain a seamless workflow without repeatedly authorizing or switching contexts

Benefits
Improved Developer Experience: Streamline the use of 1Password in modern development workflows.
Enhanced Security: Encourage the use of secrets management in containerized development environments.
Consistency: Align 1Password's capabilities with other tools that already support Dev Containers.

Technical Considerations
The solution should work with various Dev Container implementations, focusing on the Visual Studio Code extension as a primary target.
Consider leveraging existing authorization mechanisms used by other tools in Dev Containers (e.g., SSH agent forwarding).
Ensure that the security model maintains 1Password's high standards while enabling this new use case.

Conclusion
Adding first-class support for Dev Containers would significantly enhance 1Password's value proposition for development teams and individual developers embracing modern workflows. We believe this feature aligns well with 1Password's commitment to security and user experience in the development ecosystem.
We appreciate your consideration of this feature request and look forward to the possibility of seeing it implemented in future releases.


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser: Not Provided