mirror of
https://github.com/status-im/consul.git
synced 2025-02-02 08:56:43 +00:00
Ensure partition is defaulted in authz
This commit is contained in:
parent
47109e0c0c
commit
bf7a1358d6
@ -18,7 +18,7 @@ func AuthorizeIntentionTarget(
|
||||
|
||||
switch matchType {
|
||||
case structs.IntentionMatchDestination:
|
||||
if ixn.DestinationPartition != targetAP {
|
||||
if structs.PartitionOrDefault(ixn.DestinationPartition) != structs.PartitionOrDefault(targetAP) {
|
||||
return false, false
|
||||
}
|
||||
|
||||
@ -33,7 +33,7 @@ func AuthorizeIntentionTarget(
|
||||
}
|
||||
|
||||
case structs.IntentionMatchSource:
|
||||
if ixn.SourcePartition != targetAP {
|
||||
if structs.PartitionOrDefault(ixn.SourcePartition) != structs.PartitionOrDefault(targetAP) {
|
||||
return false, false
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user