Exclude SSH principals from .keys route

This commit is contained in:
Alec Walsh 2026-03-09 08:58:21 -04:00
parent 6a5dda7116
commit cfcbc33af0

View file

@ -705,6 +705,9 @@ func ShowSSHKeys(ctx *context.Context) {
var buf bytes.Buffer
for i := range keys {
if keys[i].Type == asymkey_model.KeyTypePrincipal {
continue // Don't display SSH principals, only public keys
}
buf.WriteString(keys[i].OmitEmail())
buf.WriteString("\n")
}