Venafi / vault-pki-monitor-venafi

Venafi PKI Monitoring Secrets Engine for HashiCorp Vault that enforces security policy and provides certificate visiblity to the enterprise.
Mozilla Public License 2.0
19 stars 9 forks source link

Fix issue 58: Import queue does not react properly when token expires #59

Closed angelmoo closed 3 years ago

angelmoo commented 3 years ago

This changes fix the issue described on: https://github.com/Venafi/vault-pki-monitor-venafi/issues/58 changes some properties to be pointers so they can have one only reference and in this way keep the value that is being set to that variable. make the method that updates the access token and refresh token, synchronized, so when token expires just one worker can update the access and refresh token.