Buddhist monks and nuns, bhikkus and bhikkuni, confess violations of the monastic rule to the community of monks or nuns at large. The penalty is determined by the type of rule broken.
The monks and nuns are not asking forgiveness of a deity. Rather, they are asking forgiveness from their community. If the violation relates to an action against another monastic, their forgiveness is also sought. The purpose of the confession is to maintain relationships and order in the community and to help the monastics maintain their personal discipline.
Laypeople do not confess.