Debian Codegraph @

ansible_collections/community/sops/CHANGELOG.rst

raw
1 ============================
2 Community SOPS Release Notes
3 ============================
4
5 .. contents:: Topics
6
7 v2.3.0
8 ======
9
10 Release Summary
11 ---------------
12
13 Feature release.
14
15 The main new feature of this release is ansible-core 2.21 support for ``community.sops.load_vars``.
16 ansible-core 2.21 is the first version to explicitly allow action plugins to set variables,
17 which finally allows ``community.sops.load_vars`` to set variables the same way as
18 ``ansible.builtin.include_vars``.
19
20 Minor Changes
21 -------------
22
23 - all modules and plugins - allow retrieving private age keys and private SSH keys through commands with the new ``age_key_cmd`` and ``age_ssh_private_key_cmd`` options (https://github.com/ansible-collections/community.sops/issues/282, https://github.com/ansible-collections/community.sops/pull/286).
24 - all modules and plugins - allow to configure GCP access with the ``gcp_oauth_access_token`` and ``gcp_kms_client_type`` options (https://github.com/ansible-collections/community.sops/issues/282, https://github.com/ansible-collections/community.sops/pull/286).
25 - load_vars - now supports ansible-core 2.21's way of actually loading variables, instead of returning ``ansible_facts``. The behavior for this can be controlled through the new ``return_method`` option, which is by default set to ``auto``. On ansible-core 2.21+, ``auto`` behaves the same as ``vars-only`` (return proper variables), and for ansible-core before 2.21 the same as ``facts-only`` (return ``ansible_facts``) (https://github.com/ansible-collections/community.sops/pull/283).
26 - sops_encrypt - support providing HuaweiCloud KMS key IDs with the ``huawei_cloud_kms`` option (https://github.com/ansible-collections/community.sops/issues/282, https://github.com/ansible-collections/community.sops/pull/286).
27
28 v2.2.7
29 ======
30
31 Release Summary
32 ---------------
33
34 Maintenance release.
35
36 Known Issues
37 ------------
38
39 - When using the ``community.sops.load_vars`` with ansible-core 2.20, note that the deprecation of ``INJECT_FACTS_AS_VARS`` causes deprecation warnings to be shown every time a variable loaded with ``community.sops.load_vars`` is used. This is due to ansible-core deprecating ``INJECT_FACTS_AS_VARS`` without providing an alternative for modules like ``community.sops.load_vars`` to use. If you do not like these deprecation warnings, you have to explicitly set ``INJECT_FACTS_AS_VARS`` to ``true``. **DO NOT** change the use of SOPS encrypted variables to ``ansible_facts``. The situation will hopefully improve in ansible-core 2.21 through the promised API that allows action plugins to set variables; community.sops will adapt to use it, which will make the warning go away. (The API was originally promised for ansible-core 2.20, but then delayed.)
40
41 v2.2.6
42 ======
43
44 Release Summary
45 ---------------
46
47 Bugfix and maintenance release.
48
49 Bugfixes
50 --------
51
52 - Clean up plugin code that does not run on the target (https://github.com/ansible-collections/community.sops/pull/275).
53 - Note that the MIT licenced code in ``plugins/module_utils/_six.py`` has been removed (https://github.com/ansible-collections/community.sops/pull/275).
54 - sops vars plugin - ensure that loaded vars are evaluated also with ansible-core 2.19+ (https://github.com/ansible-collections/community.sops/pull/273).
55
56 v2.2.5
57 ======
58
59 Release Summary
60 ---------------
61
62 Maintenance release.
63
64 Bugfixes
65 --------
66
67 - load_vars action - avoid another deprecated module utils from ansible-core (https://github.com/ansible-collections/community.sops/pull/270).
68 - load_vars action - avoid deprecated import from ansible-core that will be removed in ansible-core 2.21 (https://github.com/ansible-collections/community.sops/pull/272).
69
70 v2.2.4
71 ======
72
73 Release Summary
74 ---------------
75
76 Maintenance release.
77
78 Bugfixes
79 --------
80
81 - Fix accidental type extensions (https://github.com/ansible-collections/community.sops/pull/269).
82
83 v2.2.3
84 ======
85
86 Release Summary
87 ---------------
88
89 Maintenance release.
90
91 Minor Changes
92 -------------
93
94 - Note that some new code in ``plugins/module_utils/_six.py`` is MIT licensed (https://github.com/ansible-collections/community.sops/pull/268).
95
96 Bugfixes
97 --------
98
99 - Avoid using ``ansible.module_utils.six`` to avoid deprecation warnings with ansible-core 2.20 (https://github.com/ansible-collections/community.sops/pull/268).
100
101 v2.2.2
102 ======
103
104 Release Summary
105 ---------------
106
107 Bugfix release.
108
109 Bugfixes
110 --------
111
112 - Avoid deprecated functionality in ansible-core 2.20 (https://github.com/ansible-collections/community.sops/pull/260).
113 - all modules and plugins - the default of ``enable_local_keyservice`` changed from ``false`` to ``true``, and explicitly setting it to ``false`` now passes ``--enable-local-keyservice=false``. SOPS' default has always been ``true``, and when setting this option to ``true`` so far it resulted in passing ``--enable-local-keyservice``, which is equivalent to ``--enable-local-keyservice=true`` and had no effect. This means that from now on, setting ``enable_local_keyservice`` explicitly to ``false`` has an effect. If ``enable_local_keyservice`` was not set before, or was set to ``true``, nothing will change (https://github.com/ansible-collections/community.sops/issues/261, https://github.com/ansible-collections/community.sops/pull/262).
114
115 v2.2.1
116 ======
117
118 Release Summary
119 ---------------
120
121 Bugfix release.
122
123 Bugfixes
124 --------
125
126 - install role - avoid deprecated parameter value for the ``ansible.builtin.uri`` module (https://github.com/ansible-collections/community.sops/pull/255).
127
128 v2.2.0
129 ======
130
131 Release Summary
132 ---------------
133
134 Feature release.
135
136 Minor Changes
137 -------------
138
139 - load_vars - expressions can now be lazily evaluated when using ansible-core 2.19 or newer (https://github.com/ansible-collections/community.sops/pull/229).
140
141 v2.1.0
142 ======
143
144 Release Summary
145 ---------------
146
147 Feature release.
148
149 Minor Changes
150 -------------
151
152 - Now supports specifying SSH private keys for age with the new ``age_ssh_private_keyfile`` option (https://github.com/ansible-collections/community.sops/pull/241).
153
154 v2.0.5
155 ======
156
157 Release Summary
158 ---------------
159
160 Maintenance release with updated SOPS version test coverage.
161
162 v2.0.4
163 ======
164
165 Release Summary
166 ---------------
167
168 Maintenance release with Data Tagging support.
169
170 Bugfixes
171 --------
172
173 - load_vars - make evaluation compatible with Data Tagging in upcoming ansible-core release (https://github.com/ansible-collections/community.sops/pull/225).
174
175 v2.0.3
176 ======
177
178 Release Summary
179 ---------------
180
181 Bugfix release.
182
183 Bugfixes
184 --------
185
186 - install role - ``sops_install_on_localhost=false`` was not working properly if the role was running on more than one host due to a bug in ansible-core (https://github.com/ansible-collections/community.sops/issues/223, https://github.com/ansible-collections/community.sops/pull/224).
187
188 v2.0.2
189 ======
190
191 Release Summary
192 ---------------
193
194 Bugfix release.
195
196 Bugfixes
197 --------
198
199 - install role - when used with Debian on ARM architecture, the architecture name is now correctly translated from ``aarch64`` to ``arm64`` (https://github.com/ansible-collections/community.sops/issues/220, https://github.com/ansible-collections/community.sops/pull/221).
200
201 v2.0.1
202 ======
203
204 Release Summary
205 ---------------
206
207 Maintenance release with updated documentation.
208
209 v2.0.0
210 ======
211
212 Release Summary
213 ---------------
214
215 Major verison that drops support for End of Life Ansible/ansible-base/ansible-core versions.
216
217 Removed Features (previously deprecated)
218 ----------------------------------------
219
220 - The collection no longer supports Ansible 2.9, ansible-base 2.10, ansible-core 2.11, ansible-core 2.12, ansible-core 2.13, and ansible-core 2.14. If you need to continue using End of Life versions of Ansible/ansible-base/ansible-core, please use community.sops 1.x.y (https://github.com/ansible-collections/community.sops/pull/206).
221
222 v1.9.1
223 ======
224
225 Release Summary
226 ---------------
227
228 Bugfix release.
229
230 Bugfixes
231 --------
232
233 - sops_encrypt - pass absolute paths to ``module.atomic_move()`` (https://github.com/ansible/ansible/issues/83950, https://github.com/ansible-collections/community.sops/pull/208).
234
235 v1.9.0
236 ======
237
238 Release Summary
239 ---------------
240
241 Feature release.
242
243 Minor Changes
244 -------------
245
246 - decrypt filter plugin - now supports the input and output type ``ini`` (https://github.com/ansible-collections/community.sops/pull/204).
247 - sops lookup plugin - new option ``extract`` allows extracting a single key out of a JSON or YAML file, equivalent to sops' ``decrypt --extract`` (https://github.com/ansible-collections/community.sops/pull/200).
248 - sops lookup plugin - now supports the input and output type ``ini`` (https://github.com/ansible-collections/community.sops/pull/204).
249
250 v1.8.2
251 ======
252
253 Release Summary
254 ---------------
255
256 Maintenance release with updated documentation and changelog.
257
258 Deprecated Features
259 -------------------
260
261 - The collection deprecates support for all Ansible/ansible-base/ansible-core versions that are currently End of Life, `according to the ansible-core support matrix <https://docs.ansible.com/ansible-core/devel/reference_appendices/release_and_maintenance.html#ansible-core-support-matrix>`__. This means that the next major release of the collection will no longer support Ansible 2.9, ansible-base 2.10, ansible-core 2.11, ansible-core 2.12, ansible-core 2.13, and ansible-core 2.14.
262
263 v1.8.1
264 ======
265
266 Release Summary
267 ---------------
268
269 Bugfix release.
270
271 Bugfixes
272 --------
273
274 - Pass ``config_path`` on SOPS 3.9.0 before the subcommand instead of after it (https://github.com/ansible-collections/community.sops/issues/195, https://github.com/ansible-collections/community.sops/pull/197).
275
276 v1.8.0
277 ======
278
279 Release Summary
280 ---------------
281
282 Feature release for supporting improvements coming with SOPS 3.9.0.
283
284 Minor Changes
285 -------------
286
287 - Detect SOPS 3.9.0 and use new ``decrypt`` and ``encrypt`` subcommands (https://github.com/ansible-collections/community.sops/pull/190).
288 - sops vars plugin - new option ``handle_unencrypted_files`` allows to control behavior when encountering unencrypted files with SOPS 3.9.0+ (https://github.com/ansible-collections/community.sops/pull/190).
289
290 Bugfixes
291 --------
292
293 - sops_encrypt - properly support ``path_regex`` in ``.sops.yaml`` when SOPS 3.9.0 or later is used (https://github.com/ansible-collections/community.sops/issues/153, https://github.com/ansible-collections/community.sops/pull/190).
294
295 v1.7.0
296 ======
297
298 Release Summary
299 ---------------
300
301 Bugfix and feature release to fix installation issues with SOPS 3.9.0.
302
303 Minor Changes
304 -------------
305
306 - sops vars plugin - allow to configure the valid extensions with an ``ansible.cfg`` entry or with an environment variable (https://github.com/ansible-collections/community.sops/pull/185).
307
308 Bugfixes
309 --------
310
311 - Fix RPM URL for the 3.9.0 release (https://github.com/ansible-collections/community.sops/pull/188).
312
313 v1.6.7
314 ======
315
316 Release Summary
317 ---------------
318
319 Bugfix release.
320
321 Bugfixes
322 --------
323
324 - sops_encrypt - ensure that output-type is set to ``yaml`` when the file extension ``.yml`` is used. Now both ``.yaml`` and ``.yml`` files use the SOPS ``--output-type=yaml`` formatting (https://github.com/ansible-collections/community.sops/issues/164).
325
326 v1.6.6
327 ======
328
329 Release Summary
330 ---------------
331
332 Make fully compatible with and test against sops 3.8.0.
333
334 Bugfixes
335 --------
336
337 - Fix RPM URL for the 3.8.0 release (https://github.com/ansible-collections/community.sops/pull/161).
338
339 v1.6.5
340 ======
341
342 Release Summary
343 ---------------
344
345 Make compatible with and test against sops 3.8.0-rc.1.
346
347 Bugfixes
348 --------
349
350 - Avoid pre-releases when picking the latest version when using the GitHub API method (https://github.com/ansible-collections/community.sops/pull/159).
351 - Fix changed DEB and RPM URLs for 3.8.0 and its prerelease(s) (https://github.com/ansible-collections/community.sops/pull/159).
352
353 v1.6.4
354 ======
355
356 Release Summary
357 ---------------
358
359 Maintenance/bugfix release for the move of sops to the new `getsops GitHub organization <https://github.com/getsops>`__.
360
361 Bugfixes
362 --------
363
364 - install role - fix ``sops_github_latest_detection=latest-release``, which broke due to sops moving to another GitHub organization (https://github.com/ansible-collections/community.sops/pull/151).
365
366 v1.6.3
367 ======
368
369 Release Summary
370 ---------------
371
372 Maintenance release with updated documentation.
373
374 From this version on, community.sops is using the new `Ansible semantic markup
375 <https://docs.ansible.com/ansible/devel/dev_guide/developing_modules_documenting.html#semantic-markup-within-module-documentation>`__
376 in its documentation. If you look at documentation with the ansible-doc CLI tool
377 from ansible-core before 2.15, please note that it does not render the markup
378 correctly. You should be still able to read it in most cases, but you need
379 ansible-core 2.15 or later to see it as it is intended. Alternatively you can
380 look at `the devel docsite <https://docs.ansible.com/ansible/devel/collections/community/sops/>`__
381 for the rendered HTML version of the documentation of the latest release.
382
383 Known Issues
384 ------------
385
386 - Ansible markup will show up in raw form on ansible-doc text output for ansible-core before 2.15. If you have trouble deciphering the documentation markup, please upgrade to ansible-core 2.15 (or newer), or read the HTML documentation on https://docs.ansible.com/ansible/devel/collections/community/sops/.
387
388 v1.6.2
389 ======
390
391 Release Summary
392 ---------------
393
394 Maintenance release.
395
396 Bugfixes
397 --------
398
399 - install role - make sure that the ``pkg_mgr`` fact is definitely available when installing on ``localhost``. This can improve error messages in some cases (https://github.com/ansible-collections/community.sops/issues/145, https://github.com/ansible-collections/community.sops/pull/146).
400
401 v1.6.1
402 ======
403
404 Release Summary
405 ---------------
406
407 Maintenance release.
408
409 Bugfixes
410 --------
411
412 - action plugin helper - fix handling of deprecations for ansible-core 2.14.2 (https://github.com/ansible-collections/community.sops/pull/136).
413 - various plugins - remove unnecessary imports (https://github.com/ansible-collections/community.sops/pull/133).
414
415 v1.6.0
416 ======
417
418 Release Summary
419 ---------------
420
421 Feature release improving the installation role.
422
423 Minor Changes
424 -------------
425
426 - install role - add ``sops_github_latest_detection`` option that allows to configure which method to use for detecting the latest release on GitHub. By default (``auto``) first tries to retrieve a list of recent releases using the API, and if that fails due to rate limiting, tries to obtain the latest GitHub release from a semi-documented URL (https://github.com/ansible-collections/community.sops/pull/133).
427 - install role - add ``sops_github_token`` option to allow passing a GitHub token. This can for example be used to avoid rate limits when using the role in GitHub Actions (https://github.com/ansible-collections/community.sops/pull/132).
428 - install role - implement another method to determine the latest release on GitHub than using the GitHub API, which can make installation fail due to rate-limiting (https://github.com/ansible-collections/community.sops/pull/131).
429
430 v1.5.0
431 ======
432
433 Release Summary
434 ---------------
435
436 Feature release.
437
438 Minor Changes
439 -------------
440
441 - Automatically install GNU Privacy Guard (GPG) in execution environments. To install Mozilla sops a manual step needs to be added to the EE definition, see the collection's documentation for details (https://github.com/ansible-collections/community.sops/pull/98).
442
443 New Playbooks
444 -------------
445
446 - community.sops.install - Installs sops and GNU Privacy Guard on all remote hosts
447 - community.sops.install_localhost - Installs sops and GNU Privacy Guard on localhost
448
449 New Roles
450 ---------
451
452 - community.sops.install - Install Mozilla sops
453
454 v1.4.1
455 ======
456
457 Release Summary
458 ---------------
459
460 Maintenance release to improve compatibility with future ansible-core releases.
461
462 Bugfixes
463 --------
464
465 - load_vars - ensure compatibility with newer versions of ansible-core (https://github.com/ansible-collections/community.sops/pull/121).
466
467 v1.4.0
468 ======
469
470 Release Summary
471 ---------------
472
473 Feature release.
474
475 Minor Changes
476 -------------
477
478 - Allow to specify age keys as ``age_key``, or age keyfiles as ``age_keyfile`` (https://github.com/ansible-collections/community.sops/issues/116, https://github.com/ansible-collections/community.sops/pull/117).
479 - sops_encrypt - allow to specify age recipients (https://github.com/ansible-collections/community.sops/issues/116, https://github.com/ansible-collections/community.sops/pull/117).
480
481 v1.3.0
482 ======
483
484 Release Summary
485 ---------------
486
487 Feature release.
488
489 Minor Changes
490 -------------
491
492 - All software licenses are now in the ``LICENSES/`` directory of the collection root, and the collection repository conforms to the `REUSE specification <https://reuse.software/spec/>`__ except for the changelog fragments (https://github.com/ansible-collections/community.crypto/sops/108, https://github.com/ansible-collections/community.sops/pull/113).
493 - sops vars plugin - added a configuration option to temporarily disable the vars plugin (https://github.com/ansible-collections/community.sops/pull/114).
494
495 v1.2.3
496 ======
497
498 Release Summary
499 ---------------
500
501 Fix formatting bug in documentation. No code changes.
502
503 v1.2.2
504 ======
505
506 Release Summary
507 ---------------
508
509 Maintenance release.
510
511 Bugfixes
512 --------
513
514 - Include ``simplified_bsd.txt`` license file for the ``sops`` module utils.
515
516 v1.2.1
517 ======
518
519 Release Summary
520 ---------------
521
522 Maintenance release with updated documentation.
523
524 v1.2.0
525 ======
526
527 Release Summary
528 ---------------
529
530 Collection release for inclusion in Ansible 4.9.0 and 5.1.0.
531
532 This release contains a change allowing to configure generic plugin options with ansible.cfg keys and env variables.
533
534 Minor Changes
535 -------------
536
537 - sops lookup and vars plugin - allow to configure almost all generic options by ansible.cfg entries and environment variables (https://github.com/ansible-collections/community.sops/pull/81).
538
539 Bugfixes
540 --------
541
542 - Fix error handling in calls of the ``sops`` binary when negative errors are returned (https://github.com/ansible-collections/community.sops/issues/82, https://github.com/ansible-collections/community.sops/pull/83).
543
544 v1.1.0
545 ======
546
547 Release Summary
548 ---------------
549
550 A minor release for inclusion in Ansible 4.2.0.
551
552 Minor Changes
553 -------------
554
555 - Avoid internal ansible-core module_utils in favor of equivalent public API available since at least Ansible 2.9 (https://github.com/ansible-collections/community.sops/pull/73).
556
557 New Plugins
558 -----------
559
560 Filter
561 ~~~~~~
562
563 - community.sops.decrypt - Decrypt sops-encrypted data
564
565 v1.0.6
566 ======
567
568 Release Summary
569 ---------------
570
571 This release makes the collection compatible to the latest beta release of ansible-core 2.11.
572
573 Bugfixes
574 --------
575
576 - action_module plugin helper - make compatible with latest changes in ansible-core 2.11.0b3 (https://github.com/ansible-collections/community.sops/pull/58).
577 - community.sops.load_vars - make compatible with latest changes in ansible-core 2.11.0b3 (https://github.com/ansible-collections/community.sops/pull/58).
578
579 v1.0.5
580 ======
581
582 Release Summary
583 ---------------
584
585 This release fixes a bug that prevented correct YAML file to be created when the output was ending in ``.yaml``.
586
587 Bugfixes
588 --------
589
590 - community.sops.sops_encrypt - use output type ``yaml`` when path ends with ``.yaml`` (https://github.com/ansible-collections/community.sops/pull/56).
591
592 v1.0.4
593 ======
594
595 Release Summary
596 ---------------
597
598 This is a security release, fixing a potential information leak in the ``community.sops.sops_encrypt`` module.
599
600 Security Fixes
601 --------------
602
603 - community.sops.sops_encrypt - mark the ``aws_secret_access_key`` and ``aws_session_token`` parameters as ``no_log`` to avoid leakage of secrets (https://github.com/ansible-collections/community.sops/pull/54).
604
605 v1.0.3
606 ======
607
608 Release Summary
609 ---------------
610
611 This release include some fixes to Ansible docs and required changes for inclusion in Ansible.
612
613 Bugfixes
614 --------
615
616 - community.sops.sops lookup plugins - fix wrong format of Ansible variables so that these are actually used (https://github.com/ansible-collections/community.sops/pull/51).
617 - community.sops.sops vars plugins - remove non-working Ansible variables (https://github.com/ansible-collections/community.sops/pull/51).
618
619 v1.0.2
620 ======
621
622 Release Summary
623 ---------------
624
625 Fix of 1.0.1 release which had no changelog entry.
626
627 v1.0.1
628 ======
629
630 Release Summary
631 ---------------
632
633 Re-release of 1.0.0 to counteract error during release.
634
635 v1.0.0
636 ======
637
638 Release Summary
639 ---------------
640
641 First stable release. This release is expected to be included in Ansible 3.0.0.
642
643 Minor Changes
644 -------------
645
646 - All plugins and modules: allow to pass generic sops options with new options ``config_path``, ``enable_local_keyservice``, ``keyservice``. Also allow to pass AWS parameters with options ``aws_profile``, ``aws_access_key_id``, ``aws_secret_access_key``, and ``aws_session_token`` (https://github.com/ansible-collections/community.sops/pull/47).
647 - community.sops.sops_encrypt - allow to pass encryption-specific options ``kms``, ``gcp_kms``, ``azure_kv``, ``hc_vault_transit``, ``pgp``, ``unencrypted_suffix``, ``encrypted_suffix``, ``unencrypted_regex``, ``encrypted_regex``, ``encryption_context``, and ``shamir_secret_sharing_threshold`` to sops (https://github.com/ansible-collections/community.sops/pull/47).
648
649 v0.2.0
650 ======
651
652 Release Summary
653 ---------------
654
655 This release adds features for the lookup and vars plugins.
656
657 Minor Changes
658 -------------
659
660 - community.sops.sops lookup plugin - add ``empty_on_not_exist`` option which allows to return an empty string instead of an error when the file does not exist (https://github.com/ansible-collections/community.sops/pull/33).
661 - community.sops.sops vars plugin - add option to control caching (https://github.com/ansible-collections/community.sops/pull/32).
662 - community.sops.sops vars plugin - add option to determine when vars are loaded (https://github.com/ansible-collections/community.sops/pull/32).
663
664 v0.1.0
665 ======
666
667 Release Summary
668 ---------------
669
670 First release of the ``community.sops`` collection!
671 This release includes multiple plugins: an ``action`` plugin, a ``lookup`` plugin and a ``vars`` plugin.
672
673 New Plugins
674 -----------
675
676 Lookup
677 ~~~~~~
678
679 - community.sops.sops - Read sops encrypted file contents
680
681 Vars
682 ~~~~
683
684 - community.sops.sops - Loading sops-encrypted vars files
685
686 New Modules
687 -----------
688
689 - community.sops.load_vars - Load sops-encrypted variables from files, dynamically within a task
690 - community.sops.sops_encrypt - Encrypt data with sops