Skip to content

Releases

v1.23.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 22:04
a9806f8

The Help Center's front door (design sheet Direction C). The customer
portal's Help Center becomes a branded public face: a hero in the workspace
accent with an optional image, a status line, announcements and maintenance
notices, admin-chosen "Start here" articles, topics with icons, and three
ways to reach the team, including an assistant that answers from public
articles only. Everything new is off or empty until an admin sets it up;
the layout follows the sheet's empty-state rules so a small library never
looks barren. Self-hosted installs without the helpdesk license don't
change.

Added

  • The hero. The Help Center's home opens on the workspace accent with
    faint contour lines, an optional eyebrow, the heading (the old greeting),
    the big search and the status line. An uploaded hero image (Desk settings
    → Customer portal → Help Center → Hero, uploaded like the portal's logo:
    PNG, JPEG, GIF or WebP, up to 4 MB) sits under a fixed dark scrim, the
    same in light and every dark style, so white text clears AA over any
    picture.
  • Start here. Up to 12 articles the admin chooses, in order, falling
    back to the most opened and then the newest. Only public articles ever
    show, whatever is chosen.
  • Topics. Each category gets a lucide icon and a one-line description
    (Help Center → Categories), on the home and on the category's new banner,
    which also shows one featured article above the list.
  • Talk to us (Customer portal → Contact & status): Ask the assistant
    (only while it answers), Raise a request with the email address and reply
    time, and Call us with hours and "Open now" or "Closed now" from a chosen
    business calendar. Also in the rail beside every article.
  • The status line (Contact & status): off, a manual state
    (operational, degraded, outage, maintenance) with a link to the status
    page, or read from a public Atlassian Statuspage-style
    /api/v2/status.json by the server, once a minute at most, within 3
    seconds, falling back to the manual state. Always in words, with a dot
    and an icon that only repeat them.
  • Notices (Customer portal → Notices): announcements, maintenance and
    incidents for customers, separate from the workspace's own
    announcements. Show from / until (both optional), end now or show again,
    linked to topics (their pages and articles show it too) and to requests
    ("Part of …" on Your requests). Audited.
  • The assistant for requesters (Customer portal → AI answers, off by
    default): an answer card above the search results, grounded only in the
    articles the Help Center makes public, with numbered citations, Yes / No
    and "Raise a request with this answer"; a configurable disclaimer. Its own
    monthly cap in US dollars (reserved before each request under a lock, so
    concurrent questions can't pass it), within the plan's AI allowance on a
    cloud plan; spending is recorded in the AI ledger as the new feature
    portal (on the platform's key only, as in 1.22.0) and honours the
    plan's pause; the cap is held within the plan's allowance as it is at the
    time of each question, so a plan moved down lowers it at once.
    Rate-limited per network address and per contact. Off, paused or capped,
    or with no public article at all, the Help Center is plain search and says
    nothing. The card asks only after a search submitted on the page: a
    /support/search?q= link pre-fills the box and runs plain search, and
    the card offers "Ask the assistant". An email address, phone number or
    bare domain in an answer stays only when the article it cites says
    exactly that.
  • New request from free text. While the assistant answers, New request
    starts with "Tell us what's going on": the assistant suggests the request
    type and a subject and an article that might fix it, then the form opens
    filled in, the type as one row with Change and the person's words as the
    first field; "This might fix it" comes first on a phone. Without AI, or
    paused, the type picker as before; "Choose the type yourself" keeps what
    was typed.
  • The article page: a fuller breadcrumb, the topic's other articles in
    a side nav, "On this page" (DocToc: a card on narrow screens, a sticky
    rail from lg), the topic's notices, "Was this helpful?" (counts only, no
    personal data, like views; No offers a request with the article already
    linked), related articles (document relations through the public rule,
    else the same topic) and Talk to us. Prints as the article alone.
  • Your requests: cards with a three-step timeline, a filter (Open,
    Solved, All) and a search by subject or number. A request joined into
    another says "Continues in #N" instead of a timeline and is never
    counted as solved.
  • A setup checklist on Help Center settings (Add folders, Describe
    each space by name, Upload a logo, Describe the request types, Choose
    Start here articles, Add contact details): each item links to the place
    that does it (a space's own settings: /admin/spaces?edit=<id> opens
    it) and disappears once done. "Found helpful" joins Last 30 days.
  • A request draft survives signing in. "Raise a request with this
    answer", and what someone typed when their session ran out, wait in the
    browser for 30 minutes, so the emailed sign-in link's new tab opens the
    form filled in (?from=answer / ?from=draft are kept through sign-in).
  • Search with no match suggests the three biggest topics and New
    request.

Changed

  • The home follows the sheet's empty-state rules: with 1–15 public
    articles, one Start here list of every article instead of near-empty
    cards; with Start here and Topics both showing, the home stops there
    (Popular, Recently updated and the space cards fill in otherwise); topic
    tiles are one line (rows on a phone); never one card in a three-column
    grid, nor one alone on a last row; Popular and Recently updated never
    repeat Start here or each other; the request tiles show only while there
    are no articles, in a narrow column with contact and status around them.
  • Contact & status names a field it can't keep (an email, phone or address
    that doesn't parse) instead of emptying it; the AI cap can't be saved
    blank; Notices names the time zone and warns when "Show until" has
    passed.
  • The usage report's aiUsd gains portal (additive: the console ignores
    a field it doesn't know yet).

Upgrade notes

  • New tables only (hd_hc_article_feedback, hd_portal_notices,
    hd_portal_notice_tickets, hd_portal_ai_usage), created on start.
    Nothing to configure: every new section stays hidden until it has
    something to show. The assistant needs an AI provider (Settings → AI).
  • No ee/ change: the portal is gated by the existing helpdesk
    entitlement.

v1.22.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 06:23
8f5df0c

Plan limits, usage and the AI allowance. A CompassDocs Cloud workspace's
license now carries its plan (Starter, Shared or Dedicated, with its
limits), and the workspace counts its usage once a day, shows it to its
admins, warns them calmly as a meter fills, prices an extra agent before
it is added, keeps AI to an optional monthly cap, and sends the console the
counts, never names or content. Limits are soft: nobody is locked out and
nothing is turned off. Self-hosted installs, and cloud workspaces on an
Enterprise license, don't change.

Added

  • The plan in the license. A signed cloudPlan claim beside
    workspace: name, agentsIncluded, agentsMax, activeUsersLimit,
    storageGb, aiAllowanceUsd, renewsAt, and optional bufferPct (20),
    billingContact, priceUsd and billing. Read in one place
    (lib/plan), only in cloud mode; missing, partial or malformed reads as
    no plan. The README's "The plan in the license" is the schema the console
    signs.
  • Settings → Plan & usage (admins: whoever can change workspace
    settings). The plan, its price and renewal, the workspace and the billing
    contact, then four meters: agents (included and the plan's maximum),
    active users this month, storage and the AI allowance, each with its
    state as a chip, the 20% buffer as the bar's hatched end, and a six-month
    trend drawn to scale with the limit dashed and the current month hollow.
    Tabs for who counted (with a CSV that stays in the workspace), storage by
    area, and AI by feature. Upgrade to Shared (or Talk to us about
    Dedicated
    ) sends CompassDocs a request by email from the workspace, or
    opens a prepared email when the workspace can't send.
  • Warnings. At 80%, at the limit and past the buffer, admins see one
    banner on the dashboard and every settings page (80% a fact, the others a
    warning, never an error; each says nothing stops), dismissed per admin per
    threshold per month, and one email per meter per threshold per month, at
    most one a day: the new built-in "Plan usage threshold" template, to every
    admin or to the billing contact (the license's, shown as such, unless an
    admin chooses another address or every admin). Nobody else sees any of
    it. The dashboard says each in one short line; the settings pages in full.
  • Adding an agent past the included ones shows the price first: "Adds
    an extra agent: $9.99/mo, prorated", the amount charged now to the plan's
    renewal ($119.88 a year when billed annually), and a button that says the
    price; the server refuses an add that didn't confirm it (409
    confirm_price). Past the plan's maximum the add still works inside the
    buffer and says so; at the buffer's end (12 on Starter, 30 on Shared) new
    agents are held with the plan's comparison and an upgrade request (the
    person picker stays, for someone already counted). Nobody already on the
    desk is ever removed. Prices and the upgrade are only for whoever can open
    Plan & usage: a desk Manager who can't sees the rules without a price and
    asks an admin to add an extra agent (403 plan_admin_needed). Agents by
    contract (Dedicated) have no price step and no hold.
  • The AI allowance. AI stays on by default. On Plan & usage → AI an
    admin can stop at the allowance or cap at an amount; once reached, Claude
    in the desk, Ask, Write and Proofread pause until the 1st with a clear
    sentence (the Claude panel shows it as its state), and everything else
    keeps working. Each request is admitted against the month's spending
    with its most it can cost reserved, so requests at the same time can't
    all slip under the cap (the bound is in the README), and the desk's own
    Claude limits keep working inside it. Only AI on the platform's key is
    counted or capped; an admin's own key is theirs. Past the allowance,
    admins see one quiet "billed at cost +30%" line where AI is used.
  • Daily usage counting. Agents, monthly active users (anyone who signed
    in or used the app this month, requesters once they sign in to the
    portal, API tokens as their person), storage (files, documents' text,
    versions and the Trash; never backups, exports or the search index) and
    AI dollars by feature from every request's tokens at the price list. Kept
    13 months. One replica counts at a time (a tried lock: the others skip,
    never wait), a count is all or nothing (a part that fails fails the count,
    never a 0), and Plan & usage never waits for one.
  • Usage to the console. Each day's counts go to POST …/usage beside
    the license endpoint (or COMPASSDOCS_USAGE_URL, on the same origin),
    with the license request's credential: idempotent per workspace and day,
    oldest first, retried with backoff, limited in time and size. The README's
    "Usage to the console" is the contract.
  • A license for another workspace (cloud plans, the platform's
    bootstrap included) is never used for the plan: the workspace keeps
    running on the last license that matched, never read-only, its admins see
    a plain notice naming both workspaces, and the usage report says so.

