def get_secret_variables(app_config: dict) -> dict:
    """Returns the secret variables from configuration."""
    secret_variables = app_config.get("variables", {}).get("secret", {})

    formatted_secret_variables = {
        secret_name: {
            "secretKeyRef": {
                "name": secret_variables[secret_name]["name"],
                "key": secret_variables[secret_name]["key"],
            },
        }
        for secret_name in secret_variables.keys()
    }

    return formatted_secret_variables