Documentation ¶
Index ¶
- type Handler
- func (h *Handler) AuthorizeCall(ctx context.Context, fullMethod string) (context.Context, error)
- func (h *Handler) CreateEntry(ctx context.Context, request *common.RegistrationEntry) (_ *registration.RegistrationEntryID, err error)
- func (h *Handler) CreateFederatedBundle(ctx context.Context, request *registration.FederatedBundle) (_ *common.Empty, err error)
- func (h *Handler) CreateJoinToken(ctx context.Context, request *registration.JoinToken) (_ *registration.JoinToken, err error)
- func (h *Handler) DeleteEntry(ctx context.Context, request *registration.RegistrationEntryID) (_ *common.RegistrationEntry, err error)
- func (h *Handler) DeleteFederatedBundle(ctx context.Context, request *registration.DeleteFederatedBundleRequest) (_ *common.Empty, err error)
- func (h *Handler) EvictAgent(ctx context.Context, evictRequest *registration.EvictAgentRequest) (*registration.EvictAgentResponse, error)
- func (h *Handler) FetchBundle(ctx context.Context, request *common.Empty) (_ *registration.Bundle, err error)
- func (h *Handler) FetchEntries(ctx context.Context, request *common.Empty) (_ *common.RegistrationEntries, err error)
- func (h *Handler) FetchEntry(ctx context.Context, request *registration.RegistrationEntryID) (_ *common.RegistrationEntry, err error)
- func (h *Handler) FetchFederatedBundle(ctx context.Context, request *registration.FederatedBundleID) (_ *registration.FederatedBundle, err error)
- func (h *Handler) GetNodeSelectors(ctx context.Context, req *registration.GetNodeSelectorsRequest) (*registration.GetNodeSelectorsResponse, error)
- func (h *Handler) ListAgents(ctx context.Context, listReq *registration.ListAgentsRequest) (*registration.ListAgentsResponse, error)
- func (h *Handler) ListByParentID(ctx context.Context, request *registration.ParentID) (_ *common.RegistrationEntries, err error)
- func (h *Handler) ListBySelector(ctx context.Context, request *common.Selector) (_ *common.RegistrationEntries, err error)
- func (h *Handler) ListBySelectors(ctx context.Context, request *common.Selectors) (_ *common.RegistrationEntries, err error)
- func (h *Handler) ListBySpiffeID(ctx context.Context, request *registration.SpiffeID) (_ *common.RegistrationEntries, err error)
- func (h *Handler) ListFederatedBundles(request *common.Empty, ...) (err error)
- func (h *Handler) MintJWTSVID(ctx context.Context, req *registration.MintJWTSVIDRequest) (_ *registration.MintJWTSVIDResponse, err error)
- func (h *Handler) MintX509SVID(ctx context.Context, req *registration.MintX509SVIDRequest) (_ *registration.MintX509SVIDResponse, err error)
- func (h *Handler) UpdateEntry(ctx context.Context, request *registration.UpdateEntryRequest) (_ *common.RegistrationEntry, err error)
- func (h *Handler) UpdateFederatedBundle(ctx context.Context, request *registration.FederatedBundle) (_ *common.Empty, err error)
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 (*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) 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 ¶
func (h *Handler) EvictAgent(ctx context.Context, evictRequest *registration.EvictAgentRequest) (*registration.EvictAgentResponse, error)
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 ¶
func (h *Handler) GetNodeSelectors(ctx context.Context, req *registration.GetNodeSelectorsRequest) (*registration.GetNodeSelectorsResponse, error)
GetNodeSelectors returns node (agent) selectors
func (*Handler) ListAgents ¶
func (h *Handler) ListAgents(ctx context.Context, listReq *registration.ListAgentsRequest) (*registration.ListAgentsResponse, error)
ListAgents returns the list of attested nodes
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 (h *Handler) MintJWTSVID(ctx context.Context, req *registration.MintJWTSVIDRequest) (_ *registration.MintJWTSVIDResponse, err error)
func (*Handler) MintX509SVID ¶
func (h *Handler) MintX509SVID(ctx context.Context, req *registration.MintX509SVIDRequest) (_ *registration.MintX509SVIDResponse, err error)
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)