"""Explicit non-transport company metadata for the copied GruntGuru payload."""
from .runtime_paths import current

_ALLOWED = {"GRUNTGURU_ESTICRM_COMPANY_ID", "GRUNTGURU_ESTICRM_COMPANY_NAME",
            "ESTICRM_COMPANY_ID", "ESTICRM_COMPANY_NAME"}


def get_secret(key, default=None):
    # Original callable name retained so payload logic is byte-for-byte unchanged
    # apart from its import. No dotenv/environment or transport secrets are read.
    if key not in _ALLOWED:
        raise ValueError("Only explicit export company metadata is supported")
    return current().export_settings.get(key, default)
