{"id":30071155,"url":"https://github.com/andrea11/openv","last_synced_at":"2025-08-08T12:20:20.795Z","repository":{"id":304794541,"uuid":"1019932689","full_name":"andrea11/openv","owner":"andrea11","description":"openv a tool to automatically load secrets from .env files using 1password CLI under the hood","archived":false,"fork":false,"pushed_at":"2025-07-30T11:19:35.000Z","size":109,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-30T12:59:36.378Z","etag":null,"topics":["1password","secrets","security"],"latest_commit_sha":null,"homepage":"https://techtonic.ltd","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrea11.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["andrea11"]}},"created_at":"2025-07-15T05:18:25.000Z","updated_at":"2025-07-30T11:17:38.000Z","dependencies_parsed_at":"2025-07-15T17:26:57.923Z","dependency_job_id":"c8f842c8-c96f-4a94-8013-d81f79b18114","html_url":"https://github.com/andrea11/openv","commit_stats":null,"previous_names":["andrea11/openv"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/andrea11/openv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrea11%2Fopenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrea11%2Fopenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrea11%2Fopenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrea11%2Fopenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrea11","download_url":"https://codeload.github.com/andrea11/openv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrea11%2Fopenv/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269418730,"owners_count":24413665,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["1password","secrets","security"],"created_at":"2025-08-08T12:20:16.928Z","updated_at":"2025-08-08T12:20:20.785Z","avatar_url":"https://github.com/andrea11.png","language":"Rust","funding_links":["https://github.com/sponsors/andrea11"],"categories":[],"sub_categories":[],"readme":"# Openv\n\nOpenv is a tool designed to manage **.env** files, providing additional security features. It uses 1password CLI under the hood, to automatically replace environment variables with secure credentials.\n\nIt supports multiple shells and allows for customizable command allow/deny lists. This tool uses 1password for secure credential management.\n\n\n## Table of Contents\n\n- [Openv](#openv)\n  - [Table of Contents](#table-of-contents)\n  - [Features](#features)\n  - [Installation](#installation)\n    - [Homebrew (recommended)](#homebrew-recommended)\n    - [Manual Installation](#manual-installation)\n    - [1Password CLI](#1password-cli)\n  - [Usage](#usage)\n    - [Automatic Hook Setup (recommended)](#automatic-hook-setup-recommended)\n    - [Manual Hook Setup](#manual-hook-setup)\n  - [Commands](#commands)\n  - [Configuration](#configuration)\n    - [Configuration Options](#configuration-options)\n  - [Supported Shells](#supported-shells)\n  - [Contributing](#contributing)\n  - [License](#license)\n\n## Features\n\n- **Command Wrapping**: Wrap shell commands to replace environment variables with secure credentials.\n- **Shell Support**: Supports multiple shells including Bash, Zsh, Fish.\n- **Configurable**: Easily configure via a TOML configuration file.\n\n## Installation\n\n### Homebrew (recommended)\n\nTo install Openv using Homebrew, you first need to tap the repository:\n`brew tap andrea11/homebrew-formulas`\n\nThen, install Openv:\n`brew install openv`\n\n### Manual Installation\n\nTo install Openv manually, you can download the binary from the [releases page](https://github.com/andrea11/openv/releases) and place it in a folder included in your PATH (e.g., `/usr/local/bin`).\n\n### 1Password CLI\n\nOpenv uses the 1Password CLI to fetch secrets. Make sure you have the 1Password CLI installed and configured properly. You can find the installation instructions [here](https://developer.1password.com/docs/cli/get-started).\n\nIt is also recommended to setup the 1Password desktop app enabling the '*Integrate with 1Password CLI*' option.\nOtherwise, you will need to provide the 1Password CLI with a service account token.\n\n\u003cdetails\u003e\n  \u003csummary\u003e1Password Settings Screenshoot\u003c/summary\u003e\n\n  ![1Password setting](doc/1Password%20settings.jpg)\n\n\u003c/details\u003e\n\n## Usage\n\n### Automatic Hook Setup (recommended)\n\nTo use Openv, you need to set up the appropriate hooks for your shell. Here are the steps:\n\n1. **Bash**: `openv init bash`\n\n2. **Zsh**: `openv init zsh`\n\n3. **Fish**: `openv init fish`\n\n### Manual Hook Setup\n\nIf you prefer to set up the hooks manually, edit your shell configuration file (e.g., `.bashrc`, `.zshrc`, or `config.fish`), adding the following line:\n\n1. **Bash**:\n`eval $(openv hook bash)`\n\n2. **Zsh**:\n`eval $(openv hook zsh)`\n\n3. **Fish**:\n`openv hook fish | source`\n\n## Commands\n\n- **execute**: Execute a command wrapped with `op run`.\n- **check**: Check if a command needs to be wrapped.\n- **hook**: Print the shell hook for the specified shell.\n- **init**: Set up the shell hook for the specified shell.\n\n## Configuration\n\nOpenv supports some commands out-of-the-box, for which it will automatically invoke the **op** CLI. But you can customize its behavior using a configuration file.\nOpenv uses a TOML configuration file to manage all settings. The configuration file can be located at `~/.openv.toml`, for a global configuration, or at the root of your project (`.openv.toml`), for a local configuration.\n\nExample `.openv.toml`:\n```toml\nallow_commands = [\n    \"^(npm|pnpm) (run )?(start|dev|build)\",\n    \"cargo run\"\n]\n\ndeny_commands = [\n   \"^python\"\n]\n\ndisable_masking = false\n```\n\n### Configuration Options\n\n- **allow_commands**: A list of Regex patterns for shell commands that are allowed.\n- **denyCommand**: A list of Regex patterns for shell commands that are denied.\n- **disable_masking**: A boolean to disable terminal output secrets masking (default is `false`).\n\n## Supported Shells\n\nOpenv supports the following shells:\n\n- **Bash**\n- **Zsh**\n- **Fish**\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrea11%2Fopenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrea11%2Fopenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrea11%2Fopenv/lists"}