registration

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Log         logrus.FieldLogger
	Metrics     telemetry.Metrics
	Catalog     catalog.Catalog
	TrustDomain url.URL
	ServerCA    ca.ServerCA
}

Handler service is used to register SPIFFE IDs, and the attestation logic that should be performed on a workload before those IDs can be issued.

func (*Handler) AuthorizeCall

func (h *Handler) AuthorizeCall(ctx context.Context, fullMethod string) (_ context.Context, err error)

func (*Handler) CreateEntry

func (h *Handler) CreateEntry(ctx context.Context, request *common.RegistrationEntry) (_ *registration.RegistrationEntryID, err error)

CreateEntry creates an entry in the Registration table, used to assign SPIFFE IDs to nodes and workloads.

func (*Handler) CreateEntryIfNotExists added in v0.10.0

func (h *Handler) CreateEntryIfNotExists(ctx context.Context, request *common.RegistrationEntry) (resp *registration.CreateEntryIfNotExistsResponse, err error)

func (*Handler) CreateFederatedBundle

func (h *Handler) CreateFederatedBundle(ctx context.Context, request *registration.FederatedBundle) (_ *common.Empty, err error)

func (*Handler) CreateJoinToken

func (h *Handler) CreateJoinToken(ctx context.Context, request *registration.JoinToken) (_ *registration.JoinToken, err error)

func (*Handler) DeleteEntry

func (h *Handler) DeleteEntry(ctx context.Context, request *registration.RegistrationEntryID) (_ *common.RegistrationEntry, err error)

DeleteEntry deletes an entry in the Registration table

func (*Handler) DeleteFederatedBundle

func (h *Handler) DeleteFederatedBundle(ctx context.Context, request *registration.DeleteFederatedBundleRequest) (_ *common.Empty, err error)

func (*Handler) EvictAgent

EvictAgent removes a node from the attested nodes store

func (*Handler) FetchBundle

func (h *Handler) FetchBundle(ctx context.Context, request *common.Empty) (_ *registration.Bundle, err error)

FetchBundle retrieves the CA bundle.

func (*Handler) FetchEntries

func (h *Handler) FetchEntries(ctx context.Context, request *common.Empty) (_ *common.RegistrationEntries, err error)

FetchEntries retrieves all registered entries

func (*Handler) FetchEntry

func (h *Handler) FetchEntry(ctx context.Context, request *registration.RegistrationEntryID) (_ *common.RegistrationEntry, err error)

FetchEntry Retrieves a specific registered entry

func (*Handler) FetchFederatedBundle

func (h *Handler) FetchFederatedBundle(ctx context.Context, request *registration.FederatedBundleID) (_ *registration.FederatedBundle, err error)

func (*Handler) GetNodeSelectors

GetNodeSelectors returns node (agent) selectors

func (*Handler) ListAgents

ListAgents returns the list of attested nodes

func (*Handler) ListAllEntriesWithPages added in v0.9.3

func (h *Handler) ListAllEntriesWithPages(ctx context.Context, request *registration.ListAllEntriesRequest) (_ *registration.ListAllEntriesResponse, err error)

ListAllEntriesWithPages retrieves all registered entries with pagination.

func (*Handler) ListByParentID

func (h *Handler) ListByParentID(ctx context.Context, request *registration.ParentID) (_ *common.RegistrationEntries, err error)

ListByParentID Returns all the Entries associated with the ParentID value

func (*Handler) ListBySelector

func (h *Handler) ListBySelector(ctx context.Context, request *common.Selector) (_ *common.RegistrationEntries, err error)

ListBySelector returns all the Entries associated with the Selector

func (*Handler) ListBySelectors

func (h *Handler) ListBySelectors(ctx context.Context, request *common.Selectors) (_ *common.RegistrationEntries, err error)

ListBySelectors returns all the Entries associated with the Selectors

func (*Handler) ListBySpiffeID

func (h *Handler) ListBySpiffeID(ctx context.Context, request *registration.SpiffeID) (_ *common.RegistrationEntries, err error)

ListBySpiffeID returns all the Entries associated with the SPIFFE ID

func (*Handler) ListFederatedBundles

func (h *Handler) ListFederatedBundles(request *common.Empty, stream registration.Registration_ListFederatedBundlesServer) (err error)

func (*Handler) MintJWTSVID

func (*Handler) MintX509SVID

func (*Handler) UpdateEntry

func (h *Handler) UpdateEntry(ctx context.Context, request *registration.UpdateEntryRequest) (_ *common.RegistrationEntry, err error)

UpdateEntry updates a specific registered entry

func (*Handler) UpdateFederatedBundle

func (h *Handler) UpdateFederatedBundle(ctx context.Context, request *registration.FederatedBundle) (_ *common.Empty, err error)

Jump to

Keyboard shortcuts

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