open-vault/vault
Jeff Mitchell 20320cd71e
Move location of quit channel closing in exp manager (#3638)
* Move location of quit channel closing in exp manager

If it happens after stopping timers any timers firing before all timers
are stopped will still run the revocation function. With plugin
auto-crash-recovery this could end up instantiating a plugin that could
then try to unwrap a token from a nil token store.

This also plumbs in core so that we can grab a read lock during the
operation and check standby/sealed status before running it (after
grabbing the lock).

* Use context instead of checking core values directly

* Use official Go context in a few key places
2017-12-01 17:08:38 -05:00
..
acl.go Add ability to require parameters in ACLs (#3510) 2017-11-02 07:18:49 -04:00
acl_test.go Add ability to require parameters in ACLs (#3510) 2017-11-02 07:18:49 -04:00
audit.go Debug level logging of socket audit backend config at startup (#3560) 2017-11-10 12:08:36 -05:00
audit_test.go Create and persist human-friendly-ish mount accessors (#2918) 2017-06-26 18:14:36 +01:00
audited_headers.go Delay salt initialization for audit backends 2017-05-23 20:36:20 -04:00
audited_headers_test.go Delay salt initialization for audit backends 2017-05-23 20:36:20 -04:00
auth.go Minor mount logic updates (#3553) 2017-11-07 20:30:02 -05:00
auth_test.go Sync over 2017-10-23 16:43:07 -04:00
barrier.go Port over some changes 2017-11-30 09:43:07 -05:00
barrier_access.go Sync over 2017-10-23 16:43:07 -04:00
barrier_aes_gcm.go Port over some changes 2017-11-30 09:43:07 -05:00
barrier_aes_gcm_test.go Migrate physical backends into separate packages (#3106) 2017-08-03 13:24:27 -04:00
barrier_test.go vault: adding ability to reload master key 2015-05-29 14:29:55 -07:00
barrier_view.go Sync over 2017-10-23 16:43:07 -04:00
barrier_view_test.go Adding interface methods to logical.Backend for parity (#2242) 2017-01-07 18:18:22 -05:00
capabilities.go Capabilities responds considering policies on entities and groups (#3522) 2017-11-03 11:20:10 -04:00
capabilities_test.go Capabilities responds considering policies on entities and groups (#3522) 2017-11-03 11:20:10 -04:00
cluster.go Properly format autogenerated clusteraddr 2017-10-25 14:43:05 -04:00
cluster_test.go Add option to set cluster TLS cipher suites. (#3228) 2017-08-30 16:28:23 -04:00
core.go Move location of quit channel closing in exp manager (#3638) 2017-12-01 17:08:38 -05:00
core_test.go Ensure revocation happens before seal/step-down since token store isn't (#3500) 2017-11-02 08:47:02 -05:00
cors.go Sync over 2017-10-23 16:03:36 -04:00
dynamic_system_view.go Sync over 2017-10-23 16:03:36 -04:00
expiration.go Move location of quit channel closing in exp manager (#3638) 2017-12-01 17:08:38 -05:00
expiration_test.go Adding latency injector option to -dev mode for storage operations (#3289) 2017-09-11 14:49:08 -04:00
generate_root.go generate token functions to share common names (#3576) 2017-11-13 15:44:26 -05:00
generate_root_test.go generate token functions to share common names (#3576) 2017-11-13 15:44:26 -05:00
identity_lookup.go Merge identity alias lookups into either entity or group lookup endpoints (#3538) 2017-11-09 01:29:19 -05:00
identity_lookup_test.go Merge identity alias lookups into either entity or group lookup endpoints (#3538) 2017-11-09 01:29:19 -05:00
identity_store.go External identity groups (#3447) 2017-11-02 16:05:48 -04:00
identity_store_aliases.go API refactoring and doc updates (#3577) 2017-11-13 20:59:42 -05:00
identity_store_aliases_test.go API refactoring and doc updates (#3577) 2017-11-13 20:59:42 -05:00
identity_store_entities.go API refactoring and doc updates (#3577) 2017-11-13 20:59:42 -05:00
identity_store_entities_test.go Return group memberships of entity during read (#3526) 2017-11-06 13:01:48 -05:00
identity_store_group_aliases.go API refactoring and doc updates (#3577) 2017-11-13 20:59:42 -05:00
identity_store_group_aliases_test.go External identity groups (#3447) 2017-11-02 16:05:48 -04:00
identity_store_groups.go API refactoring and doc updates (#3577) 2017-11-13 20:59:42 -05:00
identity_store_groups_test.go Return group memberships of entity during read (#3526) 2017-11-06 13:01:48 -05:00
identity_store_schema.go External identity groups (#3447) 2017-11-02 16:05:48 -04:00
identity_store_structs.go External identity groups (#3447) 2017-11-02 16:05:48 -04:00
identity_store_test.go Port over bits (#3575) 2017-11-13 15:31:32 -05:00
identity_store_upgrade.go API refactoring and doc updates (#3577) 2017-11-13 20:59:42 -05:00
identity_store_util.go converting identity metadata to use TypeKVPairs (#3549) 2017-11-08 14:51:40 -05:00
init.go Barrier unseal using recovery keys (#3541) 2017-11-07 15:15:39 -05:00
init_test.go Sync some seal testing stuff 2017-10-23 13:42:04 -04:00
keyring.go Added JSON Decode and Encode helpers. 2016-07-06 12:25:40 -04:00
keyring_test.go Fix keyring test 2017-01-24 12:58:14 -08:00
logical_cubbyhole.go Seal wrap requesting in logical.Request wrapinfo (#3559) 2017-11-09 10:32:49 -05:00
logical_cubbyhole_test.go Make cubbyhole local instead of replicated. (#2397) 2017-02-18 13:51:05 -05:00
logical_passthrough.go If kv entry is sealwrapped and is response-wrapped ensure it carries through 2017-11-10 12:56:31 -05:00
logical_passthrough_test.go Sync 2017-10-23 15:35:28 -04:00
logical_system.go Port over bits (#3575) 2017-11-13 15:31:32 -05:00
logical_system_helpers.go Sync 2017-10-23 15:35:28 -04:00
logical_system_integ_test.go Lazy-load plugin mounts (#3255) 2017-09-01 01:02:03 -04:00
logical_system_test.go Plumb more seal wrap stuff through and move to outside layer of mount options (#3572) 2017-11-13 11:22:22 -05:00
mount.go Plumb more seal wrap stuff through and move to outside layer of mount options (#3572) 2017-11-13 11:22:22 -05:00
mount_test.go Sync 2017-10-23 15:35:28 -04:00
plugin_catalog.go Lazy-load plugin mounts (#3255) 2017-09-01 01:02:03 -04:00
plugin_catalog_test.go Update the builtin keys; move catalog to core; protect against unset plugin directory 2017-04-24 10:30:33 -07:00
plugin_reload.go Add plugin backend reload capability (#3112) 2017-08-08 00:18:59 -04:00
policy.go Add ability to require parameters in ACLs (#3510) 2017-11-02 07:18:49 -04:00
policy_store.go Port over bits (#3575) 2017-11-13 15:31:32 -05:00
policy_store_test.go Sync 2017-10-23 14:59:37 -04:00
policy_test.go Add ability to require parameters in ACLs (#3510) 2017-11-02 07:18:49 -04:00
rekey.go Sync 2017-10-23 14:59:37 -04:00
rekey_test.go Sync 2017-10-23 14:59:37 -04:00
request_forwarding.go Move location of quit channel closing in exp manager (#3638) 2017-12-01 17:08:38 -05:00
request_forwarding_service.pb.go Update proto 2017-10-23 17:45:05 -04:00
request_forwarding_service.proto Sync 2017-10-23 14:59:37 -04:00
request_handling.go Port over bits (#3575) 2017-11-13 15:31:32 -05:00
request_handling_test.go Rename "generic" secret backend to "kv" (#3292) 2017-09-15 09:02:29 -04:00
rollback.go checking for nil backends before attempting to rollback on a backend (#2997) 2017-07-12 13:12:55 -07:00
rollback_test.go Fix swallowed errors in TestRollbackManager_Join() (#3327) 2017-11-06 14:34:27 -05:00
router.go Fix mount path for credential values in aliases (#3580) 2017-11-14 01:31:10 -05:00
router_access.go Sync 2017-10-23 15:35:28 -04:00
router_test.go More Mount Conflict Detection (#2919) 2017-11-06 15:29:09 -05:00
seal.go Update seal type names 2017-10-27 17:28:50 -04:00
seal_access.go Make compile 2017-10-23 17:15:56 -04:00
seal_test.go Split out TestSeal 2016-04-26 00:14:16 +00:00
seal_testing.go Sync some seal testing stuff 2017-10-23 13:42:04 -04:00
testing.go Port over some changes 2017-11-30 09:43:07 -05:00
token_store.go Port over bits (#3575) 2017-11-13 15:31:32 -05:00
token_store_test.go Use an atomic store in expiration loading test to fix race detector 2017-11-01 15:52:59 -04:00
util.go Removed unused methods 2017-01-03 12:51:35 -05:00
util_test.go Utility Enhancements 2016-04-05 20:32:59 -04:00
wrapping.go Port over bits (#3575) 2017-11-13 15:31:32 -05:00