Documentation ¶
Index ¶
- func PrepareExternalGraphQLServer(cfg Config, certResolver api.CertificateResolver, ...) *http.Server
- func PrepareHydratorServer(cfg Config, tokenService tokens.Service, ...) *http.Server
- func PrepareInternalGraphQLServer(cfg Config, tokenResolver api.TokenResolver) *http.Server
- type Components
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrepareExternalGraphQLServer ¶
func PrepareExternalGraphQLServer(cfg Config, certResolver api.CertificateResolver, authContextMiddleware mux.MiddlewareFunc) *http.Server
func PrepareHydratorServer ¶
func PrepareHydratorServer(cfg Config, tokenService tokens.Service, subjectConsts certificates.CSRSubjectConsts, revokedCertsRepository revocation.RevocationListRepository) *http.Server
func PrepareInternalGraphQLServer ¶
func PrepareInternalGraphQLServer(cfg Config, tokenResolver api.TokenResolver) *http.Server
Types ¶
type Components ¶
type Components struct { TokenCache tokens.Cache TokenService tokens.Service Authenticator authentication.Authenticator RevocationsRepository revocation.RevocationListRepository SecretsRepository secrets.Repository CertificateUtility certificates.CertificateUtility CertificateService certificates.Service SubjectConsts certificates.CSRSubjectConsts }
func InitInternalComponents ¶
func InitInternalComponents(cfg Config, k8sClientset kubernetes.Interface) (Components, certificates.Loader)
type Config ¶
type Config struct { ExternalAddress string `envconfig:"default=127.0.0.1:3000"` InternalAddress string `envconfig:"default=127.0.0.1:3001"` APIEndpoint string `envconfig:"default=/graphql"` PlaygroundAPIEndpoint string `envconfig:"default=/graphql"` HydratorAddress string `envconfig:"default=127.0.0.1:8080"` CSRSubject struct { Country string `envconfig:"default=PL"` Organization string `envconfig:"default=Org"` OrganizationalUnit string `envconfig:"default=OrgUnit"` Locality string `envconfig:"default=Locality"` Province string `envconfig:"default=State"` } CertificateValidityTime time.Duration `envconfig:"default=2160h"` CASecret struct { Name string `envconfig:"default=kyma-integration/connector-service-app-ca"` CertificateKey string `envconfig:"default=ca.crt"` KeyKey string `envconfig:"default=ca.key"` } RootCASecret struct { Name string `envconfig:"optional"` CertificateKey string `envconfig:"optional"` } CertificateDataHeader string `envconfig:"default=Certificate-Data"` RevocationConfigMapName string `envconfig:"default=compass-system/revocations-Config"` Token struct { Length int `envconfig:"default=64"` RuntimeExpiration time.Duration `envconfig:"default=60m"` ApplicationExpiration time.Duration `envconfig:"default=5m"` CSRExpiration time.Duration `envconfig:"default=5m"` } DirectorURL string `envconfig:"default=127.0.0.1:3003"` CertificateSecuredConnectorURL string `envconfig:"default=https://compass-gateway-mtls.kyma.local"` }
Click to show internal directories.
Click to hide internal directories.