Skip to content

release(stage): v0.24.0 (Ever ID sign-in, Ever Platform connection, anonymous statistics, import/export fixes, docs security headers) - #634

Merged
evereq merged 120 commits into
stagefrom
develop
Nov 20, 2026
Merged

evereq merged 120 commits into
stagefrom
develop

Conversation

@evereq

@evereq evereq commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Promotes develop to stage for v0.24.0 (#631: version + changelog; changelog wording follow-up #633). The whole branch, as always:

Migrations (run automatically unless TR_DB_AUTOMIGRATE=false): Ever ID, translation history, instance identity, Ever Connect (+ person, managed). Ever runs no Traduora app on stage/prod (the demo uses :dev); this release publishes the :stage image tag and rolls docs-stage.

Checks per PR: CircleCI test and in-cluster ci.yml (unit, e2e on SQLite/PostgreSQL/MySQL, webapp), AI reviews handled on each PR.

🤖 Generated with Claude Code


Summary by cubic

Promotes develop to stage for v0.24.0: optional Ever ID (OpenID Connect) sign-in, an optional Ever Platform connection, translation change history, Flutter ARB import/export, and a demo banner, plus security, import/export, and accessibility fixes. Anonymous usage statistics are new and on by default (TR_EVER_STATS_ENABLED=false turns them off); the Ever Platform connection stays off unless TR_EVER_CONNECT_ENABLED=true. Demo installs (TR_DEMO=true) get a sign-up banner; every other install serves and renders exactly as before.

Migrations run automatically unless TR_DB_AUTOMIGRATE=false: Ever ID, translation history, instance identity, and Ever Connect tables.

Security fixes

  • Client tokens are revoked when the client secret rotates; clients must request a new token after deploy.
  • Sign-in lockout is counted before the password check.
  • CSV export strips formula triggers after each ;; PHP export escapes quotes and backslashes.
  • Access logs redact query string values; the password-reset link is built without path.join and encodes the email.

Import/export and accessibility

  • Fallback-locale exports match entries by term, not position; untranslated exports include terms with no translation row.
  • The import plan-limit count runs inside the import transaction, so a false 402 is no longer returned from one locale too many.
  • Nested JSON/YAML, PHP, and ARB exports answer 400 when a term cannot be held, naming the terms to rename.
  • .properties values import as exact text; RESX reads and writes plain text; XLIFF and Android XML keep CDATA, xliff:g, and placeholder content.
  • Icon-only and picker controls get accessible names; error banners announce with role=alert; failed saves are shown on the pages that made them.

Written for commit 1531ee6. Summary will update on new commits.

View guided diff Turn on auto-fix

evereq and others added 30 commits November 7, 2026 12:54
Adds `everid`, an OpenID Connect sign-in provider next to password, API
clients and Google. Off unless TR_AUTH_EVERID_ENABLED=true: then nothing is
listed, every Ever ID path answers 400 and no request reaches the issuer.
Traduora keeps issuing its own access tokens.

- providers.everid from TR_AUTH_EVERID_* with one discovery at boot; a
  failed discovery or incomplete settings leave it off with one warning.
  An issuer on an Ever host is used only by the Ever-operated cloud
  (TR_EVER_INSTALL_SOURCE=cloud), decided before any request.
- OidcProviderService: code exchange with the PKCE verifier (HTTP Basic
  client authentication), ID token verification with jose (iss, aud/azp,
  exp, nonce, email_verified), key set cache 600 s, unknown-kid refetch
  with a 30 s cooldown, stale keys served up to 6 h when the issuer is down.
- Accounts are found by issuer and subject only (user_identity): an equal
  email returns 409 account_exists, a new person gets 409
  signup_confirmation_required with a sealed record and the account is
  created only by POST /auth/everid/signup-confirm, accepting only the
  invitations the person ticked.
- Connect from settings (fresh sign-in within 300 s, both emails shown),
  list and disconnect identities (never the last way to sign in).
- Back-channel logout: tokens of an Ever ID sign-in carry sid and jti and
  stop working once the issuer ends that session; replayed or stale logout
  tokens are refused.
- One new migration for user_identity, ever_id_session and
  ever_id_logout_jti on PostgreSQL, MySQL and SQLite.
- Google keeps its exact token request, e-mail matching and listing entry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n test

- docs/configuration.md: TR_AUTH_EVERID_* rows and a "Sign in with Ever ID
  (optional)" section (setup, how accounts are matched, outbound requests).
- docker-compose.yaml: commented TR_AUTH_EVERID_* lines only; defaults
  unchanged.
- Static checks: no unverified decode on the Ever ID path, no redirect, no
  login_hint, no token in log lines.
- e2e: the migration reverts and applies again, touching only its tables.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ed sign-in methods

- Ever ID authorization request with state, nonce and PKCE S256, kept in
  session storage and read once by the callback; prompt=login and
  max_age=300 when connecting from the settings. No login_hint. The Google
  request is unchanged, and a callback without state is handled as before.
- "Continue with Ever ID" text button on the sign-in and sign-up pages.
- /auth/everid/confirm: "Create your Traduora account" with the name and
  email read-only and each pending invitation unchecked; nothing is
  created before the person confirms.
- An email that already has an account shows "sign in the usual way, then
  connect Ever ID", without signing in.
- Account settings: "Connected sign-in methods" (only while Ever ID is on):
  connect after a fresh sign-in, with both emails shown, and disconnect.
- Unit tests for the authorization request, callback, button, confirmation
  screen, settings card and NGXS state. karma-jasmine, which
  src/karma.conf.js already loads, is added to the dev dependencies so that
  ng test starts; a ChromeHeadlessCI launcher runs it in containers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tests

Runs on pull requests: API lint and unit tests, the whole API e2e suite on
each of the three supported databases (service containers), and the webapp
unit tests in headless Chrome. No secrets are used.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…session spec

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- ci: PostgreSQL with trust authentication and MySQL with an empty root
  password (throwaway databases of the job), so the workflow holds no
  password; yarn jest instead of npx; setup-chrome pinned to a commit.
- OidcProviderService: the settings checks move to acceptedIssuers().
- node: imports, no nested template literals, simpler base64url padding.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A logout that arrives before the session's first sign-in here (e.g. while
  the sign-up confirmation is open) is recorded, so that session can no
  longer be opened.
- Sessions and logout token ids are keyed by issuer, as a session id or a
  token id is unique only within its issuer; the access token carries that
  key as its sid.
- Issuers are kept exactly as configured, so one that names itself with a
  trailing slash works; extra issuers are de-duplicated ignoring it.
- After a failed refresh, cached keys and discovery documents are used for
  30 s without asking the issuer again.
- Connecting and disconnecting lock the account's row, so concurrent
  requests cannot leave it without a way to sign in or with two Ever IDs.
- The ZITADEL-specific scopes are requested only with an Ever Platform
  project id; other issuers get openid profile email.
- Back-channel logout is no longer under the per-address auth rate limit:
  the issuer sends every logout from its own servers.
- Webapp: the PKCE challenge is computed before anything is stored, and a
  failure (no secure context) shows a message.
- ci: actions pinned to commits, no persisted credentials. Docs: a neutral
  example issuer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- After a failed refresh, the issuer is not asked again for 30 s even when
  no key set or discovery document is cached yet, so requests cannot make
  Traduora call an unreachable issuer once each.
- Verification failures of jose are mapped in one helper.
- ci: yarn is installed without lifecycle scripts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(auth): optional Ever ID sign-in provider (OpenID Connect)
demo.gauzy.co shows a strip above the app: "You are using a demo account.
Finding our software useful? Click here to Sign Up and start using for
free!". demo.traduora.co had nothing.

- api: TR_DEMO (default false). When true, the index.html the API serves
  carries <meta name="traduora-demo" content="true"> (no-cache); otherwise
  index.html is sent exactly as before.
- webapp: app-demo-banner above the app bar, shown only when that tag is
  on the page, linking to the Traduora homepage (environment.homepage).
- docs: TR_DEMO in docs/configuration.md.

No new endpoint and no extra request: every install without TR_DEMO=true
serves and renders exactly what it did.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ged page

Greptile and CodeRabbit on #580: the static handler answers /index.html
before IndexController runs, so that document had no demo tag and the banner
stayed hidden for the session. With TR_DEMO=true, a GET/HEAD for /index.html
now redirects to /, which IndexController serves with the tag. Every other
request, and every request on other installs, is unchanged.

Unit tests for the middleware, and an HTTP-level e2e spec
(test/demo-index.e2e-spec.ts) for the tagged page, the redirect and the
untouched non-demo responses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CodeRabbit on #580: /%69ndex.html is the same file to the static handler
(it decodes the path), but req.path is not '/index.html', so the untagged
file was served. The middleware now compares the percent-decoded path; a
malformed one passes on unchanged (the static handler answers it itself).
Unit and e2e cases for the encoded path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SonarCloud on #580:
- The link used the Bootstrap primary (#3b84f8), 3.2:1 on the banner tint,
  under WCAG AA. It is now #1a56b8 (6.1:1); the tint is written opaque
  (#ebf3fe) so the contrast is checkable; body text #495057 is 7.3:1.
- node:fs, node:os, node:path, node:fs/promises in the files this PR adds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat: demo account banner for demo installs (TR_DEMO)
#581)

Task: T-2307

Ever-Works-Node: everdesk4-vm (54d70269-d2b6-4469-b3e7-44332fbd2298)
Ever-Works-Agent: Ever Traduora Engineer (12fad746-1921-43b3-b821-286a233c70ea)
Ever-Works-Job: 3b19a054-0b1a-42a5-9a31-bab59e548314
Ever-Works-Run: b14d3285-2fa6-4af9-a392-1163773ef2e8

Co-authored-by: Ever Traduora Engineer <ever-traduora-engineer@agents.ever.works>
* feat: capability loop: ship one missing capability in Ever Traduora

Task: T-2367

Ever-Works-Node: everdesk4-vm (54d70269-d2b6-4469-b3e7-44332fbd2298)
Ever-Works-Agent: Ever Traduora Engineer (12fad746-1921-43b3-b821-286a233c70ea)
Ever-Works-Job: 894a10b2-7bc1-409a-8744-37112a8db87f
Ever-Works-Run: f97c726c-17d0-444c-a89b-17baea4a6e6b

* feat: capability loop: ship one missing capability in Ever Traduora

Task: T-2367

Ever-Works-Node: everdesk4-vm (54d70269-d2b6-4469-b3e7-44332fbd2298)
Ever-Works-Agent: Ever Traduora Engineer (12fad746-1921-43b3-b821-286a233c70ea)
Ever-Works-Job: e5f125b2-a0e9-412b-8ea9-2ddaf6e9cb6f
Ever-Works-Run: 8aec12c8-ff14-4f08-a74a-c5e9ab212bdf

* feat: capability loop: ship one missing capability in Ever Traduora

Task: T-2367

Ever-Works-Node: everdesk4-vm (54d70269-d2b6-4469-b3e7-44332fbd2298)
Ever-Works-Agent: Ever Traduora Engineer (12fad746-1921-43b3-b821-286a233c70ea)
Ever-Works-Job: 4f5e8906-d9e3-41f7-ab85-6d405e1b77bc
Ever-Works-Run: e9878844-3d30-4c21-b0ab-b0deaf330b17

* feat: capability loop: ship one missing capability in Ever Traduora

Task: T-2367

Ever-Works-Node: everdesk4-vm (54d70269-d2b6-4469-b3e7-44332fbd2298)
Ever-Works-Agent: Ever Traduora Engineer (12fad746-1921-43b3-b821-286a233c70ea)
Ever-Works-Job: b2e798fc-c591-4e2c-9605-31bd75c69517
Ever-Works-Run: 67a9efbc-6fc5-4038-8cc8-89f060fca37d

---------

Co-authored-by: Ever Traduora Engineer <ever-traduora-engineer@agents.ever.works>
* feat: capability loop: ship one missing capability in Ever Traduora

Task: T-2408

Ever-Works-Node: everdesk4-vm (54d70269-d2b6-4469-b3e7-44332fbd2298)
Ever-Works-Agent: Ever Traduora Engineer (12fad746-1921-43b3-b821-286a233c70ea)
Ever-Works-Job: 850be4f2-1ffc-4efa-b2b7-2f4a68dbd3bc
Ever-Works-Run: 420e11d0-9a71-4a6b-ad22-859e05321a30

* feat: capability loop: ship one missing capability in Ever Traduora

Task: T-2408

Ever-Works-Node: everdesk4-vm (54d70269-d2b6-4469-b3e7-44332fbd2298)
Ever-Works-Agent: Ever Traduora Engineer (12fad746-1921-43b3-b821-286a233c70ea)
Ever-Works-Job: 298e4169-dea0-4b34-9a24-c0c6bd9e4788
Ever-Works-Run: 92ee0f7c-59a7-40d6-b9ef-a5cd4710b48f

* feat: capability loop: ship one missing capability in Ever Traduora

Task: T-2408

Ever-Works-Node: everdesk4-vm (54d70269-d2b6-4469-b3e7-44332fbd2298)
Ever-Works-Agent: Ever Traduora Engineer (12fad746-1921-43b3-b821-286a233c70ea)
Ever-Works-Job: 55781b66-53ff-42db-b8b2-c18d6c1b0388
Ever-Works-Run: a53e8d67-b2bc-467a-87c0-d5450bab07a9

* fix(api): translation history — one transaction per edit (SQLite queue), import history, missing indexes, format (review of #586)

- every edit runs in one transaction; on SQLite a single queue serialises
  edits, so a failed history write no longer leaves the new value saved;
- imports record history (2 queries + chunked inserts of 500, no per-row
  query);
- the project_locale_id and user_id indexes on every database (MySQL
  created them implicitly), with entity decorators;
- Prettier/lint fixes that kept CI red;
- 3 unit tests and api/test/translation-history.e2e-spec.ts.
Byte-for-byte the independent review's verified fix (SQLite, Postgres 15,
MySQL 5.7 and 8.4).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(api): the Ever ID migration test reverts its own migration; the history spec uses one listening server (CI of #586)

- ever-id.e2e-spec undid 'the last migration', which since #586 is the
  translation-history one; it now runs its own migration's down()/up().
- translation-history.e2e-spec: supertest started and closed a server per
  request, so on CI (Linux, Node 26, SQLite) parallel requests were cut off
  (read ECONNRESET) before reaching a handler; the app now listens once.
No source change. Verified CI-like: 175/175 e2e, 139/139 unit; history +
Ever ID specs 21/21 on Postgres 15, MySQL 5.7 and 8.4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(api): serialize SQLite transactions; lock the locale row so imports and edits keep one history chain (review of #586)

- Import vs edit (Postgres/MySQL/SQLite): the import read old values and
  MAX(revision) at different moments, so an overlapping edit broke the
  chain (MySQL failed the import on the revision index). The import now
  locks its project-locale row FOR UPDATE at READ COMMITTED before reading;
  edits take FOR SHARE on that row first (same order: locale, then
  translation).
- SQLite: one shared connection, so an overlapping transaction became a
  savepoint of another and a failed edit could roll back a finished
  import (already possible on develop for every transaction).
  serializeTransactions (installed via dataSourceFactory, SQLite only)
  runs data-source transactions one at a time.
- Tests: serialize-transactions.spec (3) and two overlap e2e tests.
Byte-for-byte the independent review's verified fix: CI-like 177/177 e2e,
142/142 unit; 35/35 on Postgres 15, MySQL 5.7 and 8.4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(api): one lock order for project-counter writes; deadlocks answer 503 + Retry-After (review of #586)

On MySQL, shared foreign-key locks on the project followed by the counter
update deadlocked import vs term create, term create vs term create and
import vs locale create (already on develop; the locale lock added a
cycle), and the import's catch-all reported them as 404. Now every
transaction that changes project counters (import, term create/delete,
locale create/delete) locks the project row first (FOR UPDATE on MySQL,
FOR NO KEY UPDATE on Postgres, nothing on serialized SQLite); edits lock
locale, then term, then translation (a concurrently deleted term/locale
gives 404, not 500); deadlocks and lock timeouts answer 503 with
Retry-After: 1. Tests: concurrent-writes.e2e-spec.ts and unit specs.
Byte-for-byte the independent review's verified fix: CI-like 179/179 e2e,
148/148 unit; 36/36 on Postgres 15, MySQL 5.7 and 8.4; 0 deadlocks in the
race harness.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(api): term create reads project locales through the transaction's manager (review of #586)

After lockProject, a read on another pooled connection could stall once
concurrent term creates on one project fill the pool. The read now runs
on the transaction's own connection.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Ever Traduora Engineer <ever-traduora-engineer@agents.ever.works>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…587)

* feat: quality loop: fix one real defect or rough edge in Ever Traduora

Task: T-2427

Ever-Works-Node: everdesk4-vm (54d70269-d2b6-4469-b3e7-44332fbd2298)
Ever-Works-Agent: Ever Traduora Engineer (12fad746-1921-43b3-b821-286a233c70ea)
Ever-Works-Job: 0da6cfab-aeb1-40eb-9b02-fa42b2cbfc64
Ever-Works-Run: 38fbbd51-ab11-4fe0-83df-4e73961927eb

* test(api): export e2e — a partly translated locale with a fallback keeps each term's own value (review of #587)

Exercises the export endpoint, not only the helper; fails on develop's
positional merge. Byte-for-byte the independent review's verified test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Ever Traduora Engineer <ever-traduora-engineer@agents.ever.works>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The settings toggle and the reference-locale remove button get accessible names and type=button, their icons are aria-hidden, and the toggle carries the id its menu's aria-labelledby already pointed to.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…2466] (#592)

Icon-only buttons in the webapp (team member/invite/API client/label remove, editable-text save and revert, label random color) get specific accessible names; inner material icons are aria-hidden; remove buttons get type=button. Independently reviewed: Karma 34/34, ng build passes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Access logs replace every query value with REDACTED (path and keys kept) via a safe-url morgan token, so emailed reset, invite and verify tokens are no longer logged. Independently verified on the real app: 13/13 secrets logged on develop, 0/13 with the fix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…2465] (#591)

Export untranslated keys now includes terms with no translation row in the locale (value '' OR IS NULL), e.g. after an import created the locale. Independently reviewed: 195-export probe identical elsewhere, export spec 10/10 on SQLite/Postgres/MySQL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…4] (#590)

The import plan-limit check runs inside the import transaction with the real locale and term counts, so it no longer counts one locale too many and returns a false 402; a 402 rolls back the created locale. Independently reviewed on SQLite, Postgres 15 and MySQL 5.7/8.4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy button on translation cells in the editor, with a clipboard fallback that keeps keyboard focus and a "Copied" status message. Fleet T-2485 + independent review fix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nt [T-2512] (#594)

Traduora PHP export: escape quotes and backslashes, keep sibling keys under their parent (T-2512). Fixes the issue described in the closure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…595)

Traduora: client tokens carry a hash of the stored secret, so rotating the secret revokes tokens issued with the old one (T-2513). Clients must request a new token once after deploy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#597)

Fleet task T-2515, authored and reviewed by the Ever Works lead lane. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…a parent [T-2514] (#596)

Fleet task T-2514, authored and reviewed by the Ever Works lead lane. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…mail [T-2539] (#598)

Fleet task T-2539, authored and reviewed by the Ever Works lead lane. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…1] (#599)

Fleet task T-2541, authored and reviewed by the Ever Works lead lane. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
evereq and others added 9 commits November 20, 2026 05:21
security.txt pointed Policy at https://github.com/ever-co/ever-traduora/security/policy,
but that repository has no SECURITY.md, so the page says "No security policy".
Policy is optional in RFC 9116; an empty policy page reads worse than none.
Contact, Expires, Preferred-Languages and Canonical are unchanged. The config
comment says to add Policy back once a policy is published.

Checked with nginx -t and curl on nginx 1.31.9 in a ci-builds pod: 200,
text/plain; charset=utf-8, four fields.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(security): drop the empty Policy field from security.txt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…in the footer

docs-website only.

- colorMode: defaultMode "light" + respectPrefersColorScheme, so docs
  follow the visitor's OS theme until they pick one, and are light when the
  OS theme can't be read.
- custom.css: :root carried two dark values, --ifm-font-color-base: #fff
  and --ifm-background-surface-color: #2a2c39. They apply whenever
  data-theme isn't "dark": without JavaScript (no data-theme at all) and in
  light mode, giving white body text outside .markdown/p and dark Infima
  surfaces (dropdowns, cards) on the white page. :root is the light palette
  again; the white base text moves under [data-theme='dark'], and the
  surface colour goes (Infima's dark block already overrode it), so dark
  mode renders as before.
- Footer: the light/dark ThemeToggle is replaced by a System / Light / Dark
  selector (Footer/ThemeSelector.tsx) in the same spot next to the locale
  dropdown, same palette. System is pressed until the visitor picks a
  theme; nothing is pressed before hydration, so the static HTML never
  claims a choice. theme.d.ts declares the classic theme's three
  color-mode icons it uses, as it does for the other @theme modules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… the theme selector

- In forced-colors mode the pressed option's background is replaced, so it
  gets a CanvasText border.
- outline-hidden instead of outline-none: in Tailwind 4 outline-none drops
  the outline outright, and the ring that replaces it is a box-shadow,
  which forced-colors mode removes; outline-hidden keeps a transparent
  outline that shows there.
- On coarse pointers the options are 44x44px (were 32px).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
outline-hidden on every option drew an outline round all three in
forced-colors mode (the transparent outline turns visible there), so the
focused one could not be told apart. focus-visible:outline-hidden keeps it
to the focused option. (CodeRabbit)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(docs): follow the OS theme, light without JS, System/Light/Dark in the footer
…ting (statistics are separate)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 444aa910-9514-4f6b-a321-d6b531f51c06

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@gitguardian

gitguardian Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

⚠️ GitGuardian has uncovered 2 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
39789121 Triggered Generic Password 4ae2fd0 .github/workflows/ci.yml View secret
39789120 Triggered Generic Password 4ae2fd0 .github/workflows/ci.yml View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

@socket-security

socket-security Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​ever-co/​connect-sdk@​1.0.0-rc.88010010093100

View full report

@evereq

evereq commented Nov 20, 2026

Copy link
Copy Markdown
Member Author

Ever Works AI review — ever-co/ever-traduora#634

Verdict: Reviewed — coherent release PR, but the auth-controller diff is truncated and the new OIDC/Ever Platform integration touches security-critical paths, so the sign-in changes need a separate close look. Risk flags: large release diff touching auth, database connection, and config; new @ever-co/connect-sdk release-candidate dependency; no exposed secrets visible in the diff.

File notes:

  • .circleci/config.yml — TR_EVER_STATS_ENABLED: 'false' is added to test_unit and test_e2e; verify any other CircleCI jobs that boot the API (build, lint, e2e on other DBs) also opt out, since stats are on by default.
  • .github/workflows/ci.yml — vars.RUNNER_LINUX_X64_4 is referenced with a fallback; confirm this variable exists in GitHub repository settings, otherwise every job runs on ubuntu-latest and the custom runner intent is silent.
  • api/package.json — @ever-co/connect-sdk is pinned to 1.0.0-rc.8, a release candidate; either promote to a stable release or document the upgrade path before the stage image is published.
  • api/package.json — nock is added to devDependencies; assert it is only imported in test files so it is not bundled into the production API image.
  • api/src/connection/serialize-transactions.ts — The monkey-patch replaces dataSource.manager.transaction; add a concurrent-write integration test on SQLite to prove transactions no longer nest into savepoints, and confirm dataSource.manager returns a stable instance for the app lifetime.
  • api/src/app.module.ts — dataSourceFactory wraps the DataSource only for BETTER_SQLITE3; verify NestJS still closes/drops the connection cleanly on app shutdown and migrations run against the wrapped instance.
  • api/src/config.ts — everIdScope appends Zitadel-specific scopes when platformProjectId is set; ensure the issuer discovery document is loaded before sign-in redirects so scopes match the actual issuer, especially for non-Ever OIDC providers.
  • api/src/app.module.ever-platform.spec.ts — The suite mutates process.env at module load before importing config; this is isolated per Jest file, but do not import config in a shared global setup that runs before this file in the same worker.
  • api/src/controllers/auth.controller.ts — The diff is truncated at this file; the Ever ID / OIDC sign-in changes are security-critical and could not be fully reviewed—request the author to make the complete diff available or extract the auth changes into a dedicated review.
  • .env.sample — TR_EVER_STATS_ENABLED= is empty, which getBoolOrDefault treats as on; the upgrade notes should explicitly tell existing operators that anonymous statistics are now enabled by default unless set to false.

Work: Ever Traduora

@greptile-apps

greptile-apps Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 2/5

[Critical impact] The release changes account sign-in and adds routes for sending installation and account data to an external platform.

Fix logout after identity removal and stale connection responses before merging.

Findings

  1. P1 Security Disconnected tokens survive logout ▶
  2. P1 Old responses end new connections ▶
  3. P2 Reset leaves statistics link stale ▶

Summary

Promotes v0.24.0 with optional Ever ID sign-in, Ever Platform connection, default-on anonymous statistics, translation history, import/export fixes, and accessibility updates.

  • Ever ID lets people sign in and link their identity to a Traduora account.
  • Traduora sends operators a daily anonymous usage report and gives them controls to review it.
  • Operators can connect an installation to Ever Platform and control its consent-based services.
  • Translation edits now keep a numbered history that teams can look up.
  • Import and export now support Flutter ARB and preserve more format-specific translation data.
  • Sign-in and data-handling paths now limit attempts and expose fewer secrets.
  • Translation pages add copy controls, clearer errors, and accessibility improvements.
  • The documentation site adds security headers and lets visitors choose their color theme.

Diagram

sequenceDiagram
  participant Operator
  participant API
  participant Platform
  API->>Platform: Poll events with old connection
  Operator->>API: Disconnect, then reconnect
  Platform-->>API: Old connection revoked
  API->>API: applyTypes without originating kid
  API->>API: End new connection and delete links
Loading

Reviews (1) · Last reviewed commit: "Merge pull request #631 from ever-co/cho..." · Reviewed by Greptile

evereq and others added 2 commits November 20, 2026 11:39
…ata too

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rding

docs(changelog): 0.24.0 connection note no longer contradicts the statistics note
@evereq

evereq commented Nov 20, 2026

Copy link
Copy Markdown
Member Author

Ever Works AI review — ever-co/ever-traduora#634

Verdict: Reviewed, proceed with observations. Risk flags: anonymous usage statistics are enabled by default and send counts and two settings to api.ever.co once a day (disabled in CI and test scripts); the change touches the critical authentication path with new Ever ID/OIDC sign-in; a DataSource monkey-patch serializes SQLite transactions.

File notes:

  • .github/workflows/ci.yml — The e2e matrix binds postgres to host port 5432 and mysql to host port 3306. If vars.RUNNER_LINUX_X64_4 resolves to a shared self-hosted runner, parallel matrix jobs will collide on those ports; use job-scoped dynamic ports or a dedicated runner pool.
  • api/src/connection/serialize-transactions.ts — Monkey-patches dataSource.manager.transaction in place, which only works if dataSource.manager returns a singleton EntityManager for this TypeORM version; verify that assumption. Also run.catch(() => undefined) swallows a transaction rejection before the next transaction starts — intended per the spec, but document that each failed transaction still rejects to its own caller.
  • api/src/config.ts — everIdScope appends Zitadel-specific URN scopes whenever platformProjectId is set. If TR_AUTH_EVERID_ISSUER is a non-Zitadel OIDC issuer with a project ID configured, the authorization request may be rejected; restrict the URN scopes to Ever/Zitadel issuers.
  • api/package.json — The start script hardcodes TR_EVER_STATS_ENABLED=false, so local development diverges from the production default (stats on). Either remove it from start so operators see the real default, or document the override prominently.
  • api/src/controllers/auth.controller.ts — The diff for this file was truncated by the size cap, so the Ever ID sign-in / OIDC callback, PKCE state/nonce handling, and backchannel-logout logic could not be reviewed; ensure the full diff is available before merge, as this is the critical auth path.
  • api/src/app.module.ts — serializeTransactions is only applied for DbType.BETTER_SQLITE3; confirm no other SQLite driver variant shares a single connection and needs the same serialization.
  • .env.sample — TR_EVER_STATS_ENABLED= is left unset, which resolves to the default (on) via getBoolOrDefault; the comment states 'on unless exactly false', but operators may miss that an empty value still enables stats — consider showing TR_EVER_STATS_ENABLED=false as the commented opt-out example.
  • api/src/app.module.ever-platform.spec.ts — The 'keeps the catch-all index route last' assertion couples the test to Nest's internal route-registration order; if AppModule's import list is refactored, this test may break without a real routing regression. Prefer an integration assertion over the actual router stack, or keep it tightly paired with the module-order comment in app.module.ts.
  • .circleci/config.yml — Consistently sets TR_EVER_STATS_ENABLED: 'false' in both test jobs so CI never calls the Ever Platform host — good; keep this in sync if new test jobs are added.
  • api/src/app.module.ts — Access logs now use SAFE_SHORT_FORMAT instead of 'short', redacting query strings per the access-log redaction fix; verify SAFE_SHORT_FORMAT still records method, path, and status for debugging.
  • api/src/config.ts — New demo flag and redirectDemoIndexFile middleware serve a demo-tagged index.html; ensure this only activates under TR_DEMO and cannot be forced by a client to expose demo branding on non-demo installs.
  • api/package.json — Adds @ever-co/connect-sdk, ajv, jose, and nock; confirm jose and ajv are compatible with NestJS 11 and that nock remains dev-only (it is).

Work: Ever Traduora

- Removing an Ever ID identity ends the account's Ever ID sessions: sessions record the
  account, not the identity, so a token issued through the removed identity kept working
  until it expired (a later subject-only logout can no longer find it).
- A feed page, a 410 re-read or a state read for a connection that was replaced meanwhile
  (disconnect + connect during the long poll) never ends the new connection: the
  connection key is carried to endedByPlatform from the feed and from refreshSelf.
- The statistics link records which statistics identity it linked and is sent again after
  the operator resets the instance identity (it stayed { linked: true } for the old one).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@evereq

evereq commented Nov 20, 2026

Copy link
Copy Markdown
Member Author

GitGuardian (2 "Generic Password" in .github/workflows/ci.yml at 4ae2fd0): false positive. Those are the throwaway credentials of the ephemeral MySQL service container the e2e job starts (MYSQL_PASSWORD: tr_e2e, MYSQL_ROOT_PASSWORD: tr_e2e_root for database tr_e2e); they protect nothing outside that CI job, and the current ci.yml no longer has them (empty password / trust auth).

Greptile (3 findings): all valid, fixed in #635 before this merges. CodeRabbit skipped this PR (auto reviews off for release PRs); every PR in the release was reviewed on its own.

@evereq

evereq commented Nov 20, 2026 •

Copy link
Copy Markdown
Member Author

Ever Works AI review (both runs): observations, answered here:

evereq and others added 3 commits November 20, 2026 12:04
- A sign-in opens its Ever ID session only while the identity is still the account's,
  with the account's row locked as unlink locks it: a disconnect can no longer miss a
  session opened by a sign-in that read the identity just before.
- endedByPlatform ends only the connection it read: the update matches its key and state
  in the same transaction that deletes the integration and person-link rows, so another
  API process's disconnect + connect is never overwritten.
- The statistics link is checked on every scheduler tick (two reads when nothing changed),
  so a reset identity is linked again without waiting for a consent event.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ates only its config, distinct test kids

- The 410 re-read stores its continue position only for the connection key and the cursor
  the read started at (as a normal page does), so a reconnect keeps its own cursor.
- syncStatsLink writes only the config, and only while the same consent is still enabled
  and not waiting for a remote revoke: a switch-off made during the send is never undone.
- The stale-page test gives each redemption its own key, as Ever Platform does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(api): Ever ID unlink ends sessions; stale feed pages never end a new connection; stats link follows identity reset
@sonarqubecloud

Copy link
Copy Markdown

@evereq

evereq commented Nov 20, 2026

Copy link
Copy Markdown
Member Author

Ever Works AI review — ever-co/ever-traduora#634

Verdict: Reviewable with reservations — the diff is truncated and the auth controller (a critical path) is not fully visible. Risk flags: touched critical path (api/src/controllers/auth.controller.ts), new outbound Ever Platform integration, default-on anonymous statistics, release-candidate dependency (@ever-co/connect-sdk@1.0.0-rc.8).

File notes:

  • .circleci/config.yml — Redefining environment after <<: *defaults replaces rather than merges the anchor's environment; if defaults sets other vars (e.g. DB credentials), they are lost. Either merge explicitly or confirm defaults has no environment key.
  • api/package.json — start forces TR_EVER_STATS_ENABLED=false while .env.sample leaves it unset (defaults to on); local dev and production would behave differently. Make them consistent or document the deliberate difference.
  • api/package.json — @ever-co/connect-sdk is pinned to a release candidate (1.0.0-rc.8); an RC in a release branch is a stability risk. Pin to a stable release before merging.
  • api/src/connection/serialize-transactions.ts — Monkey-patches dataSource.manager.transaction only; any code that obtains a separate EntityManager (e.g. via getManager() or repository managers) bypasses serialization and can nest SQLite transactions. Audit all transactional call sites to use dataSource.manager.
  • api/src/config.ts — everIdScope adds Zitadel-specific URNs whenever platformProjectId is set; if Ever ID is ever backed by a non-Zitadel issuer with a project id, those scopes will be invalid. Scope the URNs to the Ever ID issuer specifically.
  • api/src/app.module.ts — IndexModule is imported last to keep the catch-all route last, and IndexController moved there; verify IndexController is still declared in IndexModule (it is) and that no other controller relied on root-module registration order.
  • api/src/app.module.ever-platform.spec.ts — Top-level mutation of process.env.TR_EVER_STATS_ENABLED is never restored; acceptable under Jest file isolation but fragile if this suite is ever merged into a shared process. Restore env in afterEach or use jest.isolateModules.
  • api/src/controllers/auth.controller.ts — Diff truncated; this is the critical auth path (Ever ID sign-in, lockout, password reset). The full diff was not visible, so this file requires a complete review before merge.
  • .github/workflows/ci.yml — TR_DB_HOST/TR_DB_PORT/TR_DB_USER are set for all matrix entries including better-sqlite3, which is file-based and ignores them; harmless but misleading. Either scope those vars to non-sqlite entries or add a comment.
  • .env.sample — TR_EVER_STATS_ENABLED= is unset, so statistics are on by default and will call https://api.ever.co unless the operator sets false; the behavior is documented in the sample, which is acceptable, but confirm the docs link exists.
  • api/src/app.module.ts — dataSourceFactory wraps only BETTER_SQLITE3 in serializeTransactions and returns the raw DataSource otherwise; confirm @nestjs/typeorm v11 supports dataSourceFactory in forRootAsync and that the returned instance is used by forFeature.
  • api/src/connection/serialize-transactions.ts — previous = run.catch(() => undefined) swallows the rejection for chaining while run still rejects to its caller; this is correct but non-obvious. Add a comment explaining that a failed transaction does not block the next one.

Work: Ever Traduora

@evereq

evereq commented Nov 20, 2026

Copy link
Copy Markdown
Member Author

Ever Works AI review (third run): the same points as before (answered above); new ones:

  • CircleCI environment after <<: *defaults: defaults has no environment key, so nothing is lost; the test check passed on this head.
  • serialize-transactions and repository managers: with TypeORM 0.3 a repository's manager is the DataSource's own manager instance, the one that is patched; the Ever ID and Ever Connect transactions all go through it.
  • Stats default vs start script / env sample, RC SDK, Zitadel scopes, auth controller: see the answers above and feat(auth): optional Ever ID sign-in provider (OpenID Connect) #578's own review.

The Greptile findings are fixed in #635 (merged; this head's tree is the exact tree that passed CircleCI and in-cluster ci.yml on #635: unit 385/385, e2e 221/221 on SQLite, PostgreSQL and MySQL, webapp). Merging.

@evereq
evereq merged commit ce47eda into stage Nov 20, 2026
10 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant