Add store_encrypted feature and unit tests to Ansible lookup password… #1
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.
Lookup PLUGIN
SUMMARY
This update introduces the 'store_encrypted' feature in the Ansible Lookup Password Plugin, enabling optional encrypted storage of generated passwords. This enhancement is designed to increase security and flexibility in password management within Ansible environments.
ISSUE TYPE
ADDITIONAL INFORMATION
The store_encrypted option, when set to True, allows the plugin to store passwords in an encrypted format, enhancing security for sensitive data. When set to False, passwords are stored in plain text. This feature is essential for scenarios requiring stringent security measures.
Comprehensive unit tests have been added to validate this new functionality. These tests ensure that the plugin behaves as expected for both True and False settings of store_encrypted, thereby maintaining reliability and stability.
This feature is particularly beneficial in environments where secure handling and storage of passwords are paramount, providing users with greater control over their security protocols.