Caleb Tennis
1621f5e405
This adds a new error class which can be used by logical backends to
...
specify more concrete error cases to make their way back up the stack.
Over time there is probably a cleaner way of doing this, but that's
looking like a more massive rewrite and this solves some issues in
the meantime.
Use a CodedError to return a more concrete HTTP return code for
operations you want to do so. Returning a regular error leaves
the existing behavior in place.
2015-08-10 13:27:25 -04:00
Armon Dadgar
d77efbd716
http: support ?standbyok for 200 status on standby. Fixes #389
2015-07-02 17:49:35 -07:00
Armon Dadgar
7cdff23e4f
Merge pull request #366 from nbrownus/http_responses
...
Better http responses
2015-06-29 15:31:45 -07:00
Armon Dadgar
1a085c1c89
vault: cleanups for the audit log changes
2015-06-29 15:27:28 -07:00
Nate Brown
ed0853ce18
Doing a little better with http response codes
2015-06-19 14:00:48 -07:00
Nate Brown
314eea7ff0
Adding error and remote_address to audit log lines
2015-06-18 17:17:18 -07:00
Seth Vargo
24b9ef49c1
Accept PUT as well as post to sys/mounts
2015-06-16 13:02:21 -04:00
Armon Dadgar
24ed178f44
http: adding rekey handlers
2015-05-28 14:28:50 -07:00
Armon Dadgar
2091907ab1
http: adding key-status and rotate handlers
2015-05-27 18:02:50 -07:00
Armon Dadgar
bc262df2aa
vault: testing raw responses
2015-05-27 14:19:12 -07:00
Armon Dadgar
aa548cf901
http: support raw HTTP output
2015-05-27 14:10:00 -07:00
Jonathan Sokolowski
c022d109dd
http: Extract IP from RemoteAddr correctly
2015-05-20 15:23:41 +10:00
Ian Unruh
3ca704bdbb
HTTP should return 503 when sealed
2015-05-19 00:59:19 -07:00
Armon Dadgar
388f2dcf8d
http: PUT to sys/auth should be the same as POST
2015-05-12 17:57:39 -07:00
Mitchell Hashimoto
ec4fcd39eb
http: allow header for auth token [GH-124]
2015-05-11 10:56:58 -07:00
Seth Vargo
cc5cd8f596
Disable mlock in tests
2015-04-28 22:18:00 -04:00
Armon Dadgar
7240a3e62c
http: avoid authenticating as new token for auth/token/create
2015-04-27 15:17:59 -07:00
Seth Vargo
5ee6b5edfa
Use lowercase JSON keys for client_token
2015-04-24 12:00:00 -04:00
Armon Dadgar
19c8557786
Merge pull request #29 from hashicorp/f-health
...
Adding sys/health for Consul HTTP health monitoring
2015-04-23 11:58:58 -07:00
Armon Dadgar
253ebffe78
http: adding sys/health endpoint
2015-04-23 11:53:31 -07:00
Mitchell Hashimoto
e5facee87d
http: allow trailing slash on GET /sys/auth
2015-04-22 07:55:51 +02:00
Mitchell Hashimoto
1340715a1a
http: fix redirect issues with trailing slashes
2015-04-22 07:55:40 +02:00
Armon Dadgar
6be765b6c5
http: Adding sys/leader endpoint
2015-04-20 11:59:24 -07:00
Mitchell Hashimoto
0ffd14b563
http: fix some error returns to use the common helper
2015-04-19 22:40:50 -07:00
Mitchell Hashimoto
42743eb109
command/policy-delete
2015-04-19 16:36:11 -07:00
Armon Dadgar
273da85e85
http: pass raw request through
2015-04-19 14:36:50 -07:00
Armon Dadgar
92dadc4dca
http: support standby redirects
2015-04-19 13:47:57 -07:00
Armon Dadgar
f504aca90f
http: split testing methods
2015-04-19 13:47:56 -07:00
Mitchell Hashimoto
4ee0222411
http: renew endpoints
2015-04-13 20:42:07 -07:00
Armon Dadgar
9f577b39b4
Replace VaultID with LeaseID for terminology simplification
2015-04-08 13:35:32 -07:00
Mitchell Hashimoto
b5a6960744
http: handle errors better
2015-04-08 11:19:03 -07:00
Mitchell Hashimoto
160aeccb03
command/token-revoke
2015-04-07 14:36:17 -07:00
Mitchell Hashimoto
706e914ebf
command/token-create
2015-04-07 14:20:18 -07:00
Mitchell Hashimoto
33afc05aaa
http: make POST to WriteOperation
2015-04-07 14:00:09 -07:00
Mitchell Hashimoto
95c9fabbe2
http: logical delete support
2015-04-07 11:04:06 -07:00
Mitchell Hashimoto
21a2ec05cf
http: remount verbs
2015-04-07 10:55:18 -07:00
Mitchell Hashimoto
23af1d03f1
http: remount
2015-04-07 10:54:58 -07:00
Mitchell Hashimoto
a9bd83b4ef
http: fix tests
2015-04-04 17:42:19 -07:00
Mitchell Hashimoto
7ac32b5da5
api: add auth information to results
2015-04-04 15:40:41 -07:00
Mitchell Hashimoto
ce9ed56be6
http: help
2015-04-02 22:26:45 -07:00
Mitchell Hashimoto
6d8502c7d8
command/policy-write
2015-04-01 23:00:15 -07:00
Mitchell Hashimoto
47d52be3ae
http: audit endpoints
2015-04-01 18:36:13 -07:00
Mitchell Hashimoto
d8f9d61453
http: all policy endpoints
2015-04-01 17:59:50 -07:00
Mitchell Hashimoto
9e7ea8a4ef
http: list policies
2015-04-01 17:43:58 -07:00
Mitchell Hashimoto
8c707df4bc
http: respondCommon to do common responses
2015-03-31 21:29:53 -07:00
Mitchell Hashimoto
fd1d9b1631
http: detect errors in logical and return them properly
2015-03-31 21:24:20 -07:00
Mitchell Hashimoto
2e80156641
http: auth handlers
2015-03-31 20:24:51 -07:00
Mitchell Hashimoto
f87089bcab
http: revoke-prefix
2015-03-31 19:23:32 -07:00
Mitchell Hashimoto
ea234d9cbf
command/revoke: revoke
2015-03-31 19:21:02 -07:00
Mitchell Hashimoto
d666e79a3a
http: /sys/seal requires a token
2015-03-31 11:45:44 -07:00