@@ -15,28 +15,18 @@ namespace components {
1515
1616// / @ingroup userver_components
1717// /
18- // / @brief Component that stores security related data (keys, passwords, ...).
18+ // / @brief Base component that stores security related data (keys, passwords, ...).
1919// /
20- // / The component must be configured in service config .
20+ // / You can use a ready-made components::Secdist or implement your own .
2121// /
22- // / Secdist requires a provider storages::secdist::SecdistProvider
23- // / You can implement your own or use components::DefaultSecdistProvider
22+ // / ### Writing your own secrets distributor:
23+ // / Implement a custom provider class that contains the settings.
24+ // / @snippet core/include/userver/storages/secdist/default_provider.hpp Sample secdist - default provider
2425// /
25- // / ## Static configuration example:
26+ // / Implement a custom secdist component, configure it's static config schema
27+ // / and pass the custom provider to the storages::secdist::SecdistConfig::Settings.
28+ // / @snippet core/include/userver/storages/secdist/component.сpp Sample secdist - default secdist
2629// /
27- // / @snippet samples/redis_service/static_config.yaml Sample secdist static config
28- // /
29- // / ## Static options:
30- // / Name | Description | Default value
31- // / ---- | ----------- | -------------
32- // / provider | optional secdist provider component name | 'default-secdist-provider'
33- // / config | path to the config file with data | ''
34- // / format | config format, either `json` or `yaml` | 'json'
35- // / missing-ok | do not terminate components load if no file found by the config option | false
36- // / environment-secrets-key | name of environment variable from which to load additional data | -
37- // / update-period | period between data updates in utils::StringToDuration() suitable format ('0s' for no updates) | 0s
38- // / blocking-task-processor | name of task processor for background blocking operations | --
39-
4030// clang-format on
4131
4232class SecdistComponentBase : public LoggableComponentBase {
0 commit comments