Documentation ¶
Index ¶
Constants ¶
View Source
const ( APIDefaultUserFlag = "api-default-user" APIDefaultPasswordFlag = "api-default-password" APIKeyPasswordFlag = "api-key-password" APIKeyPathFlag = "api-key-path" APIKeySaveOnCreateFlag = "api-key-save-on-create" APIgRPCPortFlag = "api-grpc-port" APIHTTPPortFlag = "api-http-port" APICORSAllowedOriginsFlags = "api-cors-allowed-origins" APICORSAllowedHeadersFlags = "api-cors-allowed-headers" APICORSAllowedMethodsFlags = "api-cors-allowed-methods" APIJWKSURLFlag = "api-jwks-url" APIStartEmbeddedOAuth2ServerFlag = "api-start-embedded-oauth-server" ServiceOAuth2EndpointFlag = "service-oauth2-token-endpoint" ServiceOAuth2ClientIDFlag = "service-oauth2-client-id" ServiceOAuth2ClientSecretFlag = "service-oauth2-client-secret" CloudServiceIDFlag = "cloud-service-id" AssessmentURLFlag = "assessment-url" OrchestratorURLFlag = "orchestrator-url" EvidenceStoreURLFlag = "evidence-store-url" DBUserNameFlag = "db-user-name" DBPasswordFlag = "db-password" DBHostFlag = "db-host" DBNameFlag = "db-name" DBPortFlag = "db-port" DBSSLModeFlag = "db-ssl-mode" DBInMemoryFlag = "db-in-memory" CreateDefaultTargetFlag = "target-default-create" DiscoveryAutoStartFlag = "discovery-auto-start" DiscoveryProviderFlag = "discovery-provider" DiscoveryResourceGroupFlag = "discovery-resource-group" DiscoveryCSAFDomainFlag = "discovery-csaf-domain" DashboardURLFlag = "dashboard-url" LogLevelFlag = "log-level" DefaultAPIDefaultUser = "clouditor" DefaultAPIDefaultPassword = "clouditor" DefaultAPIgRPCPort uint16 = 9090 DefaultAPIgRPCPortOrchestrator uint16 = 9090 DefaultAPIgRPCPortDiscovery uint16 = 9091 DefaultAPIgRPCPortEvidenceStore uint16 = 9092 DefaultAPIgRPCPortAssessment uint16 = 9093 DefaultAPIgRPCPortEvaluation uint16 = 9094 DefaultAPIHTTPPortOrchestrator uint16 = 8080 DefaultAPIHTTPPortDiscovery uint16 = 8081 DefaultAPIHTTPPortEvidenceStore uint16 = 8082 DefaultAPIHTTPPortAssessment uint16 = 8083 DefaultAPIHTTPPortEvaluation uint16 = 8084 DefaultAPIStartEmbeddedOAuth2Server = true DefaultServiceOAuth2Endpoint = "http://localhost:8080/v1/auth/token" DefaultServiceOAuth2ClientID = "clouditor" DefaultServiceOAuth2ClientSecret = "clouditor" DefaultOrchestratorURL = "localhost:9090" DefaultEvidenceStoreURL = "localhost:9090" DefaultAssessmentURL = "localhost:9090" DefaultDBUserName = "postgres" DefaultDBPassword = "postgres" DefaultDBHost = "localhost" DefaultDBName = "postgres" DefaultDBPort uint16 = 5432 DefaultDBSSLMode = "disable" DefaultDBInMemory = false DefaultCreateDefaultTarget = true DefaultDiscoveryAutoStart = false DefaultDiscoveryResourceGroup = "" DefaultCSAFDomain = "" DefaultDashboardURL = "http://localhost:8080" DefaultLogLevel = "info" EnvPrefix = "CLOUDITOR" )
View Source
const ( // DefaultCloudServiceID is the default service ID. Currently, our discoverers have no way to differentiate between different // services, but we need this feature in the future. This serves as a default to already prepare the necessary // structures for this feature. DefaultCloudServiceID = "00000000-0000-0000-0000-000000000000" EvidenceCollectorToolId = "Clouditor Evidences Collection" )
Variables ¶
View Source
var ( // DefaultAllowedOrigins contains a nil slice, as per default, no origins are allowed. DefaultAllowedOrigins []string = nil // DefaultAllowedHeaders contains sensible defaults for the Access-Control-Allow-Headers header. // Please adjust accordingly in production using WithAllowedHeaders. DefaultAllowedHeaders = []string{"Content-Type", "Accept", "Authorization"} // DefaultAllowedMethods contains sensible defaults for the Access-Control-Allow-Methods header. // Please adjust accordingly in production using WithAllowedMethods. DefaultAllowedMethods = []string{"GET", "POST", "PUT", "DELETE"} // DefaultAPIHTTPPort specifies the default port for the REST API. DefaultAPIHTTPPort uint16 = 8080 )
Functions ¶
func ClientCredentials ¶
func ClientCredentials() *clientcredentials.Config
ClientCredentials configures the OAuth 2.0 client credentials for a service
func InitConfig ¶
func InitConfig()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.