Skip to content

Latest commit

 

History

History
51 lines (37 loc) · 1.15 KB

README.md

File metadata and controls

51 lines (37 loc) · 1.15 KB

mise-sops

Sops plugin for the Mise version manager.

Based on asdf-sops.

Install

$ mise plugins install https://github.com/mise-plugins/mise-sops.git

Environment Activation

Automatically activate the SOPS environment when entering the directory with the following .mise.toml:

[tools]
sops = { version = "latest", filename = ".sops.env" }

If only some variables should be exported, then a name filter (separated by :) can be applied:

[tools]
sops = {
  version = "latest",
  filename = ".sops.env",
  names = "GITHUB_TOKEN:PYPI_TOKEN"
}

Note: The names filter can be any bash-compatible regular expression, such as [A-Z]+_TOKEN|AWS_[A-Z_]+ (matches are anchored between ^ and $ but can use | for alternation)

Additional filenames can be processed (last wins) by separating entries with :, e.g.:

[tools]
sops = { version = "latest", filename = ".foo.env:.bar.env" }

License

Licensed under the MIT license.