open-vault/api
Vishal Nayak 0d077d7945
Recovery Mode (#7559)
* Initial work

* rework

* s/dr/recovery

* Add sys/raw support to recovery mode (#7577)

* Factor the raw paths out so they can be run with a SystemBackend.

# Conflicts:
#	vault/logical_system.go

* Add handleLogicalRecovery which is like handleLogical but is only
sufficient for use with the sys-raw endpoint in recovery mode.  No
authentication is done yet.

* Integrate with recovery-mode.  We now handle unauthenticated sys/raw
requests, albeit on path v1/raw instead v1/sys/raw.

* Use sys/raw instead raw during recovery.

* Don't bother persisting the recovery token.  Authenticate sys/raw
requests with it.

* RecoveryMode: Support generate-root for autounseals (#7591)

* Recovery: Abstract config creation and log settings

* Recovery mode integration test. (#7600)

* Recovery: Touch up (#7607)

* Recovery: Touch up

* revert the raw backend creation changes

* Added recovery operation token prefix

* Move RawBackend to its own file

* Update API path and hit it using CLI flag on generate-root

* Fix a panic triggered when handling a request that yields a nil response. (#7618)

* Improve integ test to actually make changes while in recovery mode and
verify they're still there after coming back in regular mode.

* Refuse to allow a second recovery token to be generated.

* Resize raft cluster to size 1 and start as leader (#7626)

* RecoveryMode: Setup raft cluster post unseal (#7635)

* Setup raft cluster post unseal in recovery mode

* Remove marking as unsealed as its not needed

* Address review comments

* Accept only one seal config in recovery mode as there is no scope for migration
2019-10-15 00:55:31 -04:00
..
test-fixtures
api_test.go Redo API locking (#3508) 2017-11-02 09:30:04 -05:00
auth.go
auth_token.go Token identity support (#6267) 2019-07-01 11:39:54 +02:00
client.go Vault Agent Cache Auto-Auth SSRF Protection (#7627) 2019-10-11 18:56:07 -04:00
client_test.go Add backwards compat support for API env vars (#7135) 2019-07-17 06:29:25 -04:00
go.mod go mod vendor and go mod tidy 2019-10-04 09:14:37 -04:00
go.sum go mod vendor and go mod tidy 2019-10-04 09:14:37 -04:00
help.go Add a deprecated helper to tokenutil and JSON output to path-help (#7006) 2019-06-27 12:56:31 -04:00
logical.go logical: add support for passing data to delete (#7139) 2019-07-18 10:42:36 -07:00
output_string.go Stop some curl whining (#6385) 2019-03-08 14:14:50 -05:00
plugin_helpers.go duplicates some constants defined in pluginutil to avoid depending on x/net/trace (#6703) 2019-05-08 16:21:23 -07:00
renewer.go Grace is deprecated so mark as such 2018-05-09 10:02:06 -04:00
renewer_test.go Remove outdated renewer test 2018-05-09 12:33:20 -04:00
request.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
request_test.go Clean up request logic and use retryable's more efficient handling (#4670) 2018-06-01 09:12:43 -04:00
response.go API Response returns specialized error type (#6984) 2019-06-26 11:35:08 -07:00
secret.go Added missing entity_id to SecretAuth struct (#6819) 2019-06-04 10:04:20 -07:00
ssh.go API: Add context to each raw request call (#4987) 2018-07-24 15:49:55 -07:00
ssh_agent.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
ssh_agent_test.go Fix output-related tests (#4288) 2018-04-05 20:43:29 -04:00
sys.go
sys_audit.go Remove injection into top routes (#5101) 2018-08-14 15:29:22 -04:00
sys_auth.go Batch tokens (#755) 2018-10-15 12:56:24 -04:00
sys_capabilities.go Possibly fix Nomad capabilities issue (#5360) 2018-09-19 13:06:37 -04:00
sys_config_cors.go Remove injection into top routes (#5101) 2018-08-14 15:29:22 -04:00
sys_generate_root.go Recovery Mode (#7559) 2019-10-15 00:55:31 -04:00
sys_health.go Add missing performance_standby field to API 2019-01-17 18:15:00 -05:00
sys_init.go API: Add context to each raw request call (#4987) 2018-07-24 15:49:55 -07:00
sys_leader.go Add LastWAL in leader/health output (#5523) 2018-10-16 09:38:44 -04:00
sys_leases.go API: Add context to each raw request call (#4987) 2018-07-24 15:49:55 -07:00
sys_mounts.go Add mount UUID to the secret and auth list API responses (#6633) 2019-04-24 12:27:43 -07:00
sys_plugins.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
sys_policy.go Fix a couple of instances where we are using LIST verb (#6026) 2019-01-10 19:57:00 -05:00
sys_raft.go OSS portions of raft non-voters (#7634) 2019-10-11 11:56:59 -07:00
sys_rekey.go Fixed wrong rekey recovery backup client API URL (#6841) 2019-06-11 10:05:44 +02:00
sys_rotate.go Remove injection into top routes (#5101) 2018-08-14 15:29:22 -04:00
sys_seal.go expose 'storage_type' on the sys/seal-status endpoint (#7486) 2019-09-18 14:07:18 -05:00
sys_stepdown.go Fix stepdown body closing 2018-08-04 11:50:29 -04:00