Documentation
¶
Overview ¶
Package store contains a datastore for authorization policy evaluation.
Index ¶
- type Store
- func (s *Store) GetDataBrokerRecordOption() func(*rego.Rego)
- func (s *Store) UpdateGoogleCloudServerlessAuthenticationServiceAccount(serviceAccount string)
- func (s *Store) UpdateIssuer(issuer string)
- func (s *Store) UpdateJWTClaimHeaders(jwtClaimHeaders map[string]string)
- func (s *Store) UpdateRoutePolicies(routePolicies []config.Policy)
- func (s *Store) UpdateSigningKey(signingKey *jose.JSONWebKey)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
opastorage.Store
}
A Store stores data for the OPA rego policy evaluation.
func (*Store) GetDataBrokerRecordOption ¶
GetDataBrokerRecordOption returns a function option that can retrieve databroker data.
func (*Store) UpdateGoogleCloudServerlessAuthenticationServiceAccount ¶
UpdateGoogleCloudServerlessAuthenticationServiceAccount updates the google cloud serverless authentication service account in the store.
func (*Store) UpdateIssuer ¶
UpdateIssuer updates the issuer in the store. The issuer is used as part of JWT construction.
func (*Store) UpdateJWTClaimHeaders ¶
UpdateJWTClaimHeaders updates the jwt claim headers in the store.
func (*Store) UpdateRoutePolicies ¶
UpdateRoutePolicies updates the route policies in the store.
func (*Store) UpdateSigningKey ¶
func (s *Store) UpdateSigningKey(signingKey *jose.JSONWebKey)
UpdateSigningKey updates the signing key stored in the database. Signing operations in rego use JWKs, so we take in that format.