Release KSM Ansible v1.5.0 - #982
Open
stas-schaller wants to merge 4 commits into
Open
Conversation
stas-schaller
force-pushed
the
release/integration/ansible/v1.5.0
branch
from
April 9, 2026 19:38
3764ddf to
a44f0da
Compare
- feat: add folder_uid parameter to keeper_create for subfolder record targeting (KSM-845) - fix: replace pickle with JSON cache serialization to eliminate unsafe deserialization path (KSM-1103) - ci: add paths filter to test.ansible.yml including sdk/python/core dependency
stas-schaller
force-pushed
the
release/integration/ansible/v1.5.0
branch
from
July 16, 2026 18:24
78e254e to
06df0d6
Compare
stas-schaller
marked this pull request as ready for review
July 16, 2026 18:27
* VM-1452: replace pickle cache serialization with JSON Remove insecure pickle.loads from the Ansible record cache path (CWE-502) and round-trip Record state via Fernet-encrypted JSON. * VM-1452: invalidate legacy cache and fall back to vault Ignore unusable pickle/invalid record caches without deserializing them, warn, and fetch from the vault so plays continue until keeper_cache_records rebuilds JSON. * VM-1452: avoid AnsibleError str() in cache fallback test Newer ansible-core can recurse in AnsibleError.__str__; assert on exception args instead so CI stays green. * docs(ansible): correct changelog version 1.4.1 -> 1.5.0
- Add KSM-845 changelog entry to both READMEs' 1.5.0 section, which only documented the VM-1452 cache fix - Add playbook-level test for keeper_create_subfolder.yml, exercising the actual YAML via AnsibleTestFramework rather than only the Python create_record() unit test, matching every other example playbook's coverage in this suite
helper FieldType.__init__ crashes with IndexError when a dict-typed
field (address, name, host, passkey, etc.) has value: [] -- the
server's normal representation of an unpopulated complex field.
keeper_create passed field values from playbook args directly to
Field(), so any playbook with an explicitly empty complex field
crashed with AnsibleError("Could not create record: list index out
of range"), giving no signal about which field caused the failure.
Fix: convert value: [] to None with "or None" before passing to
Field(). FieldType.__init__ treats None as "no value" and skips the
dict-field index that crashes on empty lists, so the field is created
as unpopulated rather than crashing. Applies to both standard fields
and custom_fields.
Root cause in the helper is tracked as KSM-1119. Cleanup comments
added at both Field() sites to flag the workaround for removal once
the helper ships the "if self.value:" guard in FieldType.__init__.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Release branch for Keeper Secrets Manager Ansible v1.5.0, adding subfolder record creation, replacing the unsafe cache serialization format, and fixing a crash in keeper_create on empty complex fields.
Changes
New Features
keeper_createnow accepts an optionalfolder_uidparameter to place new records in a subfolder within a shared folder, rather than always creating at the shared folder root.Bug Fixes
picklewith JSON for the record cache encrypt/decrypt path.pickle.loads()on attacker-influenced data (e.g. via AWX extra vars) is a known RCE vector; JSON is safe regardless of input source.keeper_createcrashed with "Could not create record: list index out of range" when a playbook supplied a dict-typed complex field (address, name, host, etc.) withvalue: []. Playbook values are now converted from[]to unpopulated before being passed to the helper, so the record is created with the field empty rather than crashing. Root cause in the helper library is tracked as KSM-1119.Maintenance
keeper-secrets-manager-core>=17.3.0,keeper-secrets-manager-helper>=1.1.2test.ansible.ymlCI workflow includingsdk/python/coredependencyBreaking Changes
None.
Related Issues