Zum Hauptinhalt springen

Environment Variables

Environment variables for the policies service

NameIntroduction VersionTypeDescriptionDefault Value
POLICIES_GRPC_ADDR1.0.0stringThe bind address of the GRPC service.127.0.0.1:9125
POLICIES_DEBUG_ADDR1.0.0stringBind address of the debug server, where metrics, health, config and debug endpoints will be exposed.127.0.0.1:9129
POLICIES_DEBUG_TOKEN1.0.0stringToken to secure the metrics endpoint.
POLICIES_DEBUG_PPROF1.0.0boolEnables pprof, which can be used for profiling.false
POLICIES_DEBUG_ZPAGES1.0.0boolEnables zpages, which can be used for collecting and viewing in-memory traces.false
OC_EVENTS_ENDPOINT
POLICIES_EVENTS_ENDPOINT
1.0.0stringThe address of the event system. The event system is the message queuing service. It is used as message broker for the microservice architecture.127.0.0.1:9233
OC_EVENTS_CLUSTER
POLICIES_EVENTS_CLUSTER
1.0.0stringThe clusterID of the event system. The event system is the message queuing service. It is used as message broker for the microservice architecture. Mandatory when using NATS as event system.opencloud-cluster
OC_INSECURE
POLICIES_EVENTS_TLS_INSECURE
1.0.0boolWhether the server should skip the client certificate verification during the TLS handshake.false
OC_EVENTS_TLS_ROOT_CA_CERTIFICATE
POLICIES_EVENTS_TLS_ROOT_CA_CERTIFICATE
1.0.0stringThe root CA certificate used to validate the server's TLS certificate. If provided POLICIES_EVENTS_TLS_INSECURE will be seen as false.
OC_EVENTS_ENABLE_TLS
POLICIES_EVENTS_ENABLE_TLS
1.0.0boolEnable TLS for the connection to the events broker. The events broker is the OpenCloud service which receives and delivers events between the services.false
OC_EVENTS_AUTH_USERNAME
POLICIES_EVENTS_AUTH_USERNAME
1.0.0stringThe username to authenticate with the events broker. The events broker is the OpenCloud service which receives and delivers events between the services.
OC_EVENTS_AUTH_PASSWORD
POLICIES_EVENTS_AUTH_PASSWORD
1.0.0stringThe password to authenticate with the events broker. The events broker is the OpenCloud service which receives and delivers events between the services.
OC_LOG_LEVEL
POLICIES_LOG_LEVEL
1.0.0stringThe log level. Valid values are: 'panic', 'fatal', 'error', 'warn', 'info', 'debug', 'trace'.
OC_LOG_PRETTY
POLICIES_LOG_PRETTY
1.0.0boolActivates pretty log output.false
OC_LOG_COLOR
POLICIES_LOG_COLOR
1.0.0boolActivates colorized log output.false
OC_LOG_FILE
POLICIES_LOG_FILE
1.0.0stringThe path to the log file. Activates logging to this file if set.
POLICIES_ENGINE_TIMEOUT1.0.0DurationSets the timeout the rego expression evaluation can take. Rules default to deny if the timeout was reached. See the Environment Variable Types description for more details.10s
POLICIES_ENGINE_MIMES1.0.0stringSets the mimes file path which maps mimetypes to associated file extensions. See the text description for details.
POLICIES_POSTPROCESSING_QUERY1.0.0stringDefines the 'Complete Rules' variable defined in the rego rule set this step uses for its evaluation. Defaults to deny if the variable was not found.
OC_TRACING_ENABLED
POLICIES_TRACING_ENABLED
1.0.0boolActivates tracing.false
OC_TRACING_TYPE
POLICIES_TRACING_TYPE
1.0.0stringThe type of tracing. Defaults to '', which is the same as 'jaeger'. Allowed tracing types are 'jaeger' and '' as of now.
OC_TRACING_ENDPOINT
POLICIES_TRACING_ENDPOINT
1.0.0stringThe endpoint of the tracing agent.
OC_TRACING_COLLECTOR
POLICIES_TRACING_COLLECTOR
1.0.0stringThe HTTP endpoint for sending spans directly to a collector, i.e. \http://jaeger-collector:14268/api/traces. Only used if the tracing endpoint is unset.