open-vault/logical
Jeff Mitchell 599f691141
Allow returning warnings and other data in 404s in the Go API (#4256)
* Allow returning list information and other data in 404s.

On read it'll output data and/or warnings on a 404 if they exist. On
list, the same behavior; the actual 'vault list' command doesn't change
behavior though in terms of output unless there are no actual keys (so
it doesn't just magically show other data).

This corrects some assumptions in response_util and wrapping.go; it also
corrects a few places in the latter where it could leak a (useless)
token in some error cases.

* Use same 404 logic in delete/put too

* Add the same secret parsing logic to the KV request functions
2018-04-03 22:35:45 -04:00
..
framework Core handling of TTLs (#4230) 2018-04-03 12:20:20 -04:00
plugin Move plugin env checks to their own file (#4253) 2018-04-03 10:36:14 -07:00
testing Move to "github.com/hashicorp/go-hclog" (#4227) 2018-04-02 17:46:59 -07:00
auth.go Core handling of TTLs (#4230) 2018-04-03 12:20:20 -04:00
connection.go Sync over 2017-10-23 16:43:07 -04:00
error.go Allow more complex errors from plugins (no interface change) (#3444) 2017-10-19 13:29:59 -07:00
identity.go Porting identity store (#3419) 2017-10-11 10:21:20 -07: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
request.go Database gRPC plugins (#3666) 2017-12-14 14:03:11 -08:00
response.go http: Add a method for returning a 404 with data (#3994) 2018-02-21 14:22:21 -08:00
response_util.go Allow returning warnings and other data in 404s in the Go API (#4256) 2018-04-03 22:35:45 -04:00
secret.go Sync over 2017-10-23 16:43:07 -04:00
storage.go Make mount view read only until after mount persist (#3910) 2018-02-09 14:04:25 -05: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 Add a sysview call to determine if a mount is local. (#3899) 2018-02-02 18:17:12 -05:00
testing.go Move to "github.com/hashicorp/go-hclog" (#4227) 2018-04-02 17:46:59 -07:00
translate_response.go Port over bits (#3575) 2017-11-13 15:31:32 -05:00