Jeff Mitchell
ebbcc170c8
Fix up error detection regression to return correct status codes
2016-06-22 17:47:05 -04:00
Jeff Mitchell
0cf1dc7f4d
Merge branch 'master-oss' into cubbyhole-the-world
2016-05-11 19:29:52 -04:00
Jeff Mitchell
67a746be30
Add explicit maximum TTLs to token store roles.
2016-05-11 16:51:18 -04:00
Jeff Mitchell
21c0e4ee42
Add wrapping through core and change to use TTL instead of Duration.
2016-05-02 00:47:35 -04:00
Sean Chittenden
455b76828f
Add a *log.Logger argument to physical.Factory
...
Logging in the backend is a good thing. This is a noisy interface change but should be a functional noop.
2016-04-25 20:10:32 -07:00
Jeff Mitchell
8b6df2a1a4
Merge branch 'master' into token-roles
2016-03-09 17:23:34 -05:00
vishalnayak
d1d37d5933
fix all the broken tests
2016-03-09 13:45:36 -05:00
Jeff Mitchell
c4124bc40a
Merge branch 'master' into token-roles
2016-03-07 10:03:54 -05:00
Jeff Mitchell
46a71bd648
Add a sleep in the RedirectStandby test to try to fix raciness
2016-03-02 12:06:16 -05:00
Jeff Mitchell
8be467a31a
Update tests to add expected role parameters
2016-03-01 12:41:40 -05:00
Jeff Mitchell
1a1d8a8d85
Make "ttl" reflect the actual TTL of the token in lookup calls.
...
Add a new value "creation_ttl" which holds the value at creation time.
Fixes #986
2016-02-01 11:16:32 -05:00
Jeff Mitchell
a80481792e
Fix up unit tests to expect new values
2016-01-29 19:36:56 -05:00
Jeff Mitchell
214d3e259d
Fix StandbyRedirect test
2015-12-17 13:58:16 -05:00
Jeff Mitchell
b1f815d7f8
Address review feedback
2015-12-14 17:58:30 -05:00
Jeff Mitchell
4f51b6e3c9
Allow separate HA physical backend.
...
With no separate backend specified, HA will be attempted on the normal
physical backend.
Fixes #395 .
2015-12-14 07:59:58 -05:00
Jeff Mitchell
06544afb2a
Display whether a token is an orphan on lookup.
2015-11-09 13:19:59 -05:00
Jeff Mitchell
f956a22a7d
Rename core's 'policy' to 'policyStore' for clarification
2015-11-06 12:07:42 -05:00
Jeff Mitchell
c8af19e9dc
Add unit tests
2015-10-07 20:17:06 -04:00
Jeff Mitchell
d62f533a6f
Store token creation time and TTL. This can be used to properly populate
...
fields in 'lookup-self'. Importantly, this also makes credential
backends use the SystemView per-backend TTL values and fixes unit tests
to expect this.
Fully fixes #527
2015-09-18 16:39:35 -04:00
Jeff Mitchell
f1a301922d
Remove cookie authentication.
2015-08-21 19:46:23 -07:00
Armon Dadgar
bc262df2aa
vault: testing raw responses
2015-05-27 14:19:12 -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
Armon Dadgar
92dadc4dca
http: support standby redirects
2015-04-19 13:47:57 -07:00
Armon Dadgar
9f577b39b4
Replace VaultID with LeaseID for terminology simplification
2015-04-08 13:35:32 -07:00
Mitchell Hashimoto
95c9fabbe2
http: logical delete support
2015-04-07 11:04:06 -07:00
Mitchell Hashimoto
a9bd83b4ef
http: fix tests
2015-04-04 17:42:19 -07:00
Mitchell Hashimoto
8c707df4bc
http: respondCommon to do common responses
2015-03-31 21:29:53 -07:00
Mitchell Hashimoto
06e06cde9c
http: support auth
2015-03-29 16:14:54 -07:00
Armon Dadgar
e69df0e947
all: Removing fields from Lease
2015-03-16 13:29:51 -07:00
Mitchell Hashimoto
dba2b5d315
http: 404 if reading secret that doesn't exist
2015-03-15 19:42:24 -07:00
Mitchell Hashimoto
05d37bf9f1
http: generic read/write endpoint for secrets
2015-03-15 19:35:04 -07:00