Repository navigation
v1.2.0
Five changes need a check before deploying,
upgrading.
Breaking Changes
- An exception nothing caught ends the process with 1, where it kept
serving in an unknown state (#423) --ldap-dnand--ldap-pwdhave no default: the server stops at startup
without them, and the Docker image no longer carriesadminin itsENV
(#431)- Every entity route, flat, group and organization, checks the shape of a
value the same way and answers 400 where it wrote what it was sent: a
list for a single-valued attribute, text for anumber, the deletion of
arequiredattribute, an undeclared attribute or afixedone in a
change;nullclears an attribute in areplaceand is refused
elsewhere, where it answered 500; a group creation writes itsfixed
attributes at their default (#416, #448)
Features
- On
SIGTERMandSIGINT, the server leaves the endpoints, finishes what
is in flight within--shutdown-timeout(20 s), closes the broker, the
storage backend and the directory connections, then ends;/readyz
answersstoppingmeanwhile, docs
(#423) GET /healthzandGET /readyz, outside the API prefix and without
authentication:/readyzanswers 200 once the plugins are loaded and the
directory answers, 503 otherwise;storage,rabbitmq,jamesand
migrationProxyreport their backend there,degradedwhen it cannot be
reached. The Helm chart probes them over HTTP,
docs (#423)core/metricsserves Prometheus metrics on--metrics-port(9464): the
requests, the directory operations, the pool, the cache, the calls to
Twake, the Cloudery, cozy-stack and CrowdSec, the hooks that fail and the
process; the Helm chart exposes the port and renders aServiceMonitoron
request. A plugin of your own calls its services throughthis.fetchto
be counted, docs (#423)- Every answer carries an
X-Request-Id, and every line logged while the
request is served carries it asrequestId; a line a hook writes names
its plugin and the hook, docs
(#423) core/twake/migrationProxykeeps the migrated-users list of the Twake
Mail migration proxy in step with the entries of
--migration-proxy-branch: an entry gaining its mail is put on the list
with its addresses, the addresses of a migrated one follow it, a deleted
one is taken off;GET /api/v1/users/:user/mail-migrationsays where an
account lives, docs
(#466)- The Twake plugins take their webadmin URL with a trailing slash
Fixes
- On every route, a
requirednumber takes0and arequiredboolean
false; they were refused as missing (#416) - A group schema declaring an
arrayattribute withoutitemsno longer
makes every creation answer 500 (#448) ldap/bulkImport: a row with a value under afixedattribute of the
schema fails, where the value replaced the fixed one,
docs
(#445)- The flat routes write the classes of the entity on a creation whatever
objectClassthe request carried, as the organization routes do
(#441) --loggertakesconsoleorfile; an empty value isconsole, any
other stops the server at startup,
upgrading (#432)- Organizations write the
fixedattributes of their schema at their
default on a creation and refuse them in a change, as groups and the flat
routes do (#430) - The flat routes check an empty string against the schema, and every
route refuses an empty DN for a pointer attribute;[]in areplaceis
still how an attribute is cleared (#429) core/rabbitmq: SIGTERM and SIGINT end the process once the broker
connection is closed, or after 10 seconds; a pod lived on until the end
of its grace period (#425)core/rabbitmq: its client's lines are server lines under
plugin: rabbitmq, following--loggerand--log-level; they went to
standard output in the client's own format (#465)--logger file: a line'serrorfollows its message; it was dropped
(#465)- The error middleware and the routes answering through
serverErrorsend
the same 5xx body;--debugnames the failure in it on both paths,
DM_DEBUGis read, and--debugno longer takes the next argument as
its value (#426) groups,organizationsandflatGenericannounce their schema file
(schemaUrlinGET /config) at the URL where a static plugin serves it
merged, as SCIM does since 1.1.0, and leave it out where none does
(#413)