ansible-collections / community.sops

Simple and flexible tool for managing secrets
https://galaxy.ansible.com/ui/repo/published/community/sops/
GNU General Public License v3.0
76 stars 22 forks source link

implement `sops decrypt --extract` for lookup plugin #200

Closed niuleh closed 2 months ago

niuleh commented 2 months ago

Motivation

We have large encrypted yaml files and would like to lookup only specific keys.

Changes description

Modified the Sops.decrypt function to accept an "extract" option.

github-actions[bot] commented 2 months ago

Docs Build 📝

Thank you for contribution!✨

This PR has been merged and the docs are now incorporated into main: https://ansible-collections.github.io/community.sops/branch/main

niuleh commented 2 months ago

Thanks for your contribution! Can you please add a changelog fragment? Thanks.

Also please remove unrelated changes (like line 153 in the lookup and line 94 in the module utils). Thanks.

@felixfontein Thanks for your review! Not sure if I've adequately addressed the changelog fragment. Also cluess about how to address the failing CI checks, is that about pep8 and pylint linters not liking my code?

felixfontein commented 2 months ago

@niuleh thanks a lot for your contribution!