def normalize_url_base(url_base: str) -> str:
    """
    Normalize the url_base to remove 'https://' or 'http://' and any trailing slashes.
    """
    # Remove the scheme (http/https) if present
    parsed_url = urlparse(url_base)
    url_base = parsed_url.netloc if parsed_url.netloc else parsed_url.path

    # Remove trailing slash if present
    return url_base.rstrip("/")

    Normalize the url_base to remove 'https://' or 'http://' and any trailing slashes.
    
playbooks/robusta_playbooks/sink_enrichments.py