# BR-CFG-06

When a secret is missing, then the ConfigError error occurs at build time, not at validation.

Defined in [Configure a pipeline by file, catalog and command line](https://docs.piighost.dev/en/domain/operations/configuration-and-catalog/#br-cfg-06).

## Where the rule lives

- [`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)

## Direct tests

- [`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)

## Indirect tests

No indirect test found.

## Used by

No caller found.

Read from the code graph graphify builds, at the places the domain documentation gives.
