in src/go/configmanager/flags/flags.go [225:333]
func EnvoyConfigOptionsFromFlags() options.ConfigGeneratorOptions {
opts := options.ConfigGeneratorOptions{
CommonOptions: commonflags.DefaultCommonOptionsFromFlags(),
BackendAddress: *BackendAddress,
EnableBackendAddressOverride: *EnableBackendAddressOverride,
AccessLog: *AccessLog,
AccessLogFormat: *AccessLogFormat,
ComputePlatformOverride: *ComputePlatformOverride,
CorsAllowCredentials: *CorsAllowCredentials,
CorsAllowHeaders: *CorsAllowHeaders,
CorsAllowMethods: *CorsAllowMethods,
CorsAllowOrigin: *CorsAllowOrigin,
CorsAllowOriginRegex: *CorsAllowOriginRegex,
CorsExposeHeaders: *CorsExposeHeaders,
CorsMaxAge: *CorsMaxAge,
CorsPreset: *CorsPreset,
CorsOperationDelimiter: *CorsOperationDelimiter,
BackendDnsLookupFamily: *BackendDnsLookupFamily,
ClusterConnectTimeout: *ClusterConnectTimeout,
StreamIdleTimeout: *StreamIdleTimeout,
ListenerAddress: *ListenerAddress,
ServiceManagementURL: *ServiceManagementURL,
ServiceControlURL: *ServiceControlURL,
ListenerPort: *ListenerPort,
Healthz: *Healthz,
HealthCheckOperation: *HealthCheckOperation,
HealthCheckAutogeneratedOperationPrefix: *HealthCheckAutogeneratedOperationPrefix,
HealthCheckGrpcBackend: *HealthCheckGrpcBackend,
HealthCheckGrpcBackendService: *HealthCheckGrpcBackendService,
HealthCheckGrpcBackendInterval: *HealthCheckGrpcBackendInterval,
HealthCheckGrpcBackendNoTrafficInterval: *HealthCheckGrpcBackendNoTrafficInterval,
SslSidestreamClientRootCertsPath: *SslSidestreamClientRootCertsPath,
SslBackendClientCertPath: *SslBackendClientCertPath,
SslBackendClientRootCertsPath: *SslBackendClientRootCertsPath,
SslBackendClientCipherSuites: *SslBackendClientCipherSuites,
SslServerCertPath: *SslServerCertPath,
SslServerCipherSuites: *SslServerCipherSuites,
SslServerRootCertPath: *SslServerRootCertsPath,
SslMinimumProtocol: *SslMinimumProtocol,
SslMaximumProtocol: *SslMaximumProtocol,
EnableHSTS: *EnableHSTS,
DnsResolverAddresses: *DnsResolverAddresses,
AddRequestHeaders: *AddRequestHeaders,
AppendRequestHeaders: *AppendRequestHeaders,
AddResponseHeaders: *AddResponseHeaders,
AppendResponseHeaders: *AppendResponseHeaders,
EnableOperationNameHeader: *EnableOperationNameHeader,
ServiceAccountKey: *ServiceAccountKey,
TokenAgentPort: *TokenAgentPort,
EnableApplicationDefaultCredentials: *EnableApplicationDefaultCredentials,
DisableOidcDiscovery: *DisableOidcDiscovery,
DependencyErrorBehavior: *DependencyErrorBehavior,
SkipJwtAuthnFilter: *SkipJwtAuthnFilter,
SkipServiceControlFilter: *SkipServiceControlFilter,
EnvoyUseRemoteAddress: *EnvoyUseRemoteAddress,
EnvoyXffNumTrustedHops: *EnvoyXffNumTrustedHops,
LogJwtPayloads: *LogJwtPayloads,
LogRequestHeaders: *LogRequestHeaders,
LogResponseHeaders: *LogResponseHeaders,
MinStreamReportIntervalMs: *MinStreamReportIntervalMs,
SuppressEnvoyHeaders: *SuppressEnvoyHeaders,
UnderscoresInHeaders: *UnderscoresInHeaders,
NormalizePath: *NormalizePath,
MergeSlashesInPath: *MergeSlashesInPath,
DisallowEscapedSlashesInPath: *DisallowEscapedSlashesInPath,
ServiceControlNetworkFailOpen: *ServiceControlNetworkFailOpen,
ServiceControlEnableApiKeyUidReporting: *ServiceControlEnableApiKeyUidReporting,
EnableGrpcForHttp1: *EnableGrpcForHttp1,
ConnectionBufferLimitBytes: *ConnectionBufferLimitBytes,
DisableJwksAsyncFetch: *DisableJwksAsyncFetch,
JwksAsyncFetchFastListener: *JwksAsyncFetchFastListener,
JwksCacheDurationInS: *JwksCacheDurationInS,
JwksFetchNumRetries: *JwksFetchNumRetries,
JwksFetchRetryBackOffBaseInterval: time.Duration(*JwksFetchRetryBackOffBaseIntervalMs) * time.Millisecond,
JwksFetchRetryBackOffMaxInterval: time.Duration(*JwksFetchRetryBackOffMaxIntervalMs) * time.Millisecond,
JwtPadForwardPayloadHeader: *JwtPatForwardPayloadHeader,
JwtCacheSize: *JwtCacheSize,
DisableJwtAudienceServiceNameCheck: *DisableJwtAudienceServiceNameCheck,
BackendRetryOns: *BackendRetryOns,
BackendRetryNum: *BackendRetryNum,
BackendPerTryTimeout: *BackendPerTryTimeout,
BackendRetryOnStatusCodes: *BackendRetryOnStatusCodes,
ScCheckTimeoutMs: *ScCheckTimeoutMs,
ScQuotaTimeoutMs: *ScQuotaTimeoutMs,
ScReportTimeoutMs: *ScReportTimeoutMs,
ScCheckRetries: *ScCheckRetries,
ScQuotaRetries: *ScQuotaRetries,
ScReportRetries: *ScReportRetries,
BackendClusterMaxRequests: *BackendClusterMaxRequests,
TranscodingAlwaysPrintPrimitiveFields: *TranscodingAlwaysPrintPrimitiveFields,
TranscodingAlwaysPrintEnumsAsInts: *TranscodingAlwaysPrintEnumsAsInts,
TranscodingStreamNewLineDelimited: *TranscodingStreamNewLineDelimited,
TranscodingPreserveProtoFieldNames: *TranscodingPreserveProtoFieldNames,
TranscodingIgnoreQueryParameters: *TranscodingIgnoreQueryParameters,
TranscodingIgnoreUnknownQueryParameters: *TranscodingIgnoreUnknownQueryParameters,
TranscodingQueryParametersDisableUnescapePlus: *TranscodingQueryParametersDisableUnescapePlus,
TranscodingMatchUnregisteredCustomVerb: *TranscodingMatchUnregisteredCustomVerb,
TranscodingCaseInsensitiveEnumParsing: *TranscodingCaseInsensitiveEnumParsing,
EnableResponseCompression: *EnableResponseCompression,
ClientIPFromForwardedHeader: *ClientIPFromForwardedHeader,
// These options are not for ESPv2 users. They are overridden internally.
APIAllowList: []string{},
AllowDiscoveryAPIs: false,
}
glog.Infof("Config Generator options: %+v", opts)
return opts
}