Skip to content

Add vault ttl caching

Compare
Choose a tag to compare
@adisunw adisunw released this 21 Jun 17:33
· 48 commits to master since this release
e10bfcb
  • Adds vault response caching in vault provider vault.py -- for supporting vault responses with a TTL (i.e. Snowflake password rotation). This is done via keeping an internal dictionary where keys are the vault key and values are time to expiry.

  • Gestalt no longer writes the interpolated value of the provider key. It instead keeps the value as is (ref+vault://) and if a key in the underlying gestalt dict starts with the Vault provider scheme, it will dispatch the request to the .get vault provider method (which could be cached).

  • Moves pytest fixtures into a dedicated conftest.py module.