Changed

  • In a cloud workspace with a plan, the plan's agent rules replace the
    license's agents claim, and Desk settings → Agents shows the plan's
    meter without "Buy more agents".
  • Settings → AI shows the monthly spending choice, linking to Plan & usage,
    in a cloud workspace with a plan.

v1.21.5

Choose a tag to compare

@github-actions github-actions released this 27 Nov 10:34
a76ab33

Cloud mode, part six, the last of Phase 3: a CompassDocs Cloud workspace's
email goes out through Azure Communication Services (ACS) Email, signed in
with the workspace's managed identity, through the same outbox as Microsoft
365 mail. It is the operator's opt-in (COMPASSDOCS_MAIL_TRANSPORT=acs); a
self-hosted install that does not set it is unchanged.

Added

  • Email through Azure Communication Services (COMPASSDOCS_MAIL_TRANSPORT=acs).
    A third way out beside SMTP and Microsoft 365, set from the environment:
    COMPASSDOCS_ACS_ENDPOINT (the Communication Services resource),
    COMPASSDOCS_ACS_SENDER (a MailFrom address on a verified domain),
    optional COMPASSDOCS_ACS_REPLY_TO, COMPASSDOCS_ACS_PER_MINUTE and
    COMPASSDOCS_ACS_PER_HOUR (30 and 100 by default, ACS's defaults for a
    custom domain). The app signs in with its managed identity (a Microsoft
    Entra token for https://communication.azure.com/.default, the identity
    Blob Storage and PostgreSQL already use); it needs the Communication and
    Email Service Owner
    role on the resource, or a custom role with
    Microsoft.Communication/CommunicationServices/Read,
    Microsoft.Communication/CommunicationServices/Write and
    Microsoft.Communication/EmailServices/write. The README's "Email through
    Azure Communication Services" has the Azure setup.
  • Through the outbox. Every message is queued (sealed) as before and
    posted once to emails:send (api-version 2023-03-31) with its own
    Operation-Id. ACS's 202 makes the row accepted; its operation is
    looked up shortly after and then less often: Succeeded → sent, Failed or
    Canceled → failed with ACS's reason, unknown after two hours → may not
    have gone out. No answer to the POST is looked up by its Operation-Id
    before an admin is asked. 429 with Retry-After pauses the outbox and
    fails nothing; a refused identity or sender pauses it with the reason and
    tells the admins once. The outbox paces to the minute and the hour
    limits; newsletters draw from the same budget.
  • What each email carries. From the platform's sender (its display name
    is the sender username's in Azure); Reply-To the message's own, else its
    From when that is another address (a help address, a newsletter's chosen
    sender), else the workspace's reply address; plain text and HTML;
    attachments up to ACS's 10 MB per email after base64, refused in words
    when queued; at most 50 recipients; Message-ID, In-Reply-To,
    References, List-Unsubscribe and the other headers passed through.
    Open and click tracking is off.
  • Settings → Notifications → Email under ACS says "Email is sent by
    CompassDocs Cloud from …", keeps the test email (it waits up to 30
    seconds for ACS's result) and the Outbox (with the hourly limit), and adds
    Replies go to, the one setting that stays the workspace's (audited,
    settings.mail_reply_to). Switching method is refused (409
    cloud_managed). Diagnostics' Run checks signs in to ACS, sending nothing.
  • Start-up check. A setting that can't work stops the process with one
    line each; in cloud mode that includes COMPASSDOCS_ACS_CONNECTION_STRING
    (development only, HMAC-signed) to anything but a loopback endpoint.

