Skip to content

v1.2.0

Choose a tag to compare

@github-actions github-actions released this 28 Oct 11:56
· 602 commits to master since this release
8e04277

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-dn and --ldap-pwd have no default: the server stops at startup
    without them, and the Docker image no longer carries admin in its ENV
    (#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 a number, the deletion of
    a required attribute, an undeclared attribute or a fixed one in a
    change; null clears an attribute in a replace and is refused
    elsewhere, where it answered 500; a group creation writes its fixed
    attributes at their default (#416, #448)

Features

  • On SIGTERM and SIGINT, 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
    answers stopping meanwhile, docs
    (#423)
  • GET /healthz and GET /readyz, outside the API prefix and without
    authentication: /readyz answers 200 once the plugins are loaded and the
    directory answers, 503 otherwise; storage, rabbitmq, james and
    migrationProxy report their backend there, degraded when it cannot be
    reached. The Helm chart probes them over HTTP,
    docs (#423)
  • core/metrics serves 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 a ServiceMonitor on
    request. A plugin of your own calls its services through this.fetch to
    be counted, docs (#423)
  • Every answer carries an X-Request-Id, and every line logged while the
    request is served carries it as requestId; a line a hook writes names
    its plugin and the hook, docs
    (#423)
  • core/twake/migrationProxy keeps 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-migration says where an
    account lives, docs
    (#466)
  • The Twake plugins take their webadmin URL with a trailing slash

Fixes

  • On every route, a required number takes 0 and a required boolean
    false; they were refused as missing (#416)
  • A group schema declaring an array attribute without items no longer
    makes every creation answer 500 (#448)
  • ldap/bulkImport: a row with a value under a fixed attribute 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
    objectClass the request carried, as the organization routes do
    (#441)
  • --logger takes console or file; an empty value is console, any
    other stops the server at startup,
    upgrading (#432)
  • Organizations write the fixed attributes 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 a replace is
    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 --logger and --log-level; they went to
    standard output in the client's own format (#465)
  • --logger file: a line's error follows its message; it was dropped
    (#465)
  • The error middleware and the routes answering through serverError send
    the same 5xx body; --debug names the failure in it on both paths,
    DM_DEBUG is read, and --debug no longer takes the next argument as
    its value (#426)
  • groups, organizations and flatGeneric announce their schema file
    (schemaUrl in GET /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)