def get_secret(key, *args, **kwargs):
    """Retrieves a secret."""
    env_value = os.environ.get(key.replace('.', '_').upper())
    if not env_value:
        # Backwards compatibility: the deprecated secrets vault
        return _get_secret_from_vault(key, *args, **kwargs)
    return env_value
Retrieves a secret.