in kinto-remote-settings/src/kinto_remote_settings/signer/listeners.py [0:0]
def signer_resource_match(resource, bid, cid): return resource["bucket"] == bid and ( resource["collection"] is None or resource["collection"] == cid )