Skip to content
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

Issue #391: fix idempotency issues with ttls in approle_role #459

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ahamilto-nodal
Copy link
Contributor

Take all TTL arguments to hashivault_approle_role in seconds as this is the unit that Vault/HVAC will return.

Take all TTL arguments to hashivault_approle_role in seconds as
this is the unit that Vault/HVAC will return.
@ahamilto-nodal
Copy link
Contributor Author

As discussed in #391 this change forces all TTLs to be specified in seconds as this is the value that the Vault API and HVAC return regardless of how the value was originally specified. Any playbooks using "friendly" values will need to be converted to seconds.

token_max_ttl:
description:
- Duration after which the issued token can no longer be renewed.
- Duration after which the issued token can no longer be renewed, in seconds.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was some code I thought to convert times to an idempotent value. I'm not sure if that would help here. This is a change to the API which would trigger a new major release since it is breaking.

@ahamilto-nodal
Copy link
Contributor Author

ahamilto-nodal commented Jan 23, 2024 via email

@TerryHowe
Copy link
Owner

This is a breaking change since current support allows different time formats.

Copy link
Owner

@TerryHowe TerryHowe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pr https://github.com/TerryHowe/ansible-modules-hashivault/pull/484/files move the parse method to a common area which is better than changing the interface

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants