store

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package store contains a datastore for authorization policy evaluation.

Index

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 New

func New() *Store

New creates a new Store.

func (*Store) GetDataBrokerRecordOption

func (s *Store) GetDataBrokerRecordOption() func(*rego.Rego)

GetDataBrokerRecordOption returns a function option that can retrieve databroker data.

func (*Store) UpdateGoogleCloudServerlessAuthenticationServiceAccount

func (s *Store) UpdateGoogleCloudServerlessAuthenticationServiceAccount(serviceAccount string)

UpdateGoogleCloudServerlessAuthenticationServiceAccount updates the google cloud serverless authentication service account in the store.

func (*Store) UpdateJWTClaimHeaders

func (s *Store) UpdateJWTClaimHeaders(jwtClaimHeaders map[string]string)

UpdateJWTClaimHeaders updates the jwt claim headers in the store.

func (*Store) UpdateRoutePolicies

func (s *Store) UpdateRoutePolicies(routePolicies []config.Policy)

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.

Jump to

Keyboard shortcuts

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