open-vault/vault
Jeff Mitchell 01702415c2 Ensure we don't use a token entry period of 0 in role comparisons.
When we added support for generating periodic tokens for root/sudo in
auth/token/create we used the token entry's period value to store the
shortest period found to eventually populate the TTL. The problem was
that we then assumed later that this value would be populated for
periodic tokens, when it wouldn't have been in the upgrade case.

Instead, use a temp var to store the proper value to use; populate
te.Period only if actually given; and check that it's not zero before
comparing against role value during renew.
2016-08-16 16:47:46 -04:00
..
acl.go Speling police 2016-05-15 09:58:36 -07:00
acl_test.go Added tests for disallowed_policies 2016-08-02 15:21:15 -04:00
audit.go fixing id in buildLogicalRequest 2016-07-26 15:50:37 -04:00
audit_test.go Request forwarding (#1721) 2016-08-15 09:42:42 -04:00
auth.go AppRole authentication backend 2016-07-26 09:32:41 -04:00
auth_test.go Request forwarding (#1721) 2016-08-15 09:42:42 -04:00
barrier.go
barrier_aes_gcm.go Added JSON Decode and Encode helpers. 2016-07-06 12:25:40 -04:00
barrier_aes_gcm_test.go Add a *log.Logger argument to physical.Factory 2016-04-25 20:10:32 -07:00
barrier_test.go
barrier_view.go
barrier_view_test.go
capabilities.go
capabilities_test.go
cluster.go Add local into handler path for forwarded requests 2016-08-16 11:46:37 -04:00
cluster_test.go Request forwarding (#1721) 2016-08-15 09:42:42 -04:00
core.go Provide base64 keys in addition to hex encoded. (#1734) 2016-08-15 16:01:15 -04:00
core_test.go Request forwarding (#1721) 2016-08-15 09:42:42 -04:00
dynamic_system_view.go Make a non-caching but still locking variant of transit for when caches are disabled 2016-05-02 22:36:44 -04:00
expiration.go Merge branch 'master-oss' into json-use-number 2016-07-15 19:21:55 -04:00
expiration_test.go Merge pull request #1607 from hashicorp/standardize-time 2016-07-13 10:19:23 -06:00
generate_root.go
generate_root_test.go
init.go Request forwarding (#1721) 2016-08-15 09:42:42 -04:00
init_test.go Add a *log.Logger argument to physical.Factory 2016-04-25 20:10:32 -07:00
keyring.go Added JSON Decode and Encode helpers. 2016-07-06 12:25:40 -04:00
keyring_test.go Remove Unix() invocations on 'time.Time' objects and removed conversion of time to UTC 2016-07-08 18:30:18 -04:00
logical_cubbyhole.go Added JSON Decode and Encode helpers. 2016-07-06 12:25:40 -04:00
logical_cubbyhole_test.go
logical_passthrough.go Merge branch 'master-oss' into json-use-number 2016-07-15 19:21:55 -04:00
logical_passthrough_test.go
logical_system.go Provide base64 keys in addition to hex encoded. (#1734) 2016-08-15 16:01:15 -04:00
logical_system_helpers.go Fix mount tune bounds checking 2016-05-12 07:22:00 -04:00
logical_system_test.go Minor test fix 2016-08-09 07:13:29 -04:00
mount.go Address review feedback from @jefferai 2016-08-09 10:47:55 -04:00
mount_test.go Request forwarding (#1721) 2016-08-15 09:42:42 -04:00
policy.go
policy_store.go Migrate default policy to a const 2016-08-08 18:33:31 -04:00
policy_store_test.go Add test for non-assignable policies 2016-07-25 16:00:18 -04:00
policy_test.go
rekey.go Added JSON Decode and Encode helpers. 2016-07-06 12:25:40 -04:00
rekey_test.go Request forwarding (#1721) 2016-08-15 09:42:42 -04:00
request_handling.go Merge pull request #1702 from hashicorp/renew-post-body 2016-08-08 20:01:25 -04:00
request_handling_test.go Fix broken test 2016-07-05 12:54:27 -04:00
rollback.go Ensure mount/auth tables are not nil when triggering rollback 2016-07-18 22:02:39 -04:00
rollback_test.go
router.go initial local commit 2016-07-23 21:46:28 -04:00
router_test.go Remove wrap specs from backend response 2016-05-19 03:06:09 +00:00
seal.go Change to keybase openpgp fork as it has important fixes 2016-08-11 08:31:43 -04:00
seal_test.go
seal_testing.go Fix some rekey testing expected seal type logic 2016-04-28 17:13:03 +00:00
testing.go Request forwarding (#1721) 2016-08-15 09:42:42 -04:00
token_store.go Ensure we don't use a token entry period of 0 in role comparisons. 2016-08-16 16:47:46 -04:00
token_store_test.go Ensure we don't use a token entry period of 0 in role comparisons. 2016-08-16 16:47:46 -04:00
util.go Add keyring zeroize function and add some more memzero calls in 2016-05-27 20:47:40 +00:00
util_test.go