Find JwtBuilder.setSigningKey("literal".toByteArray()) patterns

Proprietary

A hard-coded signing key compromises every token your service ever issues — anyone with the source (or the artifact, since literals end up in the constant pool) can forge tokens. Load the key from a secret store; rotate on a schedule.

org.openrewrite.kotlin.security.FindJjwtSetSigningKeyLiteral$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.security.FindJjwtSetSigningKeyLiteral$KtRecipe'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.