diff --git a/viper.go b/viper.go index 11f3a77..63bda66 100644 --- a/viper.go +++ b/viper.go @@ -288,6 +288,7 @@ func (v *Viper) AddSecureRemoteProvider(provider, endpoint, path, secretkeyring endpoint: endpoint, provider: provider, path: path, + secretKeyring: secretkeyring, } if !v.providerPathExists(rp) { v.remoteProviders = append(v.remoteProviders, rp)