Add ECDSA support

This commit is contained in:
Jordan Liggitt
2016-09-27 01:44:33 -04:00
parent 987aef1f64
commit 6333d8fd86
6 changed files with 207 additions and 60 deletions

View File

@@ -17,7 +17,6 @@ limitations under the License.
package authenticator
import (
"crypto/rsa"
"time"
"k8s.io/kubernetes/pkg/auth/authenticator"
@@ -183,7 +182,7 @@ func newServiceAccountAuthenticator(keyfile string, lookup bool, serviceAccountG
return nil, err
}
tokenAuthenticator := serviceaccount.JWTTokenAuthenticator([]*rsa.PublicKey{publicKey}, lookup, serviceAccountGetter)
tokenAuthenticator := serviceaccount.JWTTokenAuthenticator([]interface{}{publicKey}, lookup, serviceAccountGetter)
return bearertoken.New(tokenAuthenticator), nil
}