# BR-CFG-04

Quand une valeur est donnée à plusieurs endroits, alors les arguments explicites priment, puis les variables PIIGHOST_*, puis le fichier ou le catalogue.

Défini dans [Configurer un pipeline par fichier, catalogue et ligne de commande](https://docs.piighost.dev/fr/domain/operations/configuration-and-catalog/#br-cfg-04).

## Où vit la règle

- [`PipelineConfig.settings_customise_sources()`](https://github.com/Athroniaeth/piighost/blob/master/src/piighost/config/settings.py#L129)

## Tests directs

Aucun test n'appelle ce code directement.

## Tests indirects

- [`tests/acceptance/test_dpo.py::TestChosenGroups::test_a_removed_group_leaves_its_values_clear`](https://github.com/Athroniaeth/piighost/blob/master/tests/acceptance/test_dpo.py#L74)
- [`tests/acceptance/test_dpo.py::TestSecretsLeaveAsTokens::test_an_api_key_leaves_as_a_token`](https://github.com/Athroniaeth/piighost/blob/master/tests/acceptance/test_dpo.py#L64)
- [`tests/acceptance/test_ops.py::TestSecretsFromTheEnvironment::test_a_full_redis_config_without_its_secrets_does_not_build`](https://github.com/Athroniaeth/piighost/blob/master/tests/acceptance/test_ops.py#L78)
- [`tests/acceptance/test_ops.py::TestSecretsFromTheEnvironment::test_the_same_config_builds_with_its_secrets`](https://github.com/Athroniaeth/piighost/blob/master/tests/acceptance/test_ops.py#L93)
- [`tests/config/test_catalog_config.py::TestLoadConfigFromTheCatalog::test_a_1x_hub_reference_still_loads`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_catalog_config.py#L95)
- [`tests/config/test_catalog_config.py::TestLoadConfigFromTheCatalog::test_a_body_that_is_not_toml_names_the_reference`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_catalog_config.py#L73)
- [`tests/config/test_catalog_config.py::TestLoadConfigFromTheCatalog::test_a_path_is_still_a_path`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_catalog_config.py#L89)
- [`tests/config/test_catalog_config.py::TestLoadConfigFromTheCatalog::test_a_reference_loads_the_configuration_it_names`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_catalog_config.py#L42)
- [`tests/config/test_catalog_config.py::TestLoadConfigFromTheCatalog::test_an_invalid_configuration_names_the_reference`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_catalog_config.py#L81)
- [`tests/config/test_catalog_config.py::TestLoadConfigFromTheCatalog::test_load_pipeline_builds_and_runs_it`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_catalog_config.py#L57)
- [`tests/config/test_catalog_config.py::TestLoadConfigFromTheCatalog::test_load_thread_pipeline_takes_a_reference`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_catalog_config.py#L66)
- [`tests/config/test_catalog_config.py::TestLoadConfigFromTheCatalog::test_the_environment_still_overrides_the_catalog`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_catalog_config.py#L50)
- [`tests/config/test_json.py::TestLoadJson::test_invalid_json_raises_config_file_error`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_json.py#L39)
- [`tests/config/test_json.py::TestLoadJson::test_invalid_schema_raises_config_validation_error`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_json.py#L46)
- [`tests/config/test_json.py::TestLoadJson::test_json_builds_a_working_pipeline`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_json.py#L33)
- [`tests/config/test_json.py::TestLoadJson::test_uppercase_json_suffix_is_recognized`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_json.py#L54)
- [`tests/config/test_json.py::TestLoadJson::test_valid_json_parses`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_json.py#L28)
- [`tests/config/test_redis_memory.py::TestLoadRedisThreadPipeline::test_builds_a_thread_pipeline_with_redis`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_redis_memory.py#L94)
- [`tests/config/test_settings.py::TestEnvOverride::test_env_overrides_a_top_level_scalar`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_settings.py#L101)
- [`tests/config/test_settings.py::TestGuardEffect::test_detector_guard_raises_on_residual`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_settings.py#L203)
- [`tests/config/test_settings.py::TestHashFactoryEndToEnd::test_label_hash_renders_a_hashed_token`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_settings.py#L229)
- [`tests/config/test_settings.py::TestLoadConfig::test_context_var_does_not_leak_between_loads`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_settings.py#L90)
- [`tests/config/test_settings.py::TestLoadConfig::test_invalid_schema_raises_config_validation_error`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_settings.py#L62)
- [`tests/config/test_settings.py::TestLoadConfig::test_invalid_toml_raises_config_file_error`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_settings.py#L57)
- [`tests/config/test_settings.py::TestLoadConfig::test_missing_file_raises_config_file_error`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_settings.py#L52)
- [`tests/config/test_settings.py::TestLoadConfig::test_uncompilable_regex_raises_config_validation_error`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_settings.py#L70)
- [`tests/config/test_settings.py::TestLoadConfig::test_unreadable_file_raises_config_file_error`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_settings.py#L78)
- [`tests/config/test_settings.py::TestLoadConfig::test_valid_toml_parses`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_settings.py#L46)
- [`tests/config/test_settings.py::TestLoadPipeline::test_builds_a_working_pipeline`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_settings.py#L111)
- [`tests/config/test_settings.py::TestLoadPipeline::test_composite_detector_from_toml`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_settings.py#L117)
- [`tests/config/test_settings.py::TestObservationRedactorWiring::test_observation_redactor_is_wired`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_settings.py#L238)
- [`tests/config/test_settings.py::TestOptionalStagesWiring::test_detector_only_config_defaults_linker_and_anonymizer`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_settings.py#L167)
- [`tests/config/test_settings.py::TestOptionalStagesWiring::test_omitted_stages_are_none`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_settings.py#L178)
- [`tests/config/test_settings.py::TestOptionalStagesWiring::test_pipeline_wires_every_configured_stage`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_settings.py#L158)
- [`tests/config/test_settings.py::TestOverrideEffect::test_deny_list_forces_a_detection`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_settings.py#L194)
- [`tests/config/test_settings.py::TestRenamedOverrideKeys::test_a_1x_conflict_value_fails_the_load_with_its_new_name`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_settings.py#L261)
- [`tests/config/test_settings.py::TestRenamedOverrideKeys::test_a_1x_whitelist_fails_the_load_with_its_new_name`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_settings.py#L246)
- [`tests/config/test_thread_pipeline.py::TestLoadPipelineRejectsMemory::test_memory_config_is_rejected`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_thread_pipeline.py#L126)
- [`tests/config/test_thread_pipeline.py::TestLoadPipelineRejectsMemory::test_simple_config_still_builds`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_thread_pipeline.py#L131)
- [`tests/config/test_thread_pipeline.py::TestLoadThreadPipeline::test_builds_a_thread_pipeline`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_thread_pipeline.py#L64)
- [`tests/config/test_thread_pipeline.py::TestLoadThreadPipeline::test_memory_shares_placeholder_across_messages`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_thread_pipeline.py#L69)
- [`tests/config/test_thread_pipeline.py::TestLoadThreadPipeline::test_missing_memory_is_rejected`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_thread_pipeline.py#L92)
- [`tests/config/test_thread_pipeline.py::TestLoadThreadPipeline::test_threads_are_isolated`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_thread_pipeline.py#L85)
- [`tests/config/test_thread_pipeline.py::TestTokenMemoTtl::test_a_non_positive_ttl_is_refused`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_thread_pipeline.py#L118)
- [`tests/config/test_thread_pipeline.py::TestTokenMemoTtl::test_a_ttl_reaches_the_pipeline`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_thread_pipeline.py#L106)
- [`tests/config/test_thread_pipeline.py::TestTokenMemoTtl::test_a_ttl_without_a_memory_is_refused`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_thread_pipeline.py#L112)
- [`tests/docs/test_snippets.py::test_a_config_example_is_valid`](https://github.com/Athroniaeth/piighost/blob/master/tests/docs/test_snippets.py#L453)
- [`tests/examples/test_config_examples.py::test_example_pipeline_config_parses`](https://github.com/Athroniaeth/piighost/blob/master/tests/examples/test_config_examples.py#L22)

## Utilisé par

Aucun appelant trouvé.

Lu dans le graphe du code que construit graphify, aux emplacements que donne la documentation métier.
