vcon-server

Problem types

bad-expiry

A key cannot have this expiry

Type
https://vcon-server.com/problems/bad-expiry
Status
422
Title
A key cannot have this expiry

When

A request to make a key names expires_in_days outside 1 to 365, names expires_in_days together with "no_expiry": true, or asks for "no_expiry": true on a server whose configuration sets keys.no_expiry to false. The scopes of the request are checked first: a request with bad scopes and a bad expiry is answered bad-scopes. No key is made, and the refusal is recorded in the audit log as key_create with status 422.

What to do

Leave both fields out for a key that expires in 90 days, or name expires_in_days from 1 to 365. For a key that never expires, send "no_expiry": true alone; when the server refuses it, the operator has turned such keys off in the configuration, and the longest life is 365 days.

Source of this page: website/content/problems/bad-expiry.md