Documentation
¶
Overview ¶
Package hostauthz authorizes an actor host report against the caller's SPIFFE identity, shared by the placement service and the scheduler's placement server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authorize ¶ added in v1.19.0
Authorize rejects a report whose app ID or namespace does not match the caller's SPIFFE identity, and reports claiming internal actor types (dapr.internal.<namespace>.<appid>.*) which do not belong to the reporting app. With mTLS disabled only the actor type check applies.
func InternalActorType ¶
InternalActorType reports whether actorType is a reserved internal actor type (dapr.internal.*) and, if so, whether it belongs to appID in namespace ns, that is whether it is "dapr.internal.<ns>.<appID>" or starts with it followed by a dot. The owner is matched as a prefix rather than parsed out of the type because a self-hosted namespace may contain dots; an app ID cannot, so the match is unambiguous within a namespace. A malformed internal type, such as one with an empty segment, is internal and owned by no one.