Indefinite detention without trial erodes legitimacy and invites abuse. With robust judicial oversight, security and justice may coexist.