Changed

  • The audit label of settings.mail_check is "Checked the email
    connection" (it now covers ACS too).

Security

  • ACS access keys (accesskey= in a connection string,
    COMPASSDOCS_ACS_CONNECTION_STRING) and HMAC request signatures are
    masked in every log line, like the tokens and storage keys before them.
    No token or key is put in an error message.

Notes

  • Microsoft has announced the retirement of Azure Communication Services,
    ACS Email included, on 30 September 2028, with new onboarding limited
    from 23 October 2026. Resources created before then keep working.

v1.21.4

Choose a tag to compare

@github-actions github-actions released this 27 Nov 08:42
9823b84

Cloud mode, part five: CompassDocs staff get into a customer's workspace
only when the customer approves, for a few hours, with every step in the
customer's own audit log; and a customer can take a full copy of their
workspace with them. Both exist only in a CompassDocs Cloud workspace
(support access also needs COMPASSDOCS_SUPPORT_PUBLIC_KEY); a
self-hosted install sees no new page, setting or route, and its backups
work as before (a restore also reads an unencrypted files half, below).

Added

  • Support access (COMPASSDOCS_SUPPORT_PUBLIC_KEY, cloud mode). No
    standing access for anyone at CompassDocs. The console asks
    (POST /api/support/requests with a request token signed by its signing
    service, Ed25519: the staff member, the reason, read-only or
    administrator, 15 minutes to 8 hours); the workspace's administrators see
    it in Settings → Support access (new, People & access) and in their
    notifications, and approve or deny it there. The staff member then opens
    /login/support#<grant token> (the token in the fragment: never sent to
    a server, never in a log), signs in once with it, and works in a support
    session that ends at the earlier of the token's end and the approved
    window. Tokens are verified with the support key only (never the license
    key; up to three keys for rotation), must name this workspace
    (COMPASSDOCS_WORKSPACE_ID), are used once (their ids are remembered
    past their expiry), and are refused if expired, not yet valid, longer
    than 8 hours, changed after signing or of the other kind; 60 s of clock
    skew is tolerated. The token format and the console's HTTP contract are
    in the README, "Support access".
  • The support session is its own service account named "
    (CompassDocs support)", never one of the customer's: not listed in Users,
    not counted as an administrator or a seat, no password, no email, no
    sign-in step or Duo check (the staff member signed in to the console). A
    banner on every page (and in the desk) says it is a support session, at
    which level, whose, and until when, with End session. Read-only
    changes nothing: the request proxy refuses every request that is not a
    read (pages' server actions included) and the session holds only read
    permissions. Neither level can see or change support access, export or
    back up the workspace, open account security or OAuth consent, make API
    tokens, or (administrator level) change sign-in, single sign-on, Duo,
    SCIM, people, roles, groups or the license; the permissions behind them
    are taken away as well. An administrator can revoke access at any moment
    (its sessions end at once); sessions also end at their time, when support
    access is switched off, and when the staff member signs out.
  • Emergency access, off by default: a workspace can let support sign in
    without waiting for approval (read-only, or read-only and administrator)
    with a recorded reason. Administrators are told at once, and every
    settings page says so until one of them marks it reviewed.
  • Audit. Every request, approval, denial, revocation, lapse, sign-in,
    refused sign-in, page viewed, change made and session end is in the
    workspace's audit log (category "support"); Settings → Support access
    lists waiting, active and past access with pages viewed and changes made,
    and links to the audit log filtered to support (/admin/audit?category=
    now opens the log on a category).
  • Workspace export (cloud mode). Settings → Import & export → Workspace
    export
    : one archive of the whole workspace, the database (pg_dump
    custom format, live sign-in state left out) and every stored file, with a
    README saying how to bring it into a self-hosted CompassDocs and a
    manifest with sizes and SHA-256. The two data files are a backup set, so
    a self-hosted install restores the export from Settings → Backups. Made in
    the background with progress on the page, streamed into the workspace's
    own file store (its blob container, or the uploads folder), never the
    app's local disk, with bounded memory; downloadable for 7 days by
    administrators (system.export) from the app only (byte ranges for
    resuming; never a public or signed URL; a download another site starts is
    refused), never by a support session. One export at a time, three a
    day; every start, finish, failure, download and deletion is audited.
    Settings → Backups (managed by CompassDocs Cloud) links to it.
  • Routes: POST /api/support/requests, GET /api/support/requests/<id>,
    POST/DELETE /api/support/session, GET/PATCH /api/admin/support,
    POST /api/admin/support/requests/<id>, GET/POST /api/admin/workspace-export, GET/DELETE /api/admin/workspace-export/<id>. All answer 404 outside cloud mode
    (the support ones also without the key).

Changed

  • A backup set's files half may be unencrypted (compassdocs-<stamp>.files.tar,
    as a workspace export carries it): Settings → Backups lists, downloads,
    deletes and restores it like the encrypted .files.tar.enc.
  • Backups of the uploads folder leave out exports/ (workspace exports
    being made or kept).
  • Cloud mode refuses to start when COMPASSDOCS_SUPPORT_PUBLIC_KEY is not
    an Ed25519 public key, is the license key, holds more than three keys, or
    is set without COMPASSDOCS_WORKSPACE_ID (one line each).

