vishalnayak
0bea4ff7ff
Added VAULT_GITHUB_AUTH_TOKEN env var to receive GitHub auth token
2016-06-09 13:45:56 -04:00
Jeff Mitchell
99235e83c7
Fix panic when renewing a github token from a previous version of Vault
2016-06-09 13:37:09 -04:00
vishalnayak
80faa2f4ed
s/logical.ErrorResponse/fmt.Errorf in renewal functions of credential backends
2016-05-26 10:21:03 -04:00
vishalnayak
0481976696
Split SanitizeTTL method to support time.Duration parameters as well
2016-05-05 09:45:48 -04:00
Jeff Mitchell
e198037788
Make GitHub org comparison case insensitive.
...
Fixes #1359
2016-05-02 00:18:31 -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
Nathan Grunzweig
3a98f99aa7
fix github tests to use the provided GITHUB_ORG environment variable
...
(tests fail for non hashicorp people)
2016-03-09 15:34:03 +02:00
Jeff Mitchell
6018c88708
Remove root token requirement from GitHub configuration
2016-02-25 08:51:53 -05:00
vishalnayak
3b6ea0c3cb
Github renewal enhancement
2016-02-11 20:42:42 -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
Jeff Mitchell
45e32756ea
WriteOperation -> UpdateOperation
2016-01-08 13:03:03 -05:00
Jeff Mitchell
5c0a16b16a
Use cleanhttp instead of bare http.Client
2015-10-22 14:37:12 -04:00
Jeff Mitchell
0dbbef1ac0
Don't use http.DefaultClient
...
This strips out http.DefaultClient everywhere I could immediately find
it. Too many things use it and then modify it in incompatible ways.
Fixes #700 , I believe.
2015-10-15 17:54:00 -04:00
vishalnayak
e47b2838a0
Added a test case. Removed setting of defaultTTL in config.
2015-10-03 15:36:57 -04:00
vishalnayak
d30beea4db
Added testcases for config writes
2015-10-02 22:10:51 -04:00
vishalnayak
e89cf4d4bc
Use SanitizeTTL in credential request path instead of config
2015-10-02 15:41:35 -04:00
vishalnayak
bf017d28d1
Github backend: enable auth renewals
2015-10-02 13:33:19 -04:00
Jeff Mitchell
59a3f6b5d2
Add a static system view to github credential backend to fix acceptance tests
2015-09-29 18:55:59 -07:00
Jeff Mitchell
06f7fb5dc3
Add base_url option to GitHub auth provider to allow selecting a custom endpoint. Fixes #572 .
2015-08-28 06:28:43 -07:00
Erik Kristensen
ce17751f4c
reimplements #459
2015-08-09 11:25:45 -06:00
Erik Kristensen
5ca2816084
remove newline
2015-08-03 16:34:24 -06:00
Erik Kristensen
2c9f2d5673
fix bug #488
2015-08-03 15:47:30 -06:00
Raymond Pete
5b1db50733
name slug check
2015-07-26 22:21:16 -04: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
Mitchell Hashimoto
a98c07855b
credential/github: get rid of stray tab
2015-06-16 10:05:51 -07:00
Mitchell Hashimoto
dcc84749d1
command/auth, github: improve cli docs
...
/cc @sethvargo
2015-06-16 10:05:11 -07:00
Etourneau Gwenn
fd682719a1
Fix Error message
2015-05-12 14:32:09 +09:00
Mitchell Hashimoto
11a009d5ab
logical/framework: PathMap is case insensitive by default
2015-05-11 10:27:04 -07:00
Mitchell Hashimoto
5d1baaace4
credential/github: case insensitive mappings
2015-05-11 10:24:39 -07:00
Seth Vargo
3748be6491
Remove references to -var
2015-05-08 11:45:29 -04:00
Seth Vargo
bf8ba7b1bb
Fix output from GitHub help
2015-05-07 14:13:12 -04:00
Mitchell Hashimoto
038e705134
credential/userpass: login
2015-04-19 15:06:29 -07:00
Mitchell Hashimoto
fe747fbcaa
credential/*: adhere to new API
2015-04-17 09:40:28 -07:00
Armon Dadgar
b354299e89
credential/github: Set the github username as the display name
2015-04-15 14:30:46 -07:00
Mitchell Hashimoto
e4f0563dd4
credential/github: CLI handler
2015-04-06 09:53:43 -07:00
Mitchell Hashimoto
8fd956391a
credential/github: improve help
2015-04-04 12:18:33 -07:00
Mitchell Hashimoto
9092c41779
credential/github: auth with github
2015-04-01 15:46:37 -07:00