Skip to content
Open
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions path_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func pathConfig(b *kubeAuthBackend) *framework.Path {
DisplayAttrs: &framework.DisplayAttributes{
Name: "Kubernetes CA Certificate",
},
Required: false,
},
"token_reviewer_jwt": {
Type: framework.TypeString,
Expand All @@ -56,7 +57,9 @@ extracted. Not every installation of Kubernetes exposes these keys.`,
DisplayAttrs: &framework.DisplayAttributes{
Name: "Service account verification keys",
},
Required: false,
},

"issuer": {
Type: framework.TypeString,
Deprecated: true,
Expand Down Expand Up @@ -141,10 +144,6 @@ func (b *kubeAuthBackend) pathConfigWrite(ctx context.Context, req *logical.Requ
}
}

if disableLocalJWT && caCert == "" {
return logical.ErrorResponse("kubernetes_ca_cert must be given when disable_local_ca_jwt is true"), nil
}

config := &kubeConfig{
PublicKeys: make([]interface{}, len(pemList)),
PEMKeys: pemList,
Expand Down