Crate bulwark_config

Crate bulwark_config 

Source
Expand description

Provides Bulwark’s configuration and configuration management functionality.

Modules§

toml
The toml module provides TOML deserialization and parsing for Bulwark’s configuration files.

Structs§

Config
The root of a Bulwark configuration.
Metrics
Configuration for metrics collection.
Permissions
The permissions granted to an associated plugin.
Plugin
The configuration for an individual plugin.
Preset
A mapping between a reference identifier and a list of plugins that form a preset plugin group.
Resource
A mapping between a route pattern and the plugins that should be run for matching requests.
Runtime
Configuration for the runtime environment.
Secret
Configuration for a secret that Bulwark will need to reference.
Service
Configuration for the services being launched.
State
Configuration for state managed by Bulwark plugins.
Thresholds
Configuration for the decision thresholds.

Enums§

ConfigFileError
This error will be returned if an attempt to load Bulwark’s configuration file fails.
ConfigSerializationError
This error will be returned if an attempt to serialize a config structure fails.
PluginAccess
The access control applied to the plugin.
PluginConversionError
This error will be returned if an attempt to convert a plugin fails.
PluginLocation
The location where the plugin WASM can be loaded from.
PluginVerification
Verification that plugin contents are what was expected.
Reference
Wraps reference strings and differentiates what the reference points to.
ResolutionError
This error will be returned if attempting to resolve references fails.
SecretConversionError
This error will be returned if an attempt to convert a secret fails.
SecretLocation
The location where a secret is stored.

Constants§

DEFAULT_ADMIN_PORT
The default Service::admin_port value.
DEFAULT_MAX_CONCURRENT_REQUESTS
The default Runtime::max_concurrent_requests value.
DEFAULT_MAX_PLUGIN_TASKS
The default Runtime::max_plugin_tasks value.
DEFAULT_OBSERVE_ONLY
The default Thresholds::observe_only value.
DEFAULT_PLUGIN_WEIGHT
The default Plugin::weight value.
DEFAULT_PORT
The default Service::port value.
DEFAULT_RESTRICT_THRESHOLD
The default Thresholds::restrict value.
DEFAULT_STATSD_BUFFER_SIZE
The default Metrics::statsd_buffer_size value.
DEFAULT_STATSD_PORT
The default Metrics::statsd_port value.
DEFAULT_STATSD_QUEUE_SIZE
The default Metrics::statsd_queue_size value.
DEFAULT_SUSPICIOUS_THRESHOLD
The default Thresholds::suspicious value.
DEFAULT_TRUST_THRESHOLD
The default Thresholds::trust value.