Jeff Mitchell
278bdd1f4e
Switch to go modules ( #6585 )
...
* Switch to go modules
* Make fmt
2019-04-13 03:44:06 -04:00
Jeff Mitchell
7ae6fb56ff
Move policyutil to sdk
2019-04-12 18:08:46 -04:00
Jeff Mitchell
170521481d
Create sdk/ and api/ submodules ( #6583 )
2019-04-12 17:54:35 -04:00
Jeff Mitchell
47d339fce1
Revert "Refactor common token fields and operations into a helper ( #5953 )"
...
This reverts commit 66c226c593
.
2019-02-01 11:23:40 -05:00
Jeff Mitchell
66c226c593
Refactor common token fields and operations into a helper ( #5953 )
2019-01-30 16:23:28 -05:00
Jim Kalafut
a54603039d
Run goimports across the repository ( #6010 )
...
The result will still pass gofmtcheck and won't trigger additional
changes if someone isn't using goimports, but it will avoid the
piecemeal imports changes we've been seeing.
2019-01-08 16:48:57 -08:00
Becca Petrin
ca2bdbb8c0
Restrict userpass logins & tokens by CIDR ( #4557 )
2018-05-21 11:47:28 -07:00
Vishal Nayak
f13a832a9f
TypeDurationSecond for ttl and max_ttl ( #4268 )
...
* use typedurationsecond for ttl and max_ttl
* address review feedback
2018-04-04 17:47:18 -04:00
Brian Kassouf
8142b42d95
Add context to storage backends and wire it through a lot of places ( #3817 )
2018-01-19 01:44:44 -05:00
Brian Kassouf
78adac0a24
Pass context to backends ( #3750 )
...
* Start work on passing context to backends
* More work on passing context
* Unindent logical system
* Unindent token store
* Unindent passthrough
* Unindent cubbyhole
* Fix tests
* use requestContext in rollback and expiration managers
2018-01-08 10:31:38 -08:00
Jeff Mitchell
2f6c2b88bb
Sanitize policy behavior across backends ( #3324 )
...
Fixes #3323
Fixes #3318
* Fix tests
* Fix tests
2017-09-13 11:36:52 -04:00
Jeff Mitchell
948fdeacc3
Explicitly set invalid request status when a password isn't included
2016-07-25 11:14:15 -04:00
Jeff Mitchell
41922b2a9c
Don't return 500 for user error in userpass when setting password
2016-07-25 11:09:46 -04:00
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
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
1980d0f1cc
Userpass: Support updating policies and password
2016-03-15 15:18:21 -04:00
Jeff Mitchell
45e32756ea
WriteOperation -> UpdateOperation
2016-01-08 13:03:03 -05: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
Armon Dadgar
e7993c5bbd
auth/userpass: store password as hash instead of direct. Credit @kenbreeman
2015-07-13 15:09:24 +10: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