-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathbinds.go
More file actions
75 lines (74 loc) · 4.36 KB
/
binds.go
File metadata and controls
75 lines (74 loc) · 4.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
package params
var EnvVarsBinds = []struct {
Key string
Env string
Default string
}{
{BaseURIKey, BaseURIEnv, ""},
{ProxyTypeKey, ProxyTypeEnv, "basic"},
{ProxyDomainKey, ProxyDomainEnv, ""},
{BaseAuthURIKey, BaseAuthURIEnv, ""},
{AstAPIKey, AstAPIKeyEnv, ""},
{IgnoreProxyKey, IgnoreProxyEnv, ""},
{AgentNameKey, AgentNameEnv, "ASTCLI"},
{CodeBashingPathKey, ScansPathEnv, "api/codebashing/lessons"},
{CustomStatesAPIPathKey, CustomStatesAPIPathEnv, "api/custom-states"},
{ScansPathKey, ScansPathEnv, "api/scans"},
{ProjectsPathKey, ProjectsPathEnv, "api/projects"},
{ApplicationsPathKey, ApplicationsPathEnv, "api/applications"},
{GroupsPathKey, GroupsPathEnv, "auth/realms/organization/pip/groups"},
{ResultsPathKey, ResultsPathEnv, "api/results"},
{ScanSummaryPathKey, ScanSummaryPathEnv, "api/scan-summary"},
{RisksOverviewPathKey, RisksOverviewPathEnv, "api/apisec/static/api/scan/%s/risks-overview"},
{ScsScanOverviewPathKey, ScsScanOverviewPathEnv, "api/micro-engines/read/scans/%s/scan-overview"},
{SastResultsPathKey, SastResultsPathEnv, "api/sast-results"},
{SastResultsPredicatesPathKey, SastResultsPredicatesPathEnv, "api/sast-results-predicates"},
{KicsResultsPathKey, KicsResultsPathEnv, "api/kics-results"},
{KicsResultsPredicatesPathKey, KicsResultsPredicatesPathEnv, "api/kics-results-predicates"},
{ScsResultsReadPredicatesPathKey, ScsResultsReadPredicatesPathEnv, "api/micro-engines/read/predicates"},
{ScsResultsWritePredicatesPathKey, ScsResultsWritePredicatesPathEnv, "api/micro-engines/write/predicates"},
{BflPathKey, BflPathEnv, "api/bfl"},
{PRDecorationGithubPathKey, PRDecorationGithubPathEnv, "api/flow-publisher/pr/github"},
{PRDecorationGitlabPathKey, PRDecorationGitlabPathEnv, "api/flow-publisher/pr/gitlab"},
{PRDecorationBitbucketCloudPathKey, PRDecorationBitbucketCloudPathEnv, "api/flow-publisher/pr/bitbucket"},
{PRDecorationBitbucketServerPathKey, PRDecorationBitbucketServerPathEnv, "api/flow-publisher/pr/bitbucket-server"},
{PRDecorationAzurePathKey, PRDecorationAzurePathEnv, "api/flow-publisher/pr/azure"},
{DescriptionsPathKey, DescriptionsPathEnv, "api/queries/descriptions"},
{TenantConfigurationPathKey, TenantConfigurationPathEnv, "api/configuration/tenant"},
{UploadsPathKey, UploadsPathEnv, "api/uploads"},
{SastRmPathKey, SastRmPathEnv, "api/sast-rm"},
{AstWebAppHealthCheckPathKey, AstWebAppHealthCheckPathEnv, "#/projects"},
{AstKeycloakWebAppHealthCheckPathKey, AstKeycloakWebAppHealthCheckPathEnv, "auth"},
{HealthcheckPathKey, HealthcheckPathEnv, "api/healthcheck"},
{HealthcheckDBPathKey, HealthcheckDBPathEnv, "database"},
{HealthcheckMessageQueuePathKey, HealthcheckMessageQueuePathEnv, "message-queue"},
{HealthcheckObjectStorePathKey, HealthcheckObjectStorePathEnv, "object-store"},
{HealthcheckInMemoryDBPathKey, HealthcheckInMemoryDBPathEnv, "in-memory-db"},
{HealthcheckLoggingPathKey, HealthcheckLoggingPathEnv, "logging"},
{HealthcheckScanFlowPathKey, HealthcheckScanFlowPathEnv, "scan-flow"},
{HealthcheckSastEnginesPathKey, HealthcheckSastEnginesPathEnv, "sast-engines"},
{QueriesPathKey, QueriesPathEnv, "api/queries"},
{QueriesClonePathKey, QueriesCLonePathEnv, "clone"},
{CreateOath2ClientPathKey, CreateOath2ClientPathEnv, "auth/realms/organization/pip/clients"},
{SastMetadataPathKey, SastScanIncPathEnv, "api/sast-metadata"},
{SastMetadataMetricsPathKey, SastScanIncMetricsPathEnv, "%s/metrics"},
{LogsPathKey, LogsPathEnv, "api/logs"},
{LogsEngineLogPathKey, LogsEngineLogPathEnv, "/%s/%s"},
{AccessKeyIDConfigKey, AccessKeyIDEnv, ""},
{AccessKeySecretConfigKey, AccessKeySecretEnv, ""},
{TenantKey, TenantEnv, ""},
{BranchKey, BranchEnv, ""},
{AstRoleKey, AstRoleEnv, ScaAgent},
{TokenExpirySecondsKey, TokenExpirySecondsEnv, "300"},
{ClientTimeoutKey, ClientTimeoutEnv, "30"},
{ResultsPdfReportPathKey, ResultsPdfReportPathEnv, "api/reports"},
{ExportPathKey, ExportPathEnv, "api/sca/export"},
{FeatureFlagsKey, FeatureFlagsEnv, "api/flags"},
{PolicyEvaluationPathKey, PolicyEvaluationPathEnv, "api/policy_management_service_uri/evaluation"},
{AccessManagementPathKey, AccessManagementPathEnv, "api/access-management"},
{ByorPathKey, ByorPathEnv, "api/byor"},
{AiProxyAzureAiRouteKey, AiProxyAzureAiRouteEnv, "api/ai-proxy/redirect/externalAzure"},
{AiProxyCheckmarxAiRouteKey, AiProxyCheckmarxAiRouteEnv, "api/ai-proxy/redirect/azure"},
{ASCAPortKey, ASCAPortEnv, ""},
{ScsRepoTokenKey, ScsRepoTokenEnv, ""},
}