open-vault/builtin/logical/nomad
Chris Hoffman a7ada08b3b
Core handling of TTLs (#4230)
* govet cleanup in token store

* adding general ttl handling to login requests

* consolidating TTL calculation to system view

* deprecate LeaseExtend

* deprecate LeaseExtend

* set the increment to the correct value

* move calculateTTL out of SystemView

* remove unused value

* add back clearing of lease id

* implement core ttl in some backends

* removing increment and issue time from lease options

* adding ttl tests, fixing some compile issue

* adding ttl tests

* fixing some explicit max TTL logic

* fixing up some tests

* removing unneeded test

* off by one errors...

* adding back some logic for bc

* adding period to return on renewal

* tweaking max ttl capping slightly

* use the appropriate precision for ttl calculation

* deprecate proto fields instead of delete

* addressing feedback

* moving TTL handling for backends to core

* mongo is a secret backend not auth

* adding estimated ttl for backends that also manage the expiration time

* set the estimate values before calling the renew request

* moving calculate TTL to framework, revert removal of increment and issue time from logical

* minor edits

* addressing feedback

* address more feedback
2018-04-03 12:20:20 -04:00
..
backend.go Add context to storage backends and wire it through a lot of places (#3817) 2018-01-19 01:44:44 -05:00
backend_test.go Core handling of TTLs (#4230) 2018-04-03 12:20:20 -04:00
path_config_access.go Add context to storage backends and wire it through a lot of places (#3817) 2018-01-19 01:44:44 -05:00
path_config_lease.go Add context to storage backends and wire it through a lot of places (#3817) 2018-01-19 01:44:44 -05:00
path_creds_create.go Core handling of TTLs (#4230) 2018-04-03 12:20:20 -04:00
path_roles.go Add context to storage backends and wire it through a lot of places (#3817) 2018-01-19 01:44:44 -05:00
secret_token.go Core handling of TTLs (#4230) 2018-04-03 12:20:20 -04:00