Update NodeRead for partition-exports
When issuing cross-partition service discovery requests, ACL filtering often checks for NodeRead privileges. This is because the common return type is a CheckServiceNode, which contains node data.
This commit is contained in:
parent
afb0976eac
commit
015d85cd74
|
@ -16,7 +16,7 @@ type Config struct {
|
|||
|
||||
type PartitionExportInfo interface {
|
||||
// DownstreamPartitions returns the list of partitions the given service has been exported to.
|
||||
DownstreamPartitions(service string, ctx *AuthorizerContext) []string
|
||||
DownstreamPartitions(service string, anyService bool, ctx *AuthorizerContext) []string
|
||||
}
|
||||
|
||||
// GetWildcardName will retrieve the configured wildcard name or provide a default
|
||||
|
|
|
@ -1903,6 +1903,6 @@ func filterACL(r *ACLResolver, token string, subj interface{}) error {
|
|||
|
||||
type partitionInfoNoop struct{}
|
||||
|
||||
func (p *partitionInfoNoop) DownstreamPartitions(service string, ctx *acl.AuthorizerContext) []string {
|
||||
func (p *partitionInfoNoop) DownstreamPartitions(service string, anyService bool, ctx *acl.AuthorizerContext) []string {
|
||||
return []string{}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue