mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-28 04:10:44 -04:00
Update k8s auth (#5059)
This commit is contained in:
parent
0d5dd986ba
commit
cdc9b357e7
3 changed files with 8 additions and 4 deletions
2
vendor/github.com/hashicorp/vault-plugin-auth-kubernetes/path_login.go
generated
vendored
2
vendor/github.com/hashicorp/vault-plugin-auth-kubernetes/path_login.go
generated
vendored
|
|
@ -121,7 +121,7 @@ func (b *kubeAuthBackend) pathLogin() framework.OperationFunc {
|
|||
"service_account_secret_name": serviceAccount.SecretName,
|
||||
"role": roleName,
|
||||
},
|
||||
DisplayName: fmt.Sprintf("%s:%s", serviceAccount.Namespace, serviceAccount.Name),
|
||||
DisplayName: fmt.Sprintf("%s-%s", serviceAccount.Namespace, serviceAccount.Name),
|
||||
LeaseOptions: logical.LeaseOptions{
|
||||
Renewable: true,
|
||||
TTL: role.TTL,
|
||||
|
|
|
|||
4
vendor/github.com/hashicorp/vault-plugin-auth-kubernetes/token_review.go
generated
vendored
4
vendor/github.com/hashicorp/vault-plugin-auth-kubernetes/token_review.go
generated
vendored
|
|
@ -90,6 +90,10 @@ func (t *tokenReviewAPI) Review(jwt string) (*tokenReviewResult, error) {
|
|||
// Set the JWT as the Bearer token
|
||||
req.Header.Set("Authorization", bearer)
|
||||
|
||||
// Set the MIME type headers
|
||||
req.Header.Set("Content-Type", "application/json")
|
||||
req.Header.Set("Accept", "application/json")
|
||||
|
||||
resp, err := client.Do(req)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
|
|||
6
vendor/vendor.json
vendored
6
vendor/vendor.json
vendored
|
|
@ -1327,10 +1327,10 @@
|
|||
"revisionTime": "2018-07-10T15:13:41Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "GAsPitFJRlzOg7kkQVKWksOY5bM=",
|
||||
"checksumSHA1": "Bl5W8JoUnhKayJb5TYCzi9P6ZJA=",
|
||||
"path": "github.com/hashicorp/vault-plugin-auth-kubernetes",
|
||||
"revision": "79458d2576b21c11a9482f0a16074bcb1b657e7f",
|
||||
"revisionTime": "2018-07-23T17:26:15Z"
|
||||
"revision": "71e1b5a5d5a7e5e8a9c6a385ca7994baf6e6fc48",
|
||||
"revisionTime": "2018-08-07T17:39:52Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "pNERL2s72vwnApekzTLxGsvkyNU=",
|
||||
|
|
|
|||
Loading…
Reference in a new issue