67e2fc54c2
Rewire onto the shared @simpleworkjs/oidc-client, /directory-schema, /ldap, and
/app-stack packages (deleting the byte-identical local forks). utils/access.js
now fetches reachable hosts through the shared directory client, which
validates the {results} envelope and treats envelope drift as a failed group
rather than silently returning []. models/user_ldap.js is a thin wrapper over
createLdapClient (loose TLS default preserved). build_info moves to utils/ with
the shared {buildVersion,buildHash,buildYear} shape. Align ldapts ^8.1.8 and
redis ^6.1.0. Lockfile regenerated from the registry (no file:/link:).
Co-Authored-By: Claude <noreply@anthropic.com>
5.1 KiB
5.1 KiB
Changelog
All notable changes to this project are documented here. Format loosely
follows Keep a Changelog; versions
correspond to git tags (vX.Y.Z) and nodejs/package.json's version.
[1.2.0] - 2026-07-25
Added
- Adopted the shared
@simpleworkjs/*packages published under the simpleworkjs org, replacing this app's byte-identical forks of the same code so the theta42 apps share one codebase and API schema:@simpleworkjs/oidc-client— the OIDC client (session models, auth router, OIDC utils, safe-redirect, local-admin bootstrap). Deleted the localutils/oidc.js,utils/safe_redirect.js,models/oidc_state.js,models/token.js,models/auth.js,routes/auth.js;models/index.jswires the factory and the local-admin bootstrap.@simpleworkjs/directory-schema— the sso↔jump-host directory contract.utils/access.jsnow fetches reachable hosts through the sharedcreateDirectoryClient(getResourcesByGroup).@simpleworkjs/ldap—models/user_ldap.jsis now a thin wrapper overcreateLdapClient, preserving this app's loose TLS default (rejectUnauthorized: false) and the exact export shape.@simpleworkjs/app-stack— unifiedbuild_info({buildVersion, buildHash, buildYear}) and thestatic-modulesmounting helper.build_infomoved frommodels/toutils/;routes/render.jsusesmountStaticModules.
Fixed
- Directory envelope drift was silently treated as "no reachable hosts".
utils/access.jspreviously readdata.results || [], so if the SSO directory ever returned a bare array (envelope drift) every per-group query collapsed to[]and no user could bridge. The shared client now validates the{ results }envelope on every call and treats an envelope violation as a failed group fetch rather than silently returning[].
Changed
- Dependency alignment:
ldapts^8.1.2→^8.1.8,redis^4.7→^6.1.0(the directredisdep is unused — onlymodel-redisis used, which already bringsredis^6.1.0). The new@simpleworkjs/*deps resolve from the npm registry (^1.0.0); nofile:/link:entries in the lockfile, sonpm ciis clean in docker builds. build_infoexport shape changed from{commit, version}to{buildVersion, buildHash, buildYear}(the shared shape used by all three apps). The/healthendpoint and footer now reportbuildVersion/buildHash.
[1.1.0] - 2026-07-23
Changed
- Rebuilt the web UI on the shared theta42 app stack so it looks and behaves like the SSO Manager and Proxy: Express + EJS with the same
top.ejs/bottom.ejsshell, Bootstrap 5, jQuery, jq-repeat, FontAwesome, the sharedapp-base.jsclient framework, and Socket.IO — replacing the bespoke minimal theme. Dashboard, Sessions, and Audit pages now render in the common look/feel. - Web-UI auth is now OIDC + a local anti-lockout admin (the proxy's model), replacing the direct LDAP-bind login. Normal users log in through the SSO ("Log in with SSO"); a local
auth.adminUsersaccount (bootstrapped on first boot, password fromauth.localAdminPass) still works if the SSO is unreachable. Admin access is gated byauth.adminGroupsor the local admin account. New config:oidcblock +auth.adminUsers/localAdminPass. Note: the SSH bridge and its own LDAP auth are unchanged — this only affects the web management UI.
[1.0.1] - 2026-07-23
Fixed
- Test scripts use shell-expanded globs and CI provides a redis service, so
npm testruns green on the Node 20/22 CI runners (thenode --test**glob and the redis-backed models only worked locally before). No runtime change.
[1.0.0] - 2026-07-23
Added
- Initial release. An SSH jump host for the theta42 stack:
- Username-grammar routing:
ssh {uid}_-_{target}@jumphostbridges straight to the downstream host (target= a directory host slug, bare hostname, or IP). Shell, exec, and the SFTP subsystem all pass through, so WinSCP/sftpwork. - Interactive TUI picker: plain
ssh {uid}@jumphostlists the hosts the user can reach (from the SSO directory) and bridges to the chosen one. - LDAP auth of the inbound user (publickey against the user's
sshPublicKey, or password via LDAP bind — password policy is off/local/all). - Directory-driven access: reachable hosts are the union of the user's
LDAP groups × the SSO directory (
/api/discovery/resources?group=). - Per-user key injection: the jump host appends its own public key to the
user's
sshPublicKeyon first use, then connects downstream as that user (downstream hosts already serve LDAP keys via ldap-client's AuthorizedKeysCommand). - Web UI + HTTP API (
:3002) for auditing and metrics: active sessions, paged audit log, per-user/per-host counters. Admin login gated by LDAP group membership. - Audit logging of every connection attempt/session (user, target, method, result, bytes, duration, downstream host-key fingerprint).
- Packaged like theta42/proxy: idempotent
ops/install.sh+ systemd unit, all-in-one Docker image, standalonedocker-compose.yml.
- Username-grammar routing: