Documentation
¶
Overview ¶
Package mainserver implements the main entry point logic for the server, managing CertAuth, CertSec, and Onboard services.
Index ¶
Constants ¶
const ( ALTIA_LOCAL = "local" ALTIA_DEV = "altia-dev" ISBE_DEV = "isbe-dev" ISBE_PRE = "isbe-pre" ISBE_PRO = "isbe-pro" )
We define several profiles, to facilitate configuration if an environment matches one of the profiles. To run the server in a specific profile, use the -profile flag or the PROFILE environment variable, with the value of the profile you want to use. No other environment variables are required when using a profile, except for the TSA and email server credentials.
Variables ¶
This section is empty.
Functions ¶
func GetBoolEnvOrDefault ¶
GetBoolEnvOrDefault gets an environment variable or returns a default value.
func GetStringEnvOrDefault ¶
GetStringEnvOrDefault gets an environment variable or returns a default value
Types ¶
type Config ¶
type Config struct {
Development bool
OnboardURL string
OnboardPort string
PrivateArea string
TMFServerURL string
CertAuthConfig *certauth.Config
PredefinedRPs []PredefinedRP
}
Config is the configuration for the server. It contains the configuration for CertAuth, CertSec and Onboard servers.
func LoadConfig ¶
LoadConfig parses flags, environment variables, and config files to return the server configuration.
type EmailCreds ¶
type PredefinedRP ¶
type PredefinedRP struct {
RelyingParty *models.RelyingParty
ClientSecret string
}
type SecretConfig ¶
type SecretConfig struct {
AgeRecipient string `yaml:"age_recipient"`
TSACreds TSACreds `yaml:"tsa"`
EmailCreds EmailCreds `yaml:"email"`
}