Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ResourceResults - api results resource name ResourceResults = "results" // ResourceRecords - api record resource name ResourceRecords = "records" // ResourceLogs - api logs resource name ResourceLogs = "logs" // ResourceSummary - api summary ResourceSummary = "summary" // PermissionCreate - permission name to "create" resource PermissionCreate = "create" // PermissionGet - permission name to "get" resource PermissionGet = "get" // PermissionList - permission name to "list" resource PermissionList = "list" // PermissionDelete - permission name to "delete" resource PermissionDelete = "delete" // PermissionUpdate - permission name to "update" resource 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 Option ¶ added in v0.6.0
type Option func(*RBAC)
Option is configuration option for RBAC checker.
func WithImpersonation ¶ added in v0.6.0
WithImpersonation is an option function to enable Impersonation
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
Click to show internal directories.
Click to hide internal directories.