open-vault/vault
Jeff Mitchell 9687ccc8fa Tackle #4929 a different way (#4932)
* Tackle #4929 a different way

This turns c.sealed into an atomic, which allows us to call sealInternal
without a lock. By doing so we can better control lock grabbing when a
condition causing the standby loop to get out of active happens. This
encapsulates that logic into two distinct pieces (although they could
be combined into one), and makes lock guarding more understandable.

* Re-add context canceling to the non-HA version of sealInternal

* Return explicitly after stopCh triggered
2018-07-24 13:57:25 -07:00
..
acl.go Move TokenEntry into logical. (#4729) 2018-06-08 17:24:27 -04:00
acl_test.go
audit.go Defer setting views read/write until the end of postUnseal (#4392) 2018-04-19 13:29:43 -04:00
audit_broker.go Errwrap everywhere (#4252) 2018-04-05 11:49:21 -04:00
audit_test.go
audited_headers.go Errwrap everywhere (#4252) 2018-04-05 11:49:21 -04:00
audited_headers_test.go
auth.go Make single-lease revocation behave like expiration (#4883) 2018-07-11 15:45:35 -04:00
auth_test.go Port some ent mount changes (#4330) 2018-04-11 14:32:55 -04:00
barrier.go
barrier_access.go
barrier_aes_gcm.go Revert some of commit 050ab805a7565c5b0cadb0176023031ee5f0d17b. (#4768) 2018-06-14 13:44:13 -04:00
barrier_aes_gcm_test.go
barrier_test.go
barrier_view.go Check for nil value in BarrierView.Put (#4804) 2018-06-20 09:32:06 -04:00
barrier_view_test.go
capabilities.go disallow token use if entity is invalid (#4791) 2018-06-19 12:57:19 -04:00
capabilities_test.go Move TokenEntry into logical. (#4729) 2018-06-08 17:24:27 -04:00
cluster.go Errwrap everywhere (#4252) 2018-04-05 11:49:21 -04:00
cluster_test.go Tackle #4929 a different way (#4932) 2018-07-24 13:57:25 -07:00
core.go Tackle #4929 a different way (#4932) 2018-07-24 13:57:25 -07:00
core_test.go Tackle #4929 a different way (#4932) 2018-07-24 13:57:25 -07:00
cors.go Fix nil pointer 2018-06-09 16:57:57 -04:00
dynamic_system_view.go Pass identity metadata through to plugins (#4967) 2018-07-23 12:45:06 -04:00
expiration.go Properly watch quit context in expireID instead of locking first (#4970) 2018-07-20 17:00:09 -04:00
expiration_integ_test.go
expiration_test.go Fix tests 2018-07-12 10:18:50 -04:00
generate_root.go Tackle #4929 a different way (#4932) 2018-07-24 13:57:25 -07:00
generate_root_test.go
ha.go Tackle #4929 a different way (#4932) 2018-07-24 13:57:25 -07:00
identity_lookup.go
identity_lookup_test.go
identity_store.go Identity: Remove unused MemDB indexes and unused functions (#4817) 2018-06-24 07:45:53 -04:00
identity_store_aliases.go Identity: Remove unused MemDB indexes and unused functions (#4817) 2018-06-24 07:45:53 -04:00
identity_store_aliases_ext_test.go Add key information to list endpoints in identity. (#4634) 2018-05-25 14:34:24 -04:00
identity_store_aliases_test.go Identity: Remove unused MemDB indexes and unused functions (#4817) 2018-06-24 07:45:53 -04:00
identity_store_entities.go Identity: Remove unused MemDB indexes and unused functions (#4817) 2018-06-24 07:45:53 -04:00
identity_store_entities_ext_test.go Changes the way policies are reported in audit logs (#4747) 2018-06-14 09:49:33 -04:00
identity_store_entities_test.go Tackle #4929 a different way (#4932) 2018-07-24 13:57:25 -07:00
identity_store_ext_test.go Identity: Remove unused MemDB indexes and unused functions (#4817) 2018-06-24 07:45:53 -04:00
identity_store_group_aliases.go Identity: Remove unused MemDB indexes and unused functions (#4817) 2018-06-24 07:45:53 -04:00
identity_store_group_aliases_ext_test.go disable identity for local mounts (#4407) 2018-04-23 13:46:14 -04:00
identity_store_group_aliases_test.go Identity: Remove unused MemDB indexes and unused functions (#4817) 2018-06-24 07:45:53 -04:00
identity_store_groups.go Identity: Remove unused MemDB indexes and unused functions (#4817) 2018-06-24 07:45:53 -04:00
identity_store_groups_ext_test.go Add key information to list endpoints in identity. (#4634) 2018-05-25 14:34:24 -04:00
identity_store_groups_test.go Identity: Remove unused MemDB indexes and unused functions (#4817) 2018-06-24 07:45:53 -04:00
identity_store_schema.go Identity: Remove unused MemDB indexes and unused functions (#4817) 2018-06-24 07:45:53 -04:00
identity_store_structs.go
identity_store_test.go disallow token use if entity is invalid (#4791) 2018-06-19 12:57:19 -04:00
identity_store_upgrade.go
identity_store_util.go avoid panic (#4841) 2018-06-27 10:16:12 -04:00
init.go Tackle #4929 a different way (#4932) 2018-07-24 13:57:25 -07:00
init_test.go
keyring.go Errwrap everywhere (#4252) 2018-04-05 11:49:21 -04:00
keyring_test.go
logical_cubbyhole.go Errwrap everywhere (#4252) 2018-04-05 11:49:21 -04:00
logical_cubbyhole_test.go
logical_passthrough.go Errwrap everywhere (#4252) 2018-04-05 11:49:21 -04:00
logical_passthrough_test.go
logical_system.go Add description flag to secrets and auth tune subcommands (#4894) 2018-07-12 11:15:50 -04:00
logical_system_helpers.go Port some ent mount changes (#4330) 2018-04-11 14:32:55 -04:00
logical_system_integ_test.go Tackle #4929 a different way (#4932) 2018-07-24 13:57:25 -07:00
logical_system_test.go Move TokenEntry into logical. (#4729) 2018-06-08 17:24:27 -04:00
mount.go Make single-lease revocation behave like expiration (#4883) 2018-07-11 15:45:35 -04:00
mount_test.go Port some ent mount changes (#4330) 2018-04-11 14:32:55 -04:00
plugin_catalog.go Errwrap everywhere (#4252) 2018-04-05 11:49:21 -04:00
plugin_catalog_test.go
plugin_reload.go Add debug comment when singleton reload is skipped (#4625) 2018-05-23 17:52:11 -07:00
policy.go Move checkHCLKeys into hclutil (#4749) 2018-06-12 12:38:08 -04:00
policy_store.go Add control group request endpoint to default policy (#4904) 2018-07-11 12:46:30 -04:00
policy_store_test.go Fix output-related tests (#4288) 2018-04-05 20:43:29 -04:00
policy_test.go Fix output-related tests (#4288) 2018-04-05 20:43:29 -04:00
rekey.go Tackle #4929 a different way (#4932) 2018-07-24 13:57:25 -07:00
rekey_test.go Tackle #4929 a different way (#4932) 2018-07-24 13:57:25 -07:00
request_forwarding.go HA: Bump the max send/recv size for the gRPC server (#4844) 2018-06-29 09:52:23 -07:00
request_forwarding_service.pb.go Make proto 2018-07-10 20:49:48 -04:00
request_forwarding_service.proto adding option go_package to protos (#4687) 2018-06-04 10:19:26 -04:00
request_handling.go Tackle #4929 a different way (#4932) 2018-07-24 13:57:25 -07:00
request_handling_test.go Restrict userpass logins & tokens by CIDR (#4557) 2018-05-21 11:47:28 -07:00
rollback.go
rollback_test.go
router.go Revert some of commit 050ab805a7565c5b0cadb0176023031ee5f0d17b. (#4768) 2018-06-14 13:44:13 -04:00
router_access.go
router_ext_test.go
router_test.go Add a test for nil-ing out request tokenentry 2018-06-08 19:55:39 -04:00
seal.go Factor out a bunch of shared code 2018-05-21 17:46:32 -04:00
seal_access.go More work on recovery test 2018-05-20 18:42:14 -04:00
seal_test.go
seal_testing.go Tackle #4929 a different way (#4932) 2018-07-24 13:57:25 -07:00
sealunwrapper.go Errwrap everywhere (#4252) 2018-04-05 11:49:21 -04:00
sealunwrapper_test.go
testing.go Tackle #4929 a different way (#4932) 2018-07-24 13:57:25 -07:00
token_store.go Tackle #4929 a different way (#4932) 2018-07-24 13:57:25 -07:00
token_store_ext_test.go Two-pronged fix for renew policy checking (#4960) 2018-07-24 12:03:11 -07:00
token_store_test.go Fix tests 2018-07-12 10:18:50 -04:00
ui.go
ui_test.go
util.go
util_test.go
wrapping.go Tackle #4929 a different way (#4932) 2018-07-24 13:57:25 -07:00