v1.21.3

Choose a tag to compare

@github-actions github-actions released this 26 Nov 20:51
37e2897

Cloud mode, part four: no database password anywhere, and a license the
console renews without a restart. Both are opt-in; a self-hosted install
(and a cloud workspace that sets neither) behaves exactly as before.

Added

  • Signing in to PostgreSQL with Microsoft Entra (DATABASE_AUTH=entra).
    The user in DATABASE_URL is the managed identity's PostgreSQL role and
    each new connection's password is an Entra access token for
    https://ossrdbms-aad.database.windows.net/.default (the user-assigned
    identity named by AZURE_CLIENT_ID, or the system-assigned one; workload
    identity when its variables are set), for every connection the app makes:
    the pool and the schema boot, the helpdesk's LISTEN connection
    (DATABASE_LISTEN_URL too) and pg_dump/pg_restore (token in their
    environment only). The token is cached and renewed in the background well
    before it expires, so a token service that blips while a token is good
    costs nothing; with none left, an unreachable token service is waited for
    like a database restart (1.21.2's rules) and a refused identity fails at
    once, each with one line naming the identity and the scope. SSL is
    required and the server's certificate verified (DATABASE_SSL=no-verify
    to only encrypt). A setting that can't work (a password in the URL,
    DATABASE_PASSWORD, SSL off, no role) stops start-up with one line each.
    The README says what to set up on the Azure side
    (pgaadauth_create_principal, the database's owner and grants).
  • The license from the console (COMPASSDOCS_LICENSE_URL, cloud mode).
    The app fetches the workspace's signed license shortly after start, about
    every 6 hours with jitter (one replica's check spares the others), and on
    Check now (Settings → License, once per 30 s). It signs in with the
    managed identity (COMPASSDOCS_LICENSE_AUDIENCE, recommended) or a bearer
    token (COMPASSDOCS_LICENSE_TOKEN). A fetched license is used only when it
    verifies with the vendor's key, names this workspace
    (COMPASSDOCS_WORKSPACE_ID, a new workspace claim), is active, and is
    not older or shorter than the license in force; the last good one is kept
    in the database, so a restart survives a console outage, and
    COMPASSDOCS_LICENSE_KEY stays the bootstrap. The request is limited to
    15 s and 16 KB, follows redirects only to the same origin, and a console
    that is down is retried with backoff (or its Retry-After), logged once.
    The HTTP contract is in the README, "License from the console". Renewals
    are audited ("Installed a renewed license from CompassDocs Cloud"), and
    so is Check now.
  • POST /api/admin/license/check (Check now; 429 with Retry-After
    inside 30 s).

Changed

  • Settings → License in cloud mode shows the license as "Managed by
    CompassDocs Cloud", with its expiry, when it was last checked and what the
    console said; no box to paste one and no Remove. A license the console
    delivers is refused by PATCH /api/admin/license and the setup wizard,
    like the platform's.
  • One credential per process for everything the app signs in to with its
    managed identity (Blob Storage, PostgreSQL, the console), in
    lib/azure-credential.
  • Log redaction also masks JWTs (an Entra access token) wherever they
    appear, in the app's lines and in start.cjs's early ones, and
    COMPASSDOCS_LICENSE_TOKEN.

Fixed

  • The helpdesk's LISTEN connection lost the database password when it was
    given separately (DATABASE_PASSWORD with a key=value connection
    string): pg-pool keeps a password it was given as a hidden option, which
    the listener's copy of the pool's settings left behind.

v1.21.2

Choose a tag to compare

@github-actions github-actions released this 26 Nov 18:57
07652de

Cloud mode, part three: a workspace's files in Azure Blob Storage, and
requests that ride out a database restart or failover. A self-hosted
install changes nothing unless it opts in: its files stay in the uploads
folder, at the same paths, and its requests do not wait for the database.

Added

  • Azure Blob Storage for files (COMPASSDOCS_FILE_STORE=blob). Every
    attachment, image, logo, newsletter file and helpdesk upload (the desk
    import's staging files included) goes through one file store
    (lib/file-store): the uploads folder by default, unchanged, or one
    private container per workspace (COMPASSDOCS_BLOB_ACCOUNT_URL,
    COMPASSDOCS_BLOB_CONTAINER). Signs in with the managed identity
    (Microsoft Entra, or workload identity), never a key; a connection
    string is for Azurite only and refused in cloud mode unless it is a
    loopback address. Files keep their random names, checked on every call,
    and are only ever served through the app's own routes (video byte ranges
    included); no public or SAS URL is made. The Azure SDK and
    @azure/identity (new, 4.14.1) load only in blob mode. See the README,
    "File storage".
  • Start-up and readiness for blob mode. A missing or invalid setting
    is one error line each and exit 1; a container that is missing, refused
    or unreachable is one error line, and /readyz answers 503 file storage unreachable until it has answered once.
  • copy-uploads-to-blob.cjs, in the image: copies an install's
    uploads folder into its container, verified by size and MD5; idempotent,
    resumable, never overwrites different content, never copies the key file.
  • Stored usage (storedUsage()): the workspace's files and bytes, one
    listing call per 5000 files, for usage metering.
  • Riding out a database restart. With DATABASE_RETRY_WINDOW_MS
    (60 s by default in cloud mode, 0 self-hosted) requests wait through a
    restart or failover with backoff: getting a connection is retried, and so
    is a statement pg refused to send; a statement that was sent is never
    re-run, and a transaction that broke is never resumed. A request never
    waits past the outage's own window or the drain deadline. See the README,
    "Riding out a database restart".
  • Telemetry: compassdocs.db.outages and compassdocs.db.retried_requests.

Changed

  • Backups are made from, and restore into, whichever file store is in
    use; an uploads-folder backup restores into a container and the other way
    round.
  • One log line per database outage (db.unavailable, then
    db.available with what waited and what gave up), in both modes. An idle
    connection the server closed is noted, not an uncaught error; a broken
    connection is closed, never handed out again. A background task that meets
    an outage skips its run quietly and tries again at the next one.
  • /readyz never waits for the database.
  • Newsletter attachments in blob mode are read from the store when the mail
    is built (queued sends keep working: an uploads-folder path still is one).
  • Log redaction also masks COMPASSDOCS_BLOB_CONNECTION_STRING,
    AZURE_CLIENT_SECRET, AccountKey=…, SharedAccessSignature=… and a
    SAS's sig=.
  • A smaller image (about 97 MB less in the standalone build): a route
    that can reach the uploads folder no longer makes the build list the
    whole project in its trace file. The files shipped are the same.

v1.21.1

Choose a tag to compare

@github-actions github-actions released this 26 Nov 16:58
68c34ac

OpenTelemetry traces and metrics, to Azure Application Insights or any OTLP
collector, for cloud workspaces and self-hosted installs alike. Off unless
an exporter is set: an install that sets neither variable loads none of it.

Added

  • Telemetry (OpenTelemetry). APPLICATIONINSIGHTS_CONNECTION_STRING
    sends traces and metrics to Application Insights,
    OTEL_EXPORTER_OTLP_ENDPOINT to any OTLP/HTTP collector (both: to both);
    OTEL_SDK_DISABLED=true turns it off. Logs are not exported: stdout
    already reaches the platform's log store. See the README, "Telemetry
    (OpenTelemetry)", for the variables and what is and isn't recorded.
    • Traces: one span per request, named by its route (GET /docs/[slug]), with Next.js's spans, outgoing HTTP (Microsoft Graph,
      the Anthropic API, Azure Blob, S3, webhooks) and the Postgres queries
      (statement text, never parameter values) beneath it; one span per
      background job run (job <name>) and per SMTP send. /healthz and
      /readyz are never traced.
    • Sampling: parent-based, every trace self-hosted and one in five in
      cloud mode, or as OTEL_TRACES_SAMPLER / OTEL_TRACES_SAMPLER_ARG say.
    • Metrics every 60 s: request duration by route, the database pool's
      used, idle and waiting counts, background job runs and failures, mail
      sent and failed.
    • Privacy: no headers beyond user-agent, content type and length and
      the request id; no cookies, query strings, request paths (the route
      instead), bodies, SQL parameters, email addresses or client IPs; secret
      values, bearer tokens and API keys masked as in the logs.
    • Every span and metric carries service.name=compassdocs, the version,
      the replica, OTEL_RESOURCE_ATTRIBUTES and, in cloud mode, the
      workspace (COMPASSDOCS_WORKSPACE_ID).
  • trace_id and span_id on JSON log lines written inside a traced
    request or job, and the request's request_id on its span, so a log line
    leads to its trace.

Changed

  • Shutdown: with telemetry on, what it holds is sent during the drain,
    before the database pool closes, for at most 5 s and never past
    COMPASSDOCS_SHUTDOWN_TIMEOUT. A collector that hangs or is down never
    holds up the exit or stops the app; its errors are logged once each.
  • A malformed APPLICATIONINSIGHTS_CONNECTION_STRING is one warning at
    start-up, never fatal.

v1.21.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 04:59
835c8a2

Cloud mode, the first part of CompassDocs Cloud on Azure; and, for every
install, clean shutdowns and a readiness check that waits for the
database's migrations. Self-hosted installs change nothing unless they opt
in.

Added

  • Cloud mode (COMPASSDOCS_CLOUD=1) for workspaces run by CompassDocs
    Cloud as Azure Container Apps. Domain & HTTPS, the update check and
    one-click updater, and Backups (schedule, destinations, restore) are the
    platform's: they leave the settings rail, its search and the command
    palette, an old link shows "Managed by CompassDocs Cloud", and their APIs
    answer 403 with a plain sentence. The setup wizard asks for no domain,
    HTTPS or cookie choice. See the README, "Cloud mode (COMPASSDOCS_CLOUD)",
    for every variable and API.
  • Secrets from the environment in cloud mode. COMPASSDOCS_SECRET_KEY
    is required (the app refuses to start without it and says why) and no key
    file is ever created or read. A license key, an Anthropic API key or an
    SMTP relay (COMPASSDOCS_SMTP_*) set by the platform wins over a saved
    one and shows as "Set by the platform", read-only. Every link and redirect
    comes from COMPASSDOCS_BASE_URL, which is required too (an https://
    address); a custom domain left in the settings of a database moved from a
    self-hosted install is never used. The session cookie is always Secure.
  • DATABASE_PASSWORD (any install, optional): the database password
    apart from DATABASE_URL, for secret stores.
  • JSON logs in cloud mode, or anywhere with COMPASSDOCS_LOG_FORMAT=json:
    every line on stdout and stderr is one JSON object with time, level,
    message, event and the request's x-request-id, and secrets are written
    as [redacted]. Readable lines stay the default.

Changed

  • Clean shutdowns. The image now starts with node start.cjs. On
    SIGTERM CompassDocs stops taking new requests and background work, lets
    what is running finish, closes the database connections and exits 0,
    within 25 seconds (COMPASSDOCS_SHUTDOWN_TIMEOUT). The compose files give
    it 30 seconds (stop_grace_period) instead of Docker's 10.
  • /readyz waits for the migrations: it answers 503 "migrations in
    progress" after an upgrade until the schema is ready, and 503 "draining"
    while shutting down. /healthz is unchanged (no database).
  • For installs that set COMPASSDOCS_LOG_FORMAT=json (readable lines,
    the default, are unchanged):
    • every console line is now one JSON object, not only some (a stack trace
      is one line), and Node's own warnings are JSON lines too (written
      through the console, so a process.on("warning") listener no longer
      sees them); --no-warnings and NODE_NO_WARNINGS=1 still silence them;
    • message is always present, and lines lead with time and message;
      ts and event are still there;
    • fields named like a secret (password, token, secret, api_key,
      authorization, cookie, credential…) are written as [redacted],
      and so are the secret variables' values, URL passwords and bearer
      tokens wherever they appear;
    • the first-run setup token is in the line's setup_token field, no
      longer inside message.

