mirror of https://github.com/docker/docs.git
Remove authkey usage
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
This commit is contained in:
parent
66d6b347d8
commit
67d1847cb3
|
@ -90,7 +90,7 @@ func getStore(configuration *viper.Viper, hRegister healthRegister) (
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
sess, err = rethinkdb.Connection(storeConfig.CA, storeConfig.Source, storeConfig.AuthKey)
|
||||
sess, err = rethinkdb.Connection(storeConfig.CA, storeConfig.Source)
|
||||
if err == nil {
|
||||
s := storage.NewRethinkDBStorage(storeConfig.DBName, sess)
|
||||
store = *storage.NewTufMetaStorage(s)
|
||||
|
|
|
@ -93,7 +93,7 @@ func setUpCryptoservices(configuration *viper.Viper, allowedBackends []string) (
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
sess, err = rethinkdb.Connection(storeConfig.CA, storeConfig.Source, storeConfig.AuthKey)
|
||||
sess, err = rethinkdb.Connection(storeConfig.CA, storeConfig.Source)
|
||||
if err == nil {
|
||||
defaultAlias := configuration.GetString("storage.default_alias")
|
||||
if defaultAlias == "" {
|
||||
|
|
|
@ -18,8 +18,8 @@ type Timing struct {
|
|||
}
|
||||
|
||||
// Connection sets up a RethinkDB connection to the host (`host:port` format)
|
||||
// using the CA .pem file provided at path `caFile` and the authKey
|
||||
func Connection(caFile, host, authKey string) (*gorethink.Session, error) {
|
||||
// using the CA .pem file provided at path `caFile`
|
||||
func Connection(caFile, host string) (*gorethink.Session, error) {
|
||||
tlsOpts := tlsconfig.Options{
|
||||
CAFile: caFile,
|
||||
}
|
||||
|
@ -30,7 +30,6 @@ func Connection(caFile, host, authKey string) (*gorethink.Session, error) {
|
|||
return gorethink.Connect(
|
||||
gorethink.ConnectOpts{
|
||||
Address: host,
|
||||
AuthKey: authKey,
|
||||
TLSConfig: t,
|
||||
},
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue