Documentation ¶
Index ¶
Constants ¶
View Source
const ( ResourceResults = "results" ResourceRecords = "records" PermissionCreate = "create" PermissionGet = "get" PermissionList = "list" PermissionDelete = "delete" PermissionUpdate = "update" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllowAll ¶
type AllowAll struct{}
AllowAll is an auth check that allows every request, regardless of the params. Useful for testing or cases where you want to disable auth checks.
type RBAC ¶
type RBAC struct {
// contains filtered or unexported fields
}
RBAC is a Kubernetes RBAC based auth checker. This uses the Kubernetes TokenReview and SubjectAccessReview APIs to defer auth decisions to the cluster. Users should pass in `token` metadata through the gRPC context. This checks RBAC permissions in the `results.tekton.dev` group, and assumes checks are done at the namespace
func NewRBAC ¶
func NewRBAC(client kubernetes.Interface) *RBAC
Click to show internal directories.
Click to hide internal directories.