# BR-CFG-06

Quand un secret manque, alors l'erreur ConfigError survient à la construction, pas à la validation.

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-06).

## Où vit la règle

- [`Sha256HasherConfig.build()`](https://github.com/Athroniaeth/piighost/blob/master/src/piighost/config/models/hasher.py#L40)
- [`AesGcmCipherConfig.build()`](https://github.com/Athroniaeth/piighost/blob/master/src/piighost/config/models/cipher.py#L26)

## Tests directs

- [`tests/config/test_crypto_models.py::TestCipherConfig::test_aesgcm_builds_with_env_key`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_crypto_models.py#L75)
- [`tests/config/test_crypto_models.py::TestCipherConfig::test_invalid_base64_key_is_rejected`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_crypto_models.py#L86)
- [`tests/config/test_crypto_models.py::TestCipherConfig::test_missing_key_is_rejected`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_crypto_models.py#L80)
- [`tests/config/test_crypto_models.py::TestHasherConfig::test_sha256_builds_with_env_pepper`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_crypto_models.py#L24)

## Tests indirects

Aucun test indirect trouvé.

## Utilisé par

Aucun appelant trouvé.

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