Repository navigation
Extended e2e tests and security fixes - #2212
Merged
Merged
Conversation
…nd collaboration rooms Adds server-side membership/rank checks to the admin-on-member user routes, mails password resets only to an account's own resolved address, fixes an org-membership exclusivity check that ENTERPRISE mode's membership collapsing could hide, sanitizes npm registry credentials out of shared organization settings, enforces current-org folder ownership on folder permission mutations, blocks resetting a super-admin's password except by another super-admin or self, and rewrites the Hocuspocus collaboration server to authorize each room against the connecting user's real READ access rather than trusting the client-supplied application id. Claude-Session: https://claude.ai/code/session_015KPtHMWb4EyLtt5JPr1vtb
… in the same room S18 chat controller only had connectivity coverage until now. This adds the complementary happy-path case to the existing cross-workspace isolation test: two independent sessions viewing the same published app each share a value through the chat controller and must receive the other's, with both coexisting afterward. Claude-Session: https://claude.ai/code/session_015KPtHMWb4EyLtt5JPr1vtb
The jammy repo no longer serves redis-server/redis-tools 8.10.3, which the image's apt-get install implicitly pulled in via the redis metapackage, breaking the build with an unsatisfiable version constraint. Pin all three redis packages to 8.12.0, the version actually available. Claude-Session: https://claude.ai/code/session_015KPtHMWb4EyLtt5JPr1vtb
… workspace lifecycle, with e2e coverage Fixes the security findings from the 2026-11-21 research pass (D-6 through D-63): missing or wrong permission checks on applications, bundles, folders, data sources and history snapshots; sessions and API keys that survive a password change; weak-password sign-up and set-password paths; CORS/CSRF exposure; npm registry and actuator metrics reachable without the right grant; stale membership-removal cleanup (folders, bundles); and a handful of related functional/display defects found while building the tests (mail-link double slash, invite dialog translation key, system-group rename, profile app count). Adds or updates Java unit/contract/Mongo-integration tests and e2e Playwright scenarios (security, lifecycle and foundation suites) for every fix, and removes each fixed scenario from the e2e quarantine list. Confirmed with a combined e2e run against an image built from this branch: 693/696 default tests passed; the 3 failures are pre-existing suite drift unrelated to this work (documented in their own README rows). Claude-Session: https://claude.ai/code/session_015KPtHMWb4EyLtt5JPr1vtb
Adds helpers to create, test and fetch dynamic config for node-service plugin data sources, loaders for recorded plugin fixtures, and the @node-service selection tag. A catalogue scenario asserts the data source types endpoint lists exactly the registered node plugins plus every Java-native type with a null definition. Unit tests cover the request shape of the new API helpers and the fixture loaders. Claude-Session: https://claude.ai/code/session_015KPtHMWb4EyLtt5JPr1vtb
Adds recorded DuckDB data source and query fixtures and scenarios that run the embedded plugin through the app: a query result, a bound component after a click, BIGINT and HUGEINT arriving as exact strings, a failing statement and a syntax error. Rows currently arrive keyed by column position rather than column name; the scenarios characterise that behaviour and annotate it as a defect candidate. A unit test covers the new recording loaders. Claude-Session: https://claude.ai/code/session_015KPtHMWb4EyLtt5JPr1vtb
Adds recorded Turso and Slack data source and query fixtures and scenarios that point each plugin at the run's echo target: the Turso pipeline request shape and bearer token, raw result passthrough, a server error, an error result (the message currently prints as [object Object], annotated as a defect candidate), a bound component after a click, and the Slack webhook form payload. A unit test covers the new recordings. Claude-Session: https://claude.ai/code/session_015KPtHMWb4EyLtt5JPr1vtb
Adds recorded GitLab and Shopify data source and query fixtures and scenarios that point each plugin at the run's echo target: the GitLab request body, headers and token, a GraphQL error answer, the Shopify request body, a bound component after a click, and a characterisation that the Shopify plugin drops the query headers (annotated as a defect candidate, with controls proving the header reaches the plugin and that the GitLab plugin forwards it). A unit test covers the new recordings. Claude-Session: https://claude.ai/code/session_015KPtHMWb4EyLtt5JPr1vtb
Adds a recorded OpenAPI data source and query plus a canned OpenAPI document and scenarios that serve it from the run's echo target: the dynamic config answer and spec fetch, the operation request with its query parameter and API key header, the key coming from the data source configuration, a 404 answer reported as success (annotated as a defect candidate), a bound component after a click, and the in-memory dynamic config cache. A unit test covers the new recording. Claude-Session: https://claude.ai/code/session_015KPtHMWb4EyLtt5JPr1vtb
Adds recorded data source and query fixtures for five OpenAPI-based node-service plugins and scenarios that point each at the run's echo target: the request path, query and credential headers for each plugin, CouchDB credential selection, WooCommerce server URL normalisation and refused API versions, and queries submitted together against two server URLs. A WooCommerce server URL that already ends in /wp-json/wc/v3/ is requested at a doubled path; this is characterised and annotated as a defect candidate. The echo sidecar gains an optional barrier on a canned answer: requests are recorded on arrival and answered together once a set number are waiting, or answered 504 if the group does not fill in time. Existing answers are unchanged. Unit tests cover the barrier, its cleanup between groups, and invalid settings. Claude-Session: https://claude.ai/code/session_015KPtHMWb4EyLtt5JPr1vtb
Adds recorded data source and query fixtures for five OpenAPI-based node-service plugins and scenarios that point each at the run's echo target: the request method, path, headers and body for each plugin, the credential header each one sends, an HTTP error answer reported as success, and queries submitted together against two server URLs. Two behaviours are characterised and annotated as defect candidates: the OpenAI plugin sends no API key for spec version 1.0 (the default), and the UiPath plugin cannot run at all because building its query configuration overflows the stack. The desired UiPath behaviour is asserted in a quarantined test. Claude-Session: https://claude.ai/code/session_015KPtHMWb4EyLtt5JPr1vtb
Adds recorded DynamoDB and S3 data source and query fixtures, one per action, and scenarios that point each plugin's endpoint at the run's echo target: every request the AWS SDK sends is asserted in full (method, path, query, body, header set and the signing scope by shape), together with the answers the plugins return, error answers, signed URLs and the form's connection test. S3 reads with an empty bucket are characterised and annotated as a defect candidate. The run script now passes the echo's IP address on the run network to the test runner as E2E_ECHO_IP, and echoUrlByIp turns an echo target URL into one addressed by that IP, so bucket calls stay on the run network instead of resolving a <bucket>.<host> name. The address is validated strictly and covered by unit tests. Claude-Session: https://claude.ai/code/session_015KPtHMWb4EyLtt5JPr1vtb
Adds recorded Supabase Storage data source and query fixtures, one per action, and scenarios that point the plugin's project URL at the run's echo target: every request the storage client sends is asserted in full (method, path, query, body, header set), the API key is asserted to appear only in its two headers and in no answer, and the answers each operation returns, signed URLs and the published view after a click are covered. Four behaviours are characterised and annotated as defect candidates: a storage error message is replaced by a placeholder object, the signed URL expiry is sent as an epoch time in milliseconds computed once per process, the listObjects search field is never sent, and only listObjects checks for an empty bucket. Claude-Session: https://claude.ai/code/session_015KPtHMWb4EyLtt5JPr1vtb
…rios Adds an opt-in way to run node-service data source tests that need a real server which does not speak HTTP. With E2E_INCLUDE_NODE_SERVICE_SIDECARS=1 the run script starts a pinned Firebird server on the run network, waits until it answers, makes it reachable from both the app container and the test runner, and removes it on exit even when the run fails. Without the flag nothing extra is started and the tests tagged @node-service-sidecar are neither listed nor run. The flag is refused on the non-default stack profiles. The outbound-host rule in AGENTS.md now names the opt-in sidecars. Adds recorded Firebird data source and query fixtures and scenarios for the connection test, queries and rows, parameter binding in SQL order, error messages, and the published view. A failing query that never detaches is characterised and annotated as a defect candidate. Claude-Session: https://claude.ai/code/session_015KPtHMWb4EyLtt5JPr1vtb
With E2E_INCLUDE_NODE_SERVICE_SIDECARS=1 the run script now also starts a pinned libSQL server (sqld) next to the Firebird one, authenticated with throw-away JWTs, waits until it answers a real query, makes it reachable from the app container and the test runner, and removes it on exit even when the run fails. Without the flag nothing extra is started and the tests are neither listed nor run. Adds scenarios that run the Turso plugin against the real server: column and row mapping, raw results, INSERT answers, real server errors, a wrong, a foreign-signed and a read-only token, the published view after a click, a trailing-slash URL, and reachability from the runner. Blob cells being dropped and integers above 2^53 being rounded are characterised and annotated as defect candidates; real server errors still print as [object Object], the defect already annotated for the echo scenarios. Claude-Session: https://claude.ai/code/session_015KPtHMWb4EyLtt5JPr1vtb
…nst it With E2E_INCLUDE_NODE_SERVICE_SIDECARS=1 the run script now also starts a pinned Apache CouchDB server next to the Firebird and libSQL ones, creates its system databases through the real API, waits until they are listed, makes it reachable from the app container and the test runner, and removes it on exit even when the run fails. Without the flag nothing extra is started and the tests are neither listed nor run. The readiness probes of all three sidecars now have a time limit per request, so a stalled request cannot outlast the startup timeout. The CouchDB probe accepts only the documented status codes. Adds scenarios that run the CouchDB plugin against the real server: database create, list, info and delete, document revisions, conflicts, missing databases and documents, a wrong password, the conditional-read header, query parameters reaching the server, the published view after a click, reachability from the runner and account lockout. HTTP error answers that carry a body are reported as success; this is characterised and annotated as a defect candidate, as is a required header that makes a matching ETag fail. Claude-Session: https://claude.ai/code/session_015KPtHMWb4EyLtt5JPr1vtb
…inst it With E2E_INCLUDE_NODE_SERVICE_SIDECARS=1 the run script now also starts a pinned DynamoDB Local server next to the Firebird, libSQL and CouchDB ones, waits until it answers a real ListTables request, makes it reachable from the app container and the test runner, and removes it on exit even when the run fails. Without the flag nothing extra is started and the tests are neither listed nor run. The readiness loops of all four sidecars now measure real elapsed time instead of counting their sleeps, so a stalled probe can no longer push a run past the startup timeout by more than one poll interval and one probe limit. The CouchDB probe shares one time budget across its requests, and structural tests keep each loop and probe bounded. Adds scenarios that run the DynamoDB plugin against the real server: table creation and listing with paging, attribute type mapping both ways, queries and scans with typed continuation keys, update and delete effects checked by direct reads with conditional controls, error messages, access keys, the published view after a click and reachability from the runner. Typed keys and attributes in some answers, string and number arrays always written as sets, numbers and binary values that do not round-trip, and a plain-form start key that fails with an SDK error are characterised and annotated as defect candidates. Claude-Session: https://claude.ai/code/session_015KPtHMWb4EyLtt5JPr1vtb
The PostgreSQL sidecar left one anonymous volume behind on every run and the Firebird sidecar, with the opt-in flag, one more, because their images declare a data volume that the script did not mount. Both now get a tmpfs over the declared data directory, as the libSQL and CouchDB sidecars already had. The data is throw-away per run. A structural test needs no Docker: it finds every container the script starts (joining continued lines and detecting the detach flag wherever it sits), checks each against a table of the volumes its image declares, and requires a tmpfs over every declared path, so a new unlisted container or a lost tmpfs fails. The README records the measured before and after volume counts, with a control that shows the method does detect a leak. Claude-Session: https://claude.ai/code/session_015KPtHMWb4EyLtt5JPr1vtb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
Extended end-to-end coverage.
Fixing security relates bugs.
Types of changes
What types of changes does your code introduce to Lowcoder?
Put an
xin the boxes that apply.Checklist
You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help!
This is simply a reminder of what we are going to look for before merging your code.
Put an
xin the boxes that apply.Further comments
n/a