mise/GitHub/Issue/24/02/Struggles with integrating 1Password op
Properties
- created-by
- Person/Randy Syring
Struggles with integrating 1Password's op · Issue #1617 · jdx/mise
- References mise/GitHub/Discussion/24/01/Vaults and Secrets Management for broader discussion on secrets management
- most of the discussion here is actually about how to load secrets from 1password into the environment upon changing directories, which is not what I'm interested in
- The poster Person/Randy Syring works for a software firm called level12, and as of 2025/01 they ended up building and using an in-house but Open/Source solution, level12/GitHub/env-config.
Summary
Core Challenge
- 1Password/Dev/op CLI integration with mise faces performance issues
- Takes ~1 second to resolve secrets, which is problematic when run on every prompt
Current Working Solution with direnv
Attempted Solutions
1. Using
_.sourcein mise2. Lua Plugin POC
Key Problems
- Environment variables not getting removed when leaving directory
- Multiple executions per prompt
- No caching mechanism like direnv has
Potential Solutions Discussed
- @jdx noted:
- Suggestion for
mise refreshcommand for manual re-resolution
Current Status
- Issue moved to discussion for further exploration
- direnv remains the recommended approach for now