Invalid principal policy
type | https://docs.frem.sh/reference/api/errors/invalid-principal-policy |
| HTTP status | 400 Bad Request |
What it means
No longer returned since 2026-10-14. The per-org SSH principal policy was removed: it was saved but never enforced, because Forgejo checks principals against one platform-wide setting. PUT /orgs/{org}/ssh-ca now accepts and ignores principal_policy, so this error cannot occur. See Authentication policy → SSH certificate authority.
What to do
Nothing. You can drop principal_policy from your requests.
Response shape
All fremforge API errors are RFC 9457 problem+json:
{
"type": "https://docs.frem.sh/reference/api/errors/invalid-principal-policy",
"title": "Bad Request",
"status": 400,
"detail": "..."
}Branch on type, not on title or detail - those are human-readable and may be reworded.