open-vault/logical
Clint 5882156f53
Translate AWS Rate limiting errors to 502 errors (#5270)
* Initial implemntation of returning 529 for rate limits

- bump aws iam and sts packages to v1.14.31 to get mocking interface
- promote the iam and sts clients to the aws backend struct, for mocking in tests
- this also promotes some functions to methods on the Backend struct, so
  that we can use the injected client

Generating creds requires reading config/root for credentials to contact
IAM. Here we make pathConfigRoot a method on aws/backend so we can clear
the clients on successful update of config/root path. Adds a mutex to
safely clear the clients

* refactor locking and unlocking into methods on *backend

* refactor/simply the locking

* check client after grabbing lock
2018-09-18 15:26:06 -05:00
..
framework The big one (#5346) 2018-09-17 23:03:00 -04:00
plugin The big one (#5346) 2018-09-17 23:03:00 -04:00
testing The big one (#5346) 2018-09-17 23:03:00 -04:00
auth.go The big one (#5346) 2018-09-17 23:03:00 -04:00
connection.go Sync over 2017-10-23 16:43:07 -04:00
error.go Translate AWS Rate limiting errors to 502 errors (#5270) 2018-09-18 15:26:06 -05:00
identity.pb.go The big one (#5346) 2018-09-17 23:03:00 -04:00
identity.proto Pass identity metadata through to plugins (#4967) 2018-07-23 12:45:06 -04:00
lease.go Core handling of TTLs (#4230) 2018-04-03 12:20:20 -04:00
lease_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.go Move to "github.com/hashicorp/go-hclog" (#4227) 2018-04-02 17:46:59 -07:00
plugin.pb.go Port over ns identity proto info 2018-08-10 12:45:34 -04:00
plugin.proto Add PluginEnv to SystemView (#5028) 2018-08-03 09:32:17 -07:00
request.go The big one (#5346) 2018-09-17 23:03:00 -04:00
request_util.go The big one (#5346) 2018-09-17 23:03:00 -04:00
response.go Move sort from listresponse to file backend to solve 5141 2018-08-24 13:37:15 -04:00
response_util.go The big one (#5346) 2018-09-17 23:03:00 -04:00
response_util_test.go Add error logical.ErrUpstreamRateLimited and return 502 from RespondCommonError 2018-09-05 11:07:50 -05:00
secret.go Sync over 2017-10-23 16:43:07 -04:00
storage.go Clean up error string formatting (#4304) 2018-04-09 14:35:21 -04:00
storage_inmem.go Convert logical.InmemStorage to a wrapper around physical/inmem. 2018-02-12 11:16:16 -05:00
storage_inmem_test.go vault: Passthrough backend uses logical.Backend 2015-03-15 14:27:06 -07:00
system_view.go The big one (#5346) 2018-09-17 23:03:00 -04:00
testing.go Offline token revocation fix 2018-06-05 18:53:27 -04:00
token.go The big one (#5346) 2018-09-17 23:03:00 -04:00
translate_response.go Re-add injecting into top routes (#5244) 2018-09-05 11:45:17 -04:00