-
Notifications
You must be signed in to change notification settings - Fork 15
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
Allow usage with write-only tokens #37
Comments
I agree this would be useful! Unfortunately the Ansible module needs information about the item before determining what to do next. For example, if you didn't provide an That said, I think checking for whether If we change the behavior to do a blind update when you provide an |
I think retaining existing behaviour when not providing
I think in the case where That means that you could use the presence of an The only other criteria to check in this instance is Error handling when an update or deletion of an |
Makes sense. 😄 Fortunately Connect supports We can ignore errors when
I'll work on a PR to address these ideas. I can't give you a date for when it will be released, but you'll be notified when it's ready :) |
Summary
Using the collection to store generated passwords for system root accounts, a read access token is required.
Use cases
When an automation tool is storing passwords for generated resources for administrators to use in the case of system failure (root passwords for bare metal systems for example), it would be nice to have a write only token so that those items are not at risk of compromise if the automation host is compromised.
Proposed solution
Perhaps just adding a module parameter that tells generic_item to not try to read, just blindly create.
Another potential solution is to create an added permission level that allows the searching of items ids, but not reading fields.
That's a larger task for the 1Password team.
edit: and another is allowing the passing of an item_id saved from a previous creation as a parameter, and have the module use that to do a blind update.
Is there a workaround to accomplish this today?
I'm changing line 329 of
generic_item.py
to:which works fine, but does have the side effect of creating new items, not changing existing ones.
The text was updated successfully, but these errors were encountered: