servicers

package
v0.0.0-...-89602ce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Accessd service provides the gRPC interface for cloud services & REST server to check & manage Identity access permissions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessControlServer

type AccessControlServer struct {
	// contains filtered or unexported fields
}

func NewAccessdServer

func NewAccessdServer(store storage.AccessdStorage) *AccessControlServer

func (*AccessControlServer) CheckPermissions

Returns the managing Identity's permissions for a given entity NOTE: Takes into account wildcards for the entity's type in the ACL

func (*AccessControlServer) DeleteEntity

func (srv *AccessControlServer) DeleteEntity(ctx context.Context, ent *protos.Identity) (*protos.Void, error)

Cleanup a given entity from all Operators' ACLs TBD: This needs to be implemented to avoid security venerability when deleting

a network with customer selected ID (vs. generated by the cloud ID)

func (*AccessControlServer) DeleteOperator

func (srv *AccessControlServer) DeleteOperator(ctx context.Context, oper *protos.Identity) (*protos.Void, error)

DeleteOperator Removes all operator's permissions (the entire operator's ACL)

func (*AccessControlServer) GetOperatorACL

GetOperatorACL Returns the managing Identity's permissions list

func (*AccessControlServer) GetOperatorsACLs

GetOperatorsACLs Returns the managing Identities' permissions list

func (*AccessControlServer) GetPermissions

Returns the managing Identity's permissions for a given entity NOTE: Takes into account wildcards for the entity's type in the ACL

func (*AccessControlServer) ListOperators

func (srv *AccessControlServer) ListOperators(ctx context.Context, _ *protos.Void) (*protos.Identity_List, error)

Lists all globally registered operators on the cloud

func (*AccessControlServer) SetOperator

SetOperator Overwrites Permissions for operator Identity to manage others Request includes ACL to add for the Operator

func (*AccessControlServer) UpdateOperator

AddACL Adds Permissions for one Identity to manage others Request includes ACL to add for the Operator

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL