Allows keyring operations on client agents

This commit is contained in:
Daniele Vazzola 2022-02-24 17:23:45 +00:00 committed by Daniele Vazzola
parent 2f9dc78af0
commit 397b5ed957
1 changed files with 0 additions and 3 deletions

View File

@ -233,9 +233,6 @@ func decodeStringKey(key string) ([]byte, error) {
func (a *Agent) keyringProcess(args *structs.KeyringRequest) (*structs.KeyringResponses, error) {
var reply structs.KeyringResponses
if _, ok := a.delegate.(*consul.Server); !ok {
return nil, fmt.Errorf("keyring operations must run against a server node")
}
if err := a.RPC("Internal.KeyringOperation", args, &reply); err != nil {
return &reply, err
}