diff --git a/cmd/neofs-node/control.go b/cmd/neofs-node/control.go index 128f848c..42fae8d4 100644 --- a/cmd/neofs-node/control.go +++ b/cmd/neofs-node/control.go @@ -40,7 +40,7 @@ func initControlService(c *cfg) { ctlSvc := controlSvc.New( controlSvc.WithKey(c.key), - controlSvc.WithAllowedKeys(keys), + controlSvc.WithAuthorizedKeys(keys), controlSvc.WithHealthChecker(c), ) diff --git a/pkg/services/control/server/server.go b/pkg/services/control/server/server.go index 97528ebe..8d445383 100644 --- a/pkg/services/control/server/server.go +++ b/pkg/services/control/server/server.go @@ -58,9 +58,9 @@ func WithKey(key *ecdsa.PrivateKey) Option { } } -// WithAllowedKeys returns option to add list of public +// WithAuthorizedKeys returns option to add list of public // keys that have rights to use Control service. -func WithAllowedKeys(keys [][]byte) Option { +func WithAuthorizedKeys(keys [][]byte) Option { return func(c *cfg) { c.allowedKeys = append(c.allowedKeys, keys...) }