Upgrading

  • Nothing to do. Update as usual. If you start the container with your
    own command, use node start.cjs to get the clean shutdown.
  • The encryption key stays where it is. The compose files don't pass
    COMPASSDOCS_SECRET_KEY, so a key that sits unused in .env doesn't take
    over from /uploads/.secret.key. To move the key into .env (optional),
    follow the README, "Moving a self-hosted install to
    COMPASSDOCS_SECRET_KEY".
  • If you already set COMPASSDOCS_SECRET_KEY yourself (an override
    file, env_file) and a key file with a different key is also there,
    CompassDocs now checks which key the database's credentials were
    encrypted with. When it is the variable's, it starts as before and logs
    that the file is unused. Otherwise it refuses to start, and its log says
    which key to keep, so credentials are never silently left unreadable.
    And when the key file is missing but the database holds encrypted
    credentials, no new key file is written: restore the file, or set the
    variable to the old key (lost for good: set it to a new key and enter
    those credentials again).

v1.20.41

Choose a tag to compare

@github-actions github-actions released this 22 Nov 19:47
17dc37a

Security hardening from a full code-scanning review.

Security

  • Safer outbound requests. The link and webhook fetcher now recognises
    every way of writing a private or loopback address in IPv6 (including an
    IPv4 address carried inside one), and Slack replies only ever go to
    Slack's own host.
  • No slow-down from crafted input. Pattern matching on email addresses,
    search queries, SAML metadata, Teams messages and newsletter senders is
    bounded or rewritten so oversized input can't tie up the server.
  • Stronger random tokens. Reply tokens and integration keys are now
    drawn evenly from their alphabet (they were slightly biased).
  • Writing assistant: only CompassDocs' own document types reach the
    assistant's instructions, never text from the browser.
  • Audit log: the line for a failed sign-in now holds a keyed fingerprint
    of the typed name (HMAC from the master key), so it can't be reversed
    even when someone types a password into the name field. Values differ
    from earlier logs.

Changed

  • Directory → Fields mapping patterns: new or edited patterns must be
    valid for the safe (RE2) pattern engine, and the error says why a pattern
    is refused. Patterns saved earlier keep working, on the first 1,024
    characters of each value. They are flagged "Rewrite pattern" in
    Directory → Fields and logged on each sync.

Upgrading

  • Nothing to do. Update as usual. If Directory → Fields shows a
    "Rewrite pattern" chip, rewrite that pattern without lookarounds or
    backreferences when convenient.

v1.20.40

Choose a tag to compare

@github-actions github-actions released this 22 Nov 17:21
abdfd6e

Up-to-date dependencies, and the image moves to Node.js 24 LTS.

Changed

  • The Docker image runs on Node.js 24 (the long-term-support line)
    instead of Node.js 22. Nothing to change on your side: docker compose pull picks it up like any update.
  • Dependency updates (minor and patch releases): React 19.3, the
    Tiptap editor 3.34, nodemailer 10.6, the Postgres driver 8.23, the AWS and
    Azure storage SDKs, SAML, DOMPurify, lucide icons and more.

Upgrading

  • Nothing to do. Update as usual.