terraform-provider-grafana
terraform-provider-grafana copied to clipboard
[Feature Request]: Automatic token rotations via taint
Feature Request
Resources:
grafana_service_account_tokengrafana_cloud_access_policy_tokengrafana_cloud_stack_service_account_token
On these resources, it's possible to set a token expiration but it's up to the user to taint the resource and reapply it. For users that have automatic drift detection (and resolution), a way to automatically taint and reapply these resources would allow for rotation
I propose a rotation_time_before_expiration which will allow users to set an expiration and also a duration that will trigger a rotation if (current time - expiration timer) is lesser than that rotation time. For example, an expiration time of 30d and a rotation time of 7d means that the token will be rotated via taint after 23d (7d from expiration)