-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unify terms and UI between 1Password lookups and facts module #45427
Conversation
- Use the same names for all credential aspects - Only require the minimal amount of information for each - Add more examples
- use terms in line with 1Password documentation. - update examples - update tests
- use same methods and logic for signing in or reusing existing session - unify terms with lookup plugins
The test
The test
The test
The test
The test
The test
|
Quick question about error messages @samdoran in the module docs I added recommendation for using the module with Can you think of a better way to protect from accidentally logging secrets, whilst allowing error messages to come through? |
An rc other than 1 can be returned when a current login session does not exist.
ansible.errors is not available to modules, so create an AnsibleModuleError class within the module Do not user os.path.expanduser since this is already done by virtue of the type being "path" in the argument spec.
Unfortunately, no. We don't currently have a mechanism for marking facts as sensitive/ We should probably add documentation that these items are set as Ansible facts, which are subject to caching. |
But normally the returned data is not logged to the console, so running without |
@Rylon Have you had a chance to look this over? What do you think? |
Hi @samdoran I just had a look through now, and it all looks good to me! One additional thing I just thought of though, I notice you removed the 1Password CLI version from the docs (v0.5.1) and I remembered I had added that there to give users a clue which version we had tested with. Perhaps we can do something better here. This would be just in case the CLI 'signature' changes substantially between versions and we're unable to parse it properly. Otherwise, looks good to me! |
@Rylon Thank you for the feedback. I did remove the version number from the docs since those things don't age well. But it's probably a good idea to leave it in there. I'll put it back. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, looks good!
SUMMARY
Unify the terms and interface used for logging in to 1Password between the facts module and lookup plugins.
ISSUE TYPE
COMPONENT NAME
onepassword.py
onepassword_raw.py
onepassword_facts.py
ANSIBLE VERSION