open-vault/sdk/framework
Mike Jarmy e0ce2195cc AWS upgrade role entries (#7025)
* upgrade aws roles

* test upgrade aws roles

* Initialize aws credential backend at mount time

* add a TODO

* create end-to-end test for builtin/credential/aws

* fix bug in initializer

* improve comments

* add Initialize() to logical.Backend

* use Initialize() in Core.enableCredentialInternal()

* use InitializeRequest to call Initialize()

* improve unit testing for framework.Backend

* call logical.Backend.Initialize() from all of the places that it needs to be called.

* implement backend.proto changes for logical.Backend.Initialize()

* persist current role storage version when upgrading aws roles

* format comments correctly

* improve comments

* use postUnseal funcs to initialize backends

* simplify test suite

* improve test suite

* simplify logic in aws role upgrade

* simplify aws credential initialization logic

* simplify logic in aws role upgrade

* use the core's activeContext for initialization

* refactor builtin/plugin/Backend

* use a goroutine to upgrade the aws roles

* misc improvements and cleanup

* do not run AWS role upgrade on DR Secondary

* always call logical.Backend.Initialize() when loading a plugin.

* improve comments

* on standbys and DR secondaries we do not want to run any kind of upgrade logic

* fix awsVersion struct

* clarify aws version upgrade

* make the upgrade logic for aws auth more explicit

* aws upgrade is now called from a switch

* fix fallthrough bug

* simplify logic

* simplify logic

* rename things

* introduce currentAwsVersion const to track aws version

* improve comments

* rearrange things once more

* conglomerate things into one function

* stub out aws auth initialize e2e test

* improve aws auth initialize e2e test

* finish aws auth initialize e2e test

* tinker with aws auth initialize e2e test

* tinker with aws auth initialize e2e test

* tinker with aws auth initialize e2e test

* fix typo in test suite

* simplify logic a tad

* rearrange assignment

* Fix a few lifecycle related issues in #7025 (#7075)

* Fix panic when plugin fails to load
2019-07-05 16:55:40 -07:00
..
testdata update OpenAPI output to use DisplayAttributes struct (#6928) 2019-06-21 11:08:08 -04:00
backend.go AWS upgrade role entries (#7025) 2019-07-05 16:55:40 -07:00
backend_test.go AWS upgrade role entries (#7025) 2019-07-05 16:55:40 -07:00
field_data.go sdk/framework: add TypeSignedDurationSecond FieldType (#6989) 2019-06-26 13:15:36 -04:00
field_data_test.go sdk/framework: add TypeSignedDurationSecond FieldType (#6989) 2019-06-26 13:15:36 -04:00
field_type.go sdk/framework: add TypeSignedDurationSecond FieldType (#6989) 2019-06-26 13:15:36 -04:00
lease.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
lease_test.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
openapi.go sdk/framework: add TypeSignedDurationSecond FieldType (#6989) 2019-06-26 13:15:36 -04:00
openapi_test.go update OpenAPI output to use DisplayAttributes struct (#6928) 2019-06-21 11:08:08 -04:00
path.go Standardize how we format deprecated values in traditional path-help (#7007) 2019-06-27 14:52:52 -04:00
path_map.go Add deprecation notices for policymap/pathmap 2019-06-27 10:17:05 -04:00
path_map_test.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
path_struct.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
path_struct_test.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
path_test.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
policy_map.go Add deprecation notices for policymap/pathmap 2019-06-27 10:17:05 -04:00
policy_map_test.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
secret.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
secret_test.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
template.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
testing.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
wal.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
wal_test.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00