def sanitize_node(_node):
    """
    Sanitize a node instance so that sensitive data isn't disseminated
    :param _node: The node to sanitize
    :return:
    """
    if 'credentials' in _node:
        _node.pop('credentials')
    if 'canRead' in _node:
        _node.pop('canRead')
    if 'canWrite' in _node:
        _node.pop('canWrite')
    return _node
