2023-06-26 12:23:05 +00:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
2023-08-11 13:12:13 +00:00
|
|
|
// SPDX-License-Identifier: BUSL-1.1
|
2023-06-26 12:23:05 +00:00
|
|
|
|
|
|
|
//go:build !consulent
|
|
|
|
|
|
|
|
package resource
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/hashicorp/consul/acl"
|
|
|
|
"github.com/hashicorp/consul/proto-public/pbresource"
|
|
|
|
)
|
|
|
|
|
|
|
|
// AuthorizerContext builds an ACL AuthorizerContext for the given tenancy.
|
|
|
|
func AuthorizerContext(t *pbresource.Tenancy) *acl.AuthorizerContext {
|
2024-01-29 20:08:31 +00:00
|
|
|
// TODO(peering/v2) handle non-local peers here
|
|
|
|
return &acl.AuthorizerContext{}
|
2023-06-26 12:23:05 +00:00
|
|
|
}
|