Up to [cvs.NetBSD.org] / pkgsrc / security / sops
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
sops: Update to 3.13.3 Changes: 3.13.3 Improvements: * CLI help improvement * Dependency updates Bugfixes: * Fix a bug introduced in 3.13.2 that computes a wrong MAC during decryption for sequences (YAML lists) that contain a comment * Fix ``completion`` subcommands so that they do not have an empty line before the shebang 3.13.2 Improvements: * Dependency updates * Fix typos in documentation Bugfixes: * When using `--user` in the `sops exec-file` and `sops exec-env` subcommands, supplementary groups are now reset to the ones of the supplied user * When using `--user` in the `sops exec-file` and `sops exec-env` subcommands, make sure that `HOME`, `USER`, and `LOGNAME` are set to the correct values for the supplied user * AWS KMS: Handle pointers when serializing AWS context * JSON store: Preverse large integers that fit into `int64` * INI store: Restore old behavior of double-escaping newlines in metadata, and adjust code to handle both the 3.13.0/3.13.1 single-escaped newlines as well as double-escaped newlines * Fix panic when expecting a string for encrypted data, but when encountering something else 3.13.1 Improvements: * Dependency updates * The documentation for SOPS can now be found on <https://getsops.io> instead of the project's README Bugfixes: * Fix scheme for determining gpg-agent cache keys for age password-protected keys to avoid too large keys due to percent encoding ([#2180](https://github.com/getsops/sops/pull/2180)). 3.13.0 Improvements: * Dependency updates * Improve error messages for top-level arrays * Improve use of gpg-agent for password-protected age keys. The passwords are now associated with an identifier that includes a hash of the public key's content, instead of using the environment variable or path (that was sometimes too long and caused errors) * Allow to use `SOPS_GCP_KMS_ENDPOINT` and `SOPS_GCP_KMS_UNIVERSE_DOMAIN` to configure alternative clouds using GCP's API * Preserve YAML inline comments as inline comments, instead of converting them to line comments * `SOPS_AGE_KEY` can now contain space-separated public keys * An allowlist for HashiCorp Vault URLs (and thus also OpenBoa URLs) can now be configured with `SOPS_HC_VAULT_ALLOWLIST`. The default is `all`, which does not restrict which URLs to connect to * The metadata flattening and unflattening code for INI and DotEnv files has been rewritten, and generally metadata handling has been changed to use mapstructure. This should not result in observable behavior changes for users Bugfixes: * `sops exec-file` on other platforms than Windows was setting the user ID as the (effective) group ID. Now the user's group ID is used * `sops exec-file` now rejects non-local paths in `--filename` * The `--indent` parameter was ignored for subcommands 3.12.2 Improvements: * Dependency updates Bugfixes: * GCP: Revert the fix introduced in 3.12.0 that sets quota project to API project in GCP KMS. This change unintentionally resulted in requiring more permissions for GCP users. The original issue will be addressed in another way in a future release * Ensure to delete temporary file and directory when editing in more situations, like when user presses Ctrl+C or SOPS receives a SIGTERM * Fix message that you need to enter (and not any key) after SOPS rejects an edited file * Reject files with ``sops`` keys when editing files * Fix handling of ``--mac-only-encrypted`` option in subcommands 3.12.1 This is a re-release of 3.12.0 with no code changes. 3.12.0 Features: * Add support for HuaweiCloud KMS * GCP KMS: Add `SOPS_GCP_KMS_CLIENT_TYPE` environment variable support to select between gRPC and REST clients * Age: support hybrid post-quantum identities * Age: pass `SOPS_AGE_RECIPIENT` environment variable to `SOPS_AGE_KEY_CMD` * Age: add `SOPS_AGE_SSH_PRIVATE_KEY_CMD` environment variable Improvements: * Dependency updates * Fix mistakes in `--help` output * Improve documentation * Unset user's `GNUPGHOME` environment variable for tests * Use age's `plugin.NewTerminalUI()` instead of vendoring the code * Remove dead code during YAML loading * Build release with Go 1.26 Bugfixes: * Add `--decryption-order` flag to `exec-env`, `exec-file`, and `publish` commands. The subcommand code was using the flags, but it wasn't declared * Fix AWS KMS encryption context not being passed when config is pre-loaded * Fix recursive publish * Set quota project to API project in GCP KMS * DotEnv store now properly reports missing metadata * AWS KMS: allow role splitting without hard-coded `aws` partition
sops: Update to 3.11.0 Changes: v3.11.0 * Update dependencies * Add "--value-file" option to "sops set [...]" * Ensure temporary file for editing is only read-writable by owner * Add `--value-stdin` option to `sops set` * Collect age identity loading errors and only report if decryption failed * Allow to configure --enable-local-keyservice and --keyservice through env variables
sops: Update to 3.10.2 Changes: ## 3.10.2 Bugfixes: * Remove reserved keyword check from YAML store, which hid a better check Improvements: * Dependency updates * Use latest 1.24 Go version for release build ## 3.10.1 This is a re-release of 3.10.0 with no code changes. ## 3.10.0 Security fixes: * Cherry-pick a fix for a timing vulnerability in the Shamir Secret Sharing code. The code was vendored from HashiCorp's Vault project, and the issue was fixed there two years ago; see GHSA-vq4h-9ghm-qmrr for details Features: * Add `--input-type` option for `sops filestatus` subcommand * Allow to set the editor `sops` should use with the `SOPS_EDITOR` environment variable. If not set, `sops` falls back to `EDITOR` as before. * Allow users to disable the latest version check with the environment variable `SOPS_DISABLE_VERSION_CHECK`. Setting it to `1`, `t`, `T`, `TRUE`, `true`, or `True` explicitly disables the check * Allow users to explicitly enable the latest version check with the `--check-for-updates` option. * Add duplicate section support for INI store * Add check to prevent duplicate keys in YAML files * Add `--same-process` option for the `sops exec-env` to use the `execve` syscall instead of starting the command in a child process * Add `--idempotent` option for the `sops set` subcommand that will only write the file if a change happened * Encrypt and decrypt `time.Time` objects that can appear in YAML files when using dates and timestamps * Allow to encrypt and decrypt from `stdin` without having to provide platform-specific device names. This only works when using the `sops encrypt` and `sops decrypt` subcommands * Allow to set the SOPS config location with the environment variable `SOPS_CONFIG` * Support the `--config` option in the `sops publish` subcommand * Omit empty master key metadata from encrypted files * Add SSH support for Age * Support Age identities with passphrases * Add Age plugin support * Allow to set the `SOPS_AGE_KEY_CMD` environment variable to an executable that returns Age keys * Add support for `oauth2.TokenSource` injection from key service clients in GCP KMS * Support `GOOGLE_OAUTH_ACCESS_TOKEN` for GCP KMS Improvements: * Dependency updates * Make sure that tests do not pick up `keys.txt` from user's `$HOME` dir * Consolidate passphrase reading functionality in Age code * Fix some problems reported by the `staticcheck` linter * Improve documentation of Shamir Secret Sharing code to ease maintenance * Make sure all files are properly formatted * `sops` now warns if it finds a `.sops.yml` file while searching for a `.sops.yaml` config file Bugfixes: * Add trailing newline at the end of JSON files * Check GnuPG decryption result for non-empty size. Certain older versions return an empty result with a successful return code when a AEAD cipher from a newer version was used * Fix caching of `Metadata.DataKey` * If `--filename-override` is specified, convert it to an absolute path same as regular filenames Deprecations: * The current behavior that `sops --version` always checks whether the current version is the latest is deprecated and will no longer be the default eventually. It is best to right now always specify `--disable-version-check` or `--check-for-updates` to `sops --version`, or alternatively set the environment variable `SOPS_DISABLE_VERSION_CHECK=true` to already get the planned default behavior today. ## 3.9.4 Improvements: * Dependency updates Bugfixes: * Prevent key deduplication to identify different AWS KMS keys that only differ by role, context, or profile * Update part of Azure SDK which prevented decryption in some cases
sops: Update to 3.9.3 Changes: 3.9.3 ----- Improvements: * Dependency updates * Add ``persist-credentials: false`` to checkouts in GitHub workflows Bugfixes: * GnuPG: do not incorrectly trim fingerprint in presence of exclamation marks for specific subkey selection 3.9.2 ----- Improvements: * Dependency updates * Update compiled Protobuf definitions * Remove unused variables and simplify conditional Bugfixes: * Handle whitespace in Azure Key Vault URLs * Correctly handle comments during JSON serialization 3.9.1 ----- Improvements: * Dependency updates * Clarify naming of the configuration file in the documentation * Build with Go 1.22 * Specify filename of missing file in error messages * ``updatekeys`` subcommand: show changes in ``shamir_threshold`` Bugfixes: * Fix the URL used for determining the latest SOPS version * ``updatekeys`` subcommand: actually use option ``--shamir-secret-sharing-threshold`` * Fix ``--config`` being ignored in subcommands by ``loadConfig`` * Allow ``edit`` subcommand to create files * Do not encrypt if a key group is empty, or there are no key groups * Do not ignore config errors when trying to parse a config file 3.9.0 ----- Features: * Add ``--mac-only-encrypted`` to compute MAC only over values which end up encrypted * Allow configuration of indentation for YAML and JSON stores * Introduce a ``--pristine`` flag to ``sops exec-env`` * Allow to pass multiple paths to ``sops updatekeys`` * Allow to override ``fileName`` with different value * Sort masterkeys according to ``--decryption-order`` * Add separate subcommands for encryption, decryption, rotating, editing, and setting values * Add ``filestatus`` command * Add command ``unset`` * Merge key for key groups and make keys unique * Support using comments to select parts to encrypt Deprecations: * Deprecate the ``--background`` option to ``exec-env`` and ``exec-file`` Improvements: * Warn/fail if the wrong number of arguments is provided * Warn if more than one command is used * Dependency updates * Build with Go 1.21 * Polish the ``sops help`` output a bit * Create a constant for the ``sops`` metadata key Bug fixes: * Respect ``aws_profile`` from keygroup config * Fix a bug where not having a config results in a panic * Consolidate Flatten/Unflatten pre/post processing * INI and DotEnv stores: ``shamir_threshold`` is an integer * Make check whether file contains invalid keys for encryption dependent on output store * Do not panic if ``updatekeys`` is used with a config that has no creation rules defined * ``exec-file``: if ``--filename`` is used, use the provided filename without random suffix * Do not use DotEnv store for ``exec-env``, but specialized environment serializing code * Decryption: do not fail if no matching ``creation_rule`` is present in config file
sops: Import sops-3.8.1 as security/sops sops is an editor of encrypted files that supports YAML, JSON, ENV, INI and BINARY formats and encrypts with AWS KMS, GCP KMS, Azure Key Vault, age, and PGP. Packaged in pkgsrc-wip by myself.