Documentation

Overview

    Package jwks manages downloading and updating the keys from a JWKS source for keys.

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    This section is empty.

    Types

    type Config

    type Config struct {
    	Database      database.Config
    	SecretManager secrets.Config
    
    	Port string `env:"PORT, default=8080"`
    }

    func (*Config) DatabaseConfig

    func (c *Config) DatabaseConfig() *database.Config

    func (*Config) SecretManagerConfig

    func (c *Config) SecretManagerConfig() *secrets.Config

    type Manager

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

      Manager handles updating all HealthAuthorities if they've specified a JWKS URI.

      func NewManager

      func NewManager(ctx context.Context, db *database.DB) (*Manager, error)

        NewManager creates a new Manager.

        func (*Manager) UpdateAll

        func (mgr *Manager) UpdateAll(ctx context.Context) error

          UpdateAll reads the JWKS keys for all HealthAuthorities.

          type Server

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

            Server is the debugger server.

            func NewServer

            func NewServer(config *Config, env *serverenv.ServerEnv) (*Server, error)

              NewServer makes a new debugger server.

              func (*Server) Routes

              func (s *Server) Routes(ctx context.Context) *http.ServeMux

              Source Files