from typing import Dict
import re


def sanitize_config(config: str, filters: Dict) -> str:
    """
    Given a dictionary of filters, remove sensitive data from the provided config.
    """
    for filter_, replace in filters.items():
        config = re.sub(filter_, replace, config, flags=re.M)
    return config