As far as Gaza goes, Hamas rules Gaza but they're not the recognized government.
I'm not sure who you would ask to make policy in such a situation.
Just Hamas because they rule that area by force? That sounds a lot like asking Israel for the same reason.
I don't think there's a good/ automatic answer for these situations.