I guess what I believe is a variation on the golden rule posited by John Rawls called the veil of ignorance, which involves doing unto others as you’d wish to be treated without knowing who or where you’d be in society before deciding on a rule or course of action.
While this might sometimes appear unprincipled or like moral relativism it is actually really just dealing with others in a fair way …
If you know your exact interests before deciding on a rule your position will necessarily be only to your own advantage ptobably