luci: Index | Files

package rpcacl

import ""

Package rpcacl contains helpers for checking ACLs of individual RPCs.


Package Files



const AdminGroup = "administrators"

AdminGroup is a name of a group with accounts that can use Admin API.

func CheckAdmin Uses

func CheckAdmin(ctx context.Context) error

CheckAdmin returns nil if the caller is an administrator.

Returns PermissionDenied gRPC error otherwise. It also logs the admin access.

Package rpcacl imports 5 packages (graph). Updated 2020-11-27. Refresh now. Tools for package owners.