Jeff Mitchell
29ef1a2167
If JSON decoding fails, make it clear that the problem is failing to
...
parse the JSON, rather than returning the possibly confusing error from
the JSON decoder.
Fixes #553 .
2015-08-26 07:03:33 -07:00
Jeff Mitchell
f1a301922d
Remove cookie authentication.
2015-08-21 19:46:23 -07:00
Jeff Mitchell
2920cddc9c
Send sys mounting logic directly to logical backend. Unit tests run.
2015-08-20 13:59:57 -07:00
Jeff Mitchell
b81fcab150
Begin factoring out sys paths into logical routes. Also, standardize on 307 as redirect code.
2015-08-20 13:20:35 -07:00
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
Nate Brown
ed0853ce18
Doing a little better with http response codes
2015-06-19 14:00:48 -07: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
Ian Unruh
3ca704bdbb
HTTP should return 503 when sealed
2015-05-19 00:59:19 -07:00
Mitchell Hashimoto
ec4fcd39eb
http: allow header for auth token [GH-124]
2015-05-11 10:56:58 -07: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
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
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
Mitchell Hashimoto
4ee0222411
http: renew endpoints
2015-04-13 20:42:07 -07:00
Mitchell Hashimoto
b5a6960744
http: handle errors better
2015-04-08 11:19:03 -07:00
Mitchell Hashimoto
23af1d03f1
http: remount
2015-04-07 10:54:58 -07:00
Mitchell Hashimoto
ce9ed56be6
http: help
2015-04-02 22:26:45 -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
f874268550
http: handle redirects and set auth cookies
2015-03-30 21:06:15 -07:00
Mitchell Hashimoto
983db25262
http: remove /sys/login
2015-03-30 20:28:52 -07:00
Mitchell Hashimoto
ea3057d950
http: start implementing /sys/login (incomplete)
2015-03-30 12:21:06 -07:00
Mitchell Hashimoto
06e06cde9c
http: support auth
2015-03-29 16:14:54 -07:00
Mitchell Hashimoto
fe4fe231f8
http: fix mount endpoints
2015-03-16 10:51:13 -07:00
Mitchell Hashimoto
3f85dcba10
http: /v1/sys/mount DELETE
2015-03-16 10:41:08 -07:00
Mitchell Hashimoto
920938a862
http: /v1/sys/mount endpoint
2015-03-16 10:36:43 -07:00
Mitchell Hashimoto
c32a825568
http: /sys/mounts
2015-03-15 21:18:25 -07:00
Mitchell Hashimoto
05d37bf9f1
http: generic read/write endpoint for secrets
2015-03-15 19:35:04 -07:00
Mitchell Hashimoto
637b939113
http: init endpoints
2015-03-12 12:37:54 -07:00
Mitchell Hashimoto
549631a896
http: prefix with v1
2015-03-12 10:47:31 -07:00
Mitchell Hashimoto
59ce4265de
http: start the API server
2015-03-11 23:05:16 -07:00