mirror of https://github.com/status-im/consul.git
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
65c9109396
commit
22bdf279d1
|
@ -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