Sean Chittenden
339c0a4127
Speling police
2016-05-15 09:58:36 -07:00
vishalnayak
0481976696
Split SanitizeTTL method to support time.Duration parameters as well
2016-05-05 09:45:48 -04:00
Jeff Mitchell
ca221009d4
Add list support to userpass users. Remove some unneeded existence
...
checks. Remove paths from requiring root.
Fixes #911
2016-04-09 18:28:55 -04:00
vishalnayak
5f1829af67
Utility Enhancements
2016-04-05 20:32:59 -04:00
vishalnayak
ac5ceae0bd
Added AcceptanceTest boolean to logical.TestCase
2016-04-05 15:10:44 -04:00
Jeff Mitchell
7ce9701800
Properly check for policy equivalency during renewal.
...
This introduces a function that compares two string policy sets while
ignoring the presence of "default" (since it's added by core, not the
backend), and ensuring that ordering and/or duplication are not failure
conditions.
Fixes #1256
2016-03-24 09:41:51 -04:00
Jeff Mitchell
d887ecbd33
Normalize userpass errors around bad user/pass
2016-03-16 15:19:55 -04:00
Jeff Mitchell
33c2641568
Use 400 instead of 500 for failing to provide a userpass password.
2016-03-16 15:14:28 -04:00
vishalnayak
4ae83b7cc8
Add comments to existence functions
2016-03-16 14:53:53 -04:00
vishalnayak
6f2b428379
Addessing review comments
2016-03-16 14:21:14 -04:00
vishalnayak
cfbab2c66f
Refactor updating user values
2016-03-16 13:42:02 -04:00
vishalnayak
59054298b8
Reduce the visibility of setUser
2016-03-16 11:39:52 -04:00
vishalnayak
b8e007c195
Use helper for existence check. Avoid panic by fetching default values for field data
2016-03-16 11:26:33 -04:00
vishalnayak
91f4aab933
Input validations and field renaming
2016-03-15 17:47:13 -04:00
vishalnayak
5249c0d5e0
Refactor updating and creating userEntry into a helper function
2016-03-15 17:32:39 -04:00
vishalnayak
c29a121816
Fetch and store UserEntry to properly handle both create and update
2016-03-15 17:05:23 -04:00
vishalnayak
0e1769dd5d
Change path structure of password and policies endpoints in userpass
2016-03-15 16:46:12 -04:00
vishalnayak
cad1ee3a85
Reuse the variable instead of fetching 'name' again
2016-03-15 16:21:47 -04:00
vishalnayak
e51661c714
Added paths to update policies and password
2016-03-15 16:12:55 -04:00
vishalnayak
aa8926912a
Tests for updating password and policies in userpass backend
2016-03-15 16:09:23 -04:00
vishalnayak
1980d0f1cc
Userpass: Support updating policies and password
2016-03-15 15:18:21 -04:00
Jeff Mitchell
e63bcffa7a
Fix userpass acceptance tests by giving it a system view
2016-01-29 20:14:14 -05:00
Jeff Mitchell
2eb08d3bde
Make backends much more consistent:
...
1) Use the new LeaseExtend
2) Use default values controlled by mount tuning/system defaults instead
of a random hard coded value
3) Remove grace periods
2016-01-29 20:03:37 -05:00
Jack DeLoach
d206599b80
Add STS path to AWS backend.
...
The new STS path allows for obtaining the same credentials that you would get
from the AWS "creds" path, except it will also provide a security token, and
will not have an annoyingly long propagation time before returning to the user.
2016-01-21 14:05:09 -05:00
Jeff Mitchell
45e32756ea
WriteOperation -> UpdateOperation
2016-01-08 13:03:03 -05:00
vishalnayak
16f531da3d
Userpass Bk: Added tests for TTL duration verifications
2015-09-17 16:33:26 -04:00
vishalnayak
714aff570b
Vault userpass: Enable renewals for login tokens
2015-09-17 14:35:50 -04:00
vishalnayak
41678f18ae
Vault: Fix wild card paths for all backends
2015-08-21 00:56:13 -07:00
Bradley Girardeau
7b6547abf7
Clean up naming and add documentation
2015-07-30 17:36:40 -07:00
Bradley Girardeau
c7b806ebf6
mfa: code cleanup
2015-07-28 11:55:46 -07:00
Bradley Girardeau
d47a12f024
mfa: add to userpass backend
2015-07-27 21:14:00 -07:00
Armon Dadgar
e7993c5bbd
auth/userpass: store password as hash instead of direct. Credit @kenbreeman
2015-07-13 15:09:24 +10:00
Armon Dadgar
e907cad8be
auth/userpass: protect against timing attack. Credit @kenbreeman
2015-07-13 15:01:18 +10:00
Armon Dadgar
6a9dc00e57
Remove SetLogger, and unify on framework.Setup
2015-06-30 17:45:20 -07:00
Armon Dadgar
22f543f837
Updating for backend API change
2015-06-30 17:36:12 -07:00
Armon Dadgar
28dd283c93
builtin: fixing API change in logical framework
2015-06-17 14:34:11 -07:00
Seth Vargo
3748be6491
Remove references to -var
2015-05-08 11:45:29 -04:00
Mitchell Hashimoto
c8498c3c91
credentials/userpass: integrate into auth cli
2015-04-19 15:17:24 -07:00
Mitchell Hashimoto
0320cea5de
credential/userpass: renewal
2015-04-19 15:12:50 -07:00
Mitchell Hashimoto
4eea0e237b
credential/userpass: help
2015-04-19 15:07:11 -07:00
Mitchell Hashimoto
038e705134
credential/userpass: login
2015-04-19 15:06:29 -07:00
Mitchell Hashimoto
c62d30760c
credential/userpass: configuring users
2015-04-19 14:59:30 -07:00