Configure cspell to not print its progress messages (thousands and thousands of lines of files checked), as that obscured any actual error messages, but also ensure that it does display a summary message at the end of its run for auditing purposes.
* root: require Node.js 24.22.1
Raise the minimum Node.js version to the 24.22.1 security release
across `.nvmrc`, `engines.node`, and `devEngines.runtime`.
https://nodejs.org/en/blog/release/v24.22.1
* lifecycle/container, website: bump node images to 26.12.1
Pin both build images to the 26.12.1 security release. The server
image previously floated on the `26-trixie-slim` tag.
https://nodejs.org/en/blog/release/v26.12.1
* ci: fix stale setup-node version comments
The pinned commit is already v7.1.0 (#26852, #26854).
* scripts/node: support || and ^ ranges in lint-runtime
Check versions against every `||`-separated comparator instead of a single `>=` or exact pin.
* root: exclude unpatched Node.js 25 and 26 releases
Narrow the engines range to `^24.22.1 || >=26.12.1`. The previous
`>=24.22.1` also accepted 26.12.0 and every 25.x release.
* Flesh out Oxlint, Oxfmt
* Flesh out.
* web: finish oxlint/oxfmt activation
- Fix `oxlint.config.ts` to invoke `createOxlintConfig` (it was exporting the
factory uninvoked, so nothing was linted); enable `lit` + `react`.
- Repair the lint scripts: `lint:fix` referenced a deleted `format` script;
add `fix:oxfmt`; switch the strict `lint-check` from ESLint to oxlint.
- Drop the now-redundant ESLint/Prettier deps and the `@goauthentik/prettier-config`
override; lit/wc linting now comes from oxlint via `@goauthentik/oxlint-config`.
- Move the `prettier --write` wireit steps to `oxfmt --write`.
- Remove the orphaned `eslint.config.mjs` and `prettier.config.mjs`.
- Regenerate `package-lock.json`.
* web: apply `oxlint --fix` autofixes
Mechanical autofixes across web/ from `oxlint --fix`: padding-lines blank lines,
object-shorthand, and unicorn's no-useless-spread / prefer-string-starts-ends-with.
Clears 1170 of the 1184 baseline findings; the remaining ~14 need manual attention.
* web: resolve remaining oxlint findings
The ~14 findings `oxlint --fix` could not auto-fix:
- Prefix unused positional params with `_` (9 callbacks/methods).
- Name the empty Playwright fixtures param `_` instead of `{}` (no-empty-pattern).
- Make a stray trailing comment a leading comment so padding-lines is satisfied.
- Disable unicorn/no-thenable on `Route.then()` — an intentional fluent builder.
- Delete two dead, fully-commented, unimported files (no-empty-file).
- Fix a malformed `apple.d.ts` ambient declaration (invalid destructuring-as-type
and an `async` modifier) that oxlint's parser rejected.
`oxlint --max-warnings=0` now exits clean.
* web: complete prettier removal and sync pnpm lockfiles
Swaps the `@goauthentik/prettier-config-dev` optional dependency for the
oxlint/oxfmt equivalents that web/oxlint.config.ts and web/oxfmt.config.ts
import, and drops the top-level `prettier` key pointing at the deleted
prettier.config.mjs.
Replaces the upstream package-lock.json regeneration, which no longer
applies now that the repo is pnpm-only.
* root, web: drop the last eslint and prettier references
Points the `locales:repair` and `precommit` wireit steps at oxfmt, and
removes the root `prettier` config key and `eslint` dependency now that
nothing consumes them.
* build: bump oxfmt to 0.68.0 and stop greedy JSDoc re-wrapping
oxfmt's JSDoc formatter re-wraps every description by default, and in doing
so deletes the space between an inline code span and the adjacent word:
`\`::part(cell-{idx})\` remains` becomes `\`::part(cell-{idx})\`remains`.
Present in both 0.67.0 and 0.68.0.
`lineWrappingStyle: "balance"" keeps the original line breaks when they
already fit inside the print width, which avoids the re-wrap entirely for
all but a couple of comments.
* web: reformat with oxfmt
Mechanical reformat of web/ under the oxfmt config.
ak-select-table's doc block listed @element and @class ahead of its prose,
so the formatter read the whole body as the tag's description and indented
it under them. Moved the tags below the description, which is the
conventional JSDoc order and keeps the sections intact.
* web/oxlint-config: port the padding rules and a fixture harness
Expands `padding-lines` and adds the two rules that sit beside it, under the
existing `goauthentik/` plugin namespace:
- `padding-lines` — blank line before the statements that end a path or a step
(`return`, `continue`, `break`, a bare `x++`), before block-like statements,
and before TS interface/type/enum/module declarations. The old copy covered
`return` and blocks only, and looked through an `export` wrapper, so
`export interface Foo {}` was never padded.
- `console-padding` — blank line each side of a `console.*` call, with a run of
consecutive calls treated as one group.
- `multiline-statement-padding` — blank line each side of a statement spanning
lines.
All three share `padding-utils.ts`, which anchors every fix to the END of the
earlier statement. That keeps them composable: two rules wanting the same blank
line emit the identical edit, so one applies and the other is a no-op, instead
of each inserting a newline and leaving a gap of two.
Opt-in via `createOxlintConfig({ padding: true })`, and no workspace turns them
on, so this reformats nothing. On `web/` they would be 1217, 1816 and 58 fixes
respectively.
`scripts/verify-fixtures.mjs` asserts each rule fires in its violating fixture
and is silent in the clean one, that each autofix lands the violating fixture
exactly on its clean counterpart with a second pass changing nothing, and that
the rules stay off by default. Runs in CI as the `oxlint-fixtures` job.
`fixtures/` is excluded from this package's own oxlint and oxfmt runs, since
formatting them would insert the blank lines they exist to be missing.
* web: apply the padding rule autofixes
Fallout from enabling `console-padding` and `multiline-statement-padding`
on web via the new `padding` option.
* packages/oxlint-config: fix the misapplied oxfmt ignore
The cherry-picked patch targeted packages/oxlint-config/oxfmt.config.ts,
which does not exist on this branch, so git applied it to client-ts's
identical file — leaving it importing DefaultIgnorePatterns from
@goauthentik/oxfmt-config, which does not export it.
Restores client-ts's config and adds the intended one to oxlint-config,
sourcing DefaultIgnorePatterns from @goauthentik/oxlint-config.
* website: swap eslint and prettier for oxlint and oxfmt
Drops the five eslint configs and .prettierignore, adds the oxlint/oxfmt
configs, and reformats. DefaultIgnorePatterns is imported from
@goauthentik/oxlint-config, which is where it lives.
* packages: swap eslint and prettier for oxlint and oxfmt
Migrates docusaurus-config, esbuild-plugin-live-reload, geo, logger-js and
theme to the shared oxlint/oxfmt configs; fonts is asset-only so it gets
formatting alone. theme's CSS check moves from @eslint/css to stylelint,
matching web.
Deletes packages/eslint-config and packages/prettier-config — nothing
depends on them any more — and drops them from the npm publish matrix and
the three workspace manifests.
* root, web/sfe: drop the last prettier ignores and scripts
Removes the orphaned .prettierignore files and points sfe's formatting
scripts at oxfmt.
oxfmt honours .prettierignore, so web's and website's exclusions move into
their oxfmt configs — without them the minified vendored assets, the
generated locale-codes.ts and the pnpm manifests get reformatted.
* packages/oxfmt-config: export a createOxfmtConfig builder
Mirrors createOxlintConfig: takes ignorePatterns and an overrides escape
hatch, appending per-file overrides to the shared ones rather than
replacing them. Every consumer was hand-spreading authentikOxfmtConfig and
cross-importing DefaultIgnorePatterns from oxlint-config; that constant is
now exported here too.
Also sets capitalizeDescriptions: false. oxfmt capitalises the first letter
of every JSDoc description, which rewrote `authentik` to `Authentik` in
eight files — the product name is always lowercase.
* root, web, website, packages: make `lint` cover formatting everywhere
website ran oxlint only; it now checks formatting too, matching web and the
packages. The two config packages shipped an oxlint.config.ts with no script
to run it, and fonts had no aggregate script at all.
Declares npm-run-all in the eight manifests that call run-s, and restores
eslint-plugin-lit/wc in web — oxlint resolves jsPlugins relative to the
config, not to @goauthentik/oxlint-config, so web has to see them itself.
* Flesh out playwright reports.
* Fix alignment on smaller viewports.
* Reorder.
* Fix issues surrounding alignment, ARIA labels, mouse behavior, etc.
* Clean up nav tab alignment.
* Fix timing issue where license mixin does not consistently trigger updates.
* Remove unused.
* Fix warning.
* Fix config.
* Fix types.
* Clean up scripts.
* Format generated.
* Retire eslint and prettier from dependency tooling.
The dependabot `eslint` groups matched packages no longer in the tree.
Replace them with an `oxc` group for oxlint/oxfmt and a `lint` group for
what survived the swap: eslint-plugin-lit and eslint-plugin-wc, whose
rules oxlint loads through `jsPlugins`, plus stylelint, which picked up
CSS linting and had no group at all.
Cover packages/{fonts,geo,theme} in the NPM Packages block. All three are
workspace members with oxlint/oxfmt devDependencies, but no npm block
listed them, so dependabot was never updating them.
Drop the dead eslint/typescript-eslint catalog entries and the overrides
keyed on them, along with the prettier entries website/ still carried. No
manifest referenced any of them, and pnpm had recorded none of them in a
lockfile's `catalogs:` section. eslint itself stays in the tree as a
type-only peer of the two plugins.
* web: realign the user-switcher e2e locators, fix an invalid ARIA attribute
The navigation header rework renamed the switcher toggle's accessible name
from "Switch user" to "Toggle user navigation menu" and gave each account
entry an `aria-label` of `Switch to user "<display name>"`. Three locators
still targeted the old markup, across two fixtures and one test, which broke
the remember-me, passkey and user-switching specs.
The entry locator matches rendered text rather than the accessible name: the
new aria-label omits the email, which is what identifies an account under any
UserDisplay setting.
The menu also carried `aria-labelled`, which is not an ARIA attribute and so
named nothing. It is passed a string rather than an ID, so it wants
`aria-label`.
Two new workspace packages, ahead of anything using them.
`@goauthentik/oxlint-config` exports a `createOxlintConfig` factory rather than
a static config, because the lit/wc rules and the React plugin vary per consumer
and four near-copies of one rule set is how they drift. It also carries the
platform-layering `no-restricted-imports` rules and a bundled JS plugin for
authentik's own rules.
`@goauthentik/oxfmt-config` is the formatting half. `src/imports.ts` is the part
worth a look: it reproduces the import grouping `format-imports` gave us under
Prettier, using oxfmt's perfectionist-style selectors.
Both compile to a gitignored `out/`, which every consuming config imports at
load time, so both carry a `prepare` script — pnpm runs it on a fresh install,
which is what CI always does. `make node-install` builds them explicitly as
well, since `prepare` does not re-run on a warm tree when the lockfile is
already satisfied.
Nothing consumes either package yet.
* root: pin pnpm 12.4.0 everywhere
Bumps `packageManager` and `engines.pnpm` in all five manifests, and the
pnpm image tag both Dockerfiles copy the binary out of.
The Dockerfiles were still on 11.22.0 while the manifests said 11.25.0,
so the image builds ran a different pnpm than local installs did.
pnpm 12 records the package manager in the lockfile under
`packageManagerDependencies`, which is the only lockfile change here.
* root: lint pnpm's own version pin across workspaces
`lint-catalogs` already compared the `catalog:` entries in each
workspace. It now also checks the seven places that pin pnpm itself —
the five `packageManager` fields and the two pnpm image tags — since
nothing else noticed when the Dockerfiles fell three patches behind.
It also requires the `+sha512.` suffix to be present and well formed.
`pnpm self-update` strips it, which is how a bump turns into an
unreviewed change of what `packageManager` identifies.
* root: verify the packageManager integrity hash against the registry
Corepack used to verify this hash for us, and nothing has since we
stopped installing pnpm through it — pnpm's own version switcher reads
the version and ignores the suffix. A stale hash would sit in
package.json unnoticed until someone trusted it.
`lint-runtime` now resolves the pinned version's `dist.integrity` from
the registry, converts it from base64 to hex, and compares. On a
mismatch it prints the corrected `packageManager` line to paste in.
It also checks the pinned version satisfies `engines.pnpm`, which had
drifted.
An unreachable registry warns and skips rather than failing, so offline
installs and a flaky registry don't break `pnpm lint`.
* website: document pnpm instead of corepack
`corepack enable pnpm` is no longer the recommended way in; corepack is
deprecated. Any recent pnpm switches to the pinned version on its own,
so the setup guides just point at the pnpm installation guide.
Also updates the minimum from 11.9 to 12.4, and the stale references in
website/AGENTS.md to npm workspaces and `npm run --prefix`.
* root: port the node scripts to TypeScript
Replaces the JSDoc-annotated .mjs scripts with TypeScript, run directly by
Node's type stripping. No build step: the relative imports name the `.ts`
file that exists on disk, since Node does not rewrite `.js` to `.ts`.
Three fixes the types forced out of the JSDoc originals:
- `compareVersions` compared missing version parts as NaN, which is
neither greater nor less, so `compareVersions("24", "24.1.0")` reported
the two as equal. Missing parts now count as zero.
- `createTag` declared `bind` on every tag it returned, but only `$` is
given one. `node.bind("pnpm")` type-checked as the native
`Function.prototype.bind` and silently did something else.
- `peerDependenciesMeta` maps a package to flags, not to a version range.
`loadJSON` takes a type parameter rather than returning `any`, so callers
say what they're reading.
* root: type-check the node scripts
The root project had `files: []` and no references, so `tsc -b` checked
nothing — the port would have drifted untyped. Adds a project for
`scripts/node`, references it from the root, and runs `tsc -b` as part of
`pnpm lint` and a `ci-lint-check-types` target.
The scripts reach the logger through `#logger` rather than a deep relative
path, so its declarations resolve instead of `any`. Only the `types`
condition points into `packages/logger-js/out`; `default` stays a relative
path, because `make node-preinstall` runs before `pnpm install` and has no
node_modules to resolve a bare specifier against.
* packages/logger-js: give the node export its own types
`types` resolved to `out/index.d.ts`, which re-exports `lib/shared.js` —
the browser implementation — while the `node` condition runs `lib/node.js`.
Importing the package by name on Node therefore described `ConsoleLogger`
as the browser class, which has no `fixture` and a `prefix` returning a
different type than the Node value does.
Each condition now carries the declarations for the file it resolves to,
with `types` first so it isn't shadowed by a later condition.
* packages/logger-js: port to TypeScript
Node runs the TypeScript sources directly under type stripping, so the
`node` condition resolves `lib/node.ts` and needs no build step — which
matters because `make node-preinstall` runs before `pnpm install` and has
no node_modules to resolve against.
Node refuses to strip types for files whose real path is under
node_modules, so that arrangement only works through pnpm's workspace
symlink. `publishConfig.exports` therefore points published consumers at
the emitted JavaScript, and `files` no longer ships the sources at all.
Verified by installing the packed tarball as a plain npm dependency.
`rewriteRelativeImportExtensions` turns the `.ts` specifiers into `.js`
on emit. Pino's transport target can't be rewritten that way — it is a
runtime path, resolved in a worker thread, that hard-crashes when wrong —
so `node.ts` derives it from its own extension.
Two annotations carried over from the JSDoc were wrong: `child` never
reads `this`, and declaring `@this {Logger}` on it forced every caller to
prove it held a pino logger.
* packages/esbuild-plugin-live-reload: stop depending on a logger
`@goauthentik/logger-js` was declared as an optional peer, but the plugin
imported `createLogger` from it unconditionally, so a consumer who skipped
the optional peer got a resolution error rather than a fallback. The peer
range said `^1.0.1` while the package sits at 2.0.2, and the emitted .d.ts
files referenced its types, so consumers needed it installed regardless.
The package already ships a console-backed `createLogger` in `shared/`,
which the client entry has been using all along; the plugin entry now uses
it too. The logger shape it returns is declared here as `ConsoleLike`, so
nothing about the public types requires a logging package either.
`pino` went with it — it was only present so the logger's optional peer
would resolve.
* root: point the container builds at the TypeScript lint-runtime
Both Dockerfiles run the runtime lint before installing, and still named
the .mjs file the TypeScript port replaced, so `build-container` failed.
* packages/esbuild-plugin-live-reload: load the logger peer optionally
The previous commit dropped `@goauthentik/logger-js` outright, which threw
out the integration along with the bug. The peer is wanted — it just has to
be genuinely optional, so that someone using this plugin outside authentik
isn't made to install a logging package to get an esbuild plugin.
The plugin now imports it dynamically and falls back to the console-backed
logger this package already ships. The peer range matches the version that
actually exists, and the public types still describe the logger option as
`ConsoleLike`, so consumers don't need the peer resolvable to type-check.
Verified by installing the packed tarball with the peer absent.
* packages/logger-js, packages/esbuild-plugin-live-reload: bump to 3.0.0
Both carry breaking changes: logger-js moved its entry points and now
resolves TypeScript sources on Node, and the plugin's `logger` option
widened from a pino logger to any console-like object.
* Consistent Node engines.
* Add missing dep.
* ci: pin pnpm 11.20.0 everywhere
Every pnpm version reference now agrees on the latest release:
packageManager and the engines floor in all four manifests, and the
ghcr.io/pnpm/pnpm image in both Dockerfiles. Frozen installs for the
root, web, and website workspaces verified clean on 11.20.0.
* Update client-ts.
Migrate shared pins to pnpm catalogs.
Dependabot updates pnpm-workspace.yaml catalogs (GA since Feb 2025), so
package.json entries duplicating a catalog pin now use the catalog:
protocol instead of a literal range that could drift. Adds esbuild and
prettier-plugin-packagejson to the root catalog, and regenerates the web
lockfile, dropping stale importers left over from the symlink fix.
pnpm publish replaces catalog: with the concrete range at pack time
(verified against packed tarballs and an external consumer install).
Co-Authored-By: Playpen Agent <[email protected]>
Declare eslint-config's parser dependency.
index.js imports ParserOptions from @typescript-eslint/parser in JSDoc,
but only the typescript-eslint meta package was declared. The isolated
linker refuses phantom deps, so tsc -p . failed for eslint-config and
every package whose typecheck reaches it (logger-js), which would have
broken the next packages-npm-publish run.
Co-Authored-By: Playpen Agent <[email protected]>
Update for pnpm.
* Fix sub command syntax.
* Fix version drift.
* Add catalog lint.
* Add scripts.
* Tidy package configs.
* Add a local lint-catalogs target.
CI gained a catalogs check with no make counterpart, breaking the
documented promise that every ci-lint-* target has a local equivalent.
Also drops the second of two success log lines the script printed on
every clean run.
Co-Authored-By: Playpen Agent <[email protected]>
---------
Co-authored-by: Playpen Agent <[email protected]>
* web: bump storybook in /web in the storybook group across 1 directory
Bumps the storybook group with 1 update in the /web directory: [storybook](https://github.com/storybookjs/storybook/tree/HEAD/code/core).
Updates `storybook` from 10.4.2 to 10.4.6
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v10.4.6/code/core)
---
updated-dependencies:
- dependency-name: storybook
dependency-version: 10.4.6
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: storybook
...
Signed-off-by: dependabot[bot] <[email protected]>
* update openapi generator together
Signed-off-by: Jens Langhammer <[email protected]>
* fix?
Signed-off-by: Jens Langhammer <[email protected]>
* fix it
Signed-off-by: Jens Langhammer <[email protected]>
* Revert "web: bump the eslint group across 2 directories with 4 updates (#23604)"
This reverts commit 2116bc0811.
* packages/prettier-config: break eslint-config↔prettier-config symlink cycle
The two shared config packages mutually link:-depended on each other so
each could lint/format its own source. Under npm's flat hoisting this was
harmless, but pnpm's isolated linker materializes it as directly nested
node_modules symlinks, producing an infinite physical path that any
symlink-following recursive walk (Docusaurus theme scan, tsc, IDE
indexers) blows up on with ENAMETOOLONG — breaking the website build.
Drop @goauthentik/eslint-config from prettier-config's devDependencies to
cut one edge of the cycle. prettier-config's own eslint.config.mjs still
resolves @goauthentik/eslint-config (workspace v2.0.0) via the root
node_modules symlink, so its lint is unaffected.
Co-authored-by: Playpen Agent <[email protected]>
* Revise locks.
* Remove brace-expansion override.
* Format.
* Update lock.
* Fix version range, format.
---------
Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jens Langhammer <[email protected]>
Co-authored-by: Playpen Agent <[email protected]>
* Replace npm + Corepack with pnpm
Migrate package management from npm + Corepack to pnpm across the root,
web, and website workspaces:
- Swap npm/Corepack tooling for pnpm: drop package-lock.json files and the
bespoke Corepack bootstrap scripts (setup-corepack.mjs, utils/corepack.mjs,
lint-lockfile.mjs); add pnpm-lock.yaml + pnpm-workspace.yaml per workspace.
- CI uses the official pnpm/action-setup + actions/setup-node; pin the pnpm
store dir via PNPM_HOME so setup-node's `cache: pnpm` post-step succeeds.
- Docker sources pnpm from the official ghcr.io/pnpm/pnpm image via a
${BUILDPLATFORM}-pinned stage; the website docs build does a hoisted root
install so @goauthentik/docusaurus-config resolves its own deps.
- Gate the web install on the `node` dep so runtime-only jobs don't invoke
pnpm; scope the from-stable env setup so the new tooling doesn't run against
the stable checkout's npm packageManager field.
- Resolve @goauthentik/api (client-ts) from its TypeScript source instead of a
tsc-built dist, so it no longer depends on an install-time prepare having run
(the storybook build's environment never built it); sfe's rollup gains .ts
resolution to match.
- Netlify builds with pnpm; encode pnpm's supply-chain controls
(onlyBuiltDependencies/allowBuilds, minimumReleaseAge) in the workspace.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Remove custom node action.
* Format.
* core: add .npmrc baseline to block dependency lifecycle scripts
Set ignore-scripts=true at the repo root, plus engine-strict, save-exact,
audit, and prefer-offline. This neutralizes the dominant npm supply-chain
attack vector — postinstall scripts in transitive dependencies — at the
cost of requiring an explicit rebuild for the handful of packages that
legitimately need install scripts (esbuild, chromedriver, tree-sitter,
tree-sitter-json). The next commit wires that rebuild into the Makefile.
Co-Authored-By: Playpen Agent <[email protected]>
* core: route node installs through make to retire website preinstall hook
Make docs-install depend on a new root-node-install so the root deps
are guaranteed before the website install runs, removing the need for
the website/preinstall lifecycle script. Rebuild the small audited list
of trusted packages (esbuild, chromedriver, tree-sitter, tree-sitter-json)
after the web install so ignore-scripts=true remains the only path that
needs maintenance. web/README documents the new workflow.
Co-Authored-By: Playpen Agent <[email protected]>
* Clean up install scripts.
* Track .npmrc in CODEOWNERS
* Fix formatter config. Reformat.
* Fix mounted references.
* Flesh out node scripts.
* Bump engines.
* Prep containers.
* Update makefile.
* Flesh out github actions.
* Clean up docs container.
* lint.
Bump.
Lint.
Bump NPM version.
* Add limits.
* collapse the composite's three setup-node calls to one cache restore
* Add SHA.
* Bump NPM range.
* Run formatter.
* Bump NPM.
* Remove extra install.
* Fix website deps.
* Use local prettier. Fix drift in CI.
* ci: build frontend in CI with node_env production
Signed-off-by: Jens Langhammer <[email protected]>
* Install docusaurus config.
* Fix linter warning, order.
* Add linter commands.
* Add timeout.
* Remove pre install check.
---------
Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Playpen Agent <[email protected]>
Co-authored-by: Jens Langhammer <[email protected]>