luci: go.chromium.org/luci/cipd/appengine/impl/rpcacl Index | Files

package rpcacl

import "go.chromium.org/luci/cipd/appengine/impl/rpcacl"

Package rpcacl contains helpers for checking ACLs of individual RPCs.

Index

Package Files

admin.go

Constants

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.