2177 Commits
Author SHA1 Message Date
Kasra Bigdeli d4e938ecd1 Revert datastore shadow mode (#2574) pending maintainer review (#2575) 2026-12-02 08:57:34 -08:00
Kasra Bigdeli eb823f04da Validate a native JSON datastore on a persistent shadow copy (#2574)
* Compare native datastore operations on an isolated persistent shadow file

* Cover first-boot shadow failure and direct aliases to the live config
2026-12-02 08:53:13 -08:00
Kasra Bigdeli 31a829988d Update backend runtime and development dependencies (#2573) 2026-12-01 22:28:17 -08:00
Kasra Bigdeli 2e3fa37343 Support standard Docker Compose command/entrypoint semantics and One-Click v5 catalog (#2561)
* Support standard Docker Compose command/entrypoint semantics and One-Click v5 catalog

* Address PR review: simplify helpers/tests, reject NUL args, validate template response

* Address follow-up PR comments and wire Docker Swarm test into CI
2026-11-30 22:33:18 -08:00
Kasra Bigdeli 82660020d4 Allow manual edge image publishing (#2569) 2026-11-30 22:07:22 -08:00
Kasra Bigdeli 3d7fed5b71 Update CHANGELOG.md 2026-11-29 23:01:07 -08:00
Kasra Bigdeli baff8d9dc3 docs(changelog): document remaining unreleased frontend and backend changes (#2568) 2026-11-29 22:08:22 -08:00
Josué Trindade 57c49ea094 Allow wildcard glob arguments in custom Certbot commands (#2567)
ShellQuote.parse() returns { op: 'glob', pattern } objects instead of
strings for unquoted wildcard tokens such as *.${domainName}, causing
CertCommandGenerator.getCertbotCertCommand() to throw Invalid command.

Because CertbotManager executes commands directly via Docker exec without
a shell, unquoted glob tokens cannot trigger shell expansion and can be
passed through as their literal pattern strings while continuing to reject
shell control operators and comments.

Fixes #2222
2026-11-29 16:03:17 -08:00
Han Ming 7628860532 Allow 301 for "Redirect all domains to" (#2562)
Add an optional redirectDomainStatusCode (301 or 302) to the app
definition. The default server block template returns it instead of a
hard-coded 302. Apps without the field keep redirecting with 302.

Clients that do not send the field, such as the current caprover-api
updateConfigAndSave, keep the stored value instead of resetting it.

Refs #1857
2026-11-28 08:27:48 -08:00
Kasra Bigdeli 87c984c1cb Document Git credential cleanup in changelog 2026-11-28 08:21:09 -08:00
Han Ming 52fd1e3f5e Remove the git credentials from the cloned repository (#2563)
An HTTPS clone keeps the remote URL, with the user and password, in .git/config, and git resolves relative submodule URLs against it, so the submodules' configs hold them too. A Dockerfile with COPY . . then puts them in the image. After cloning, set the remote to the URL without credentials and sync the submodules to it.

Refs #2157
2026-11-28 08:20:46 -08:00
Kasra Bigdeli 5bbf0e3412 Merge pull request #2565 from josuetrindade/fix/changepass-max-length
fix(auth): enforce 29-character max length in Authenticator.changepass
2026-11-28 08:09:19 -08:00
Josué Trindade e9af9080af fix(auth): enforce 72-byte UTF-8 bcrypt limit in changepass
Characters encoded as multi-byte UTF-8 can keep newPass.length <= 29 while
making encryptionKey + newPass exceed bcryptjs's 72-byte input limit,
causing silent truncation of trailing bytes.

Reject new passwords when Buffer.byteLength(encryptionKey + newPass, 'utf8')
exceeds 72 before verifying oldPass or rotating tokenVersion, while keeping
oldPass unconstrained for legacy accounts.
2026-11-28 16:02:37 +00:00
Josué Trindade 9310a4561e fix(auth): reject new passwords longer than 29 characters
Login rejects passwords longer than 29 characters because bcrypt truncates
inputs after 72 bytes and Authenticator prepends a 43-character encryptionKey
(captain-salt + namespace), introduced in 7813f2f.

Authenticator.changepass previously checked only newPass.length < 8, allowing
a user to save a 30+ character password that cannot pass LoginRouter on the
next login. Enforce the same 29-character maximum on newPass before checking
oldPass or rotating tokenVersion, while keeping oldPass unconstrained so users
with pre-1.14 passwords can still change them.
2026-11-28 15:50:36 +00:00
Kasra Bigdeli b818c0ddef Update SECURITY.md 2026-11-27 20:55:58 -08:00
Kasra Bigdeli 9d2320ac5b Fix One-Click dependency ordering for mapping-form depends_on (#2560)
* fix: allow mapping-form depends_on in service type

* fix: sort mapping-form service dependencies by key

* test: cover list and mapping-form dependency ordering
2026-11-22 10:26:49 -08:00
Kasra Bigdeli 3cf15b783d docs(changelog): summarize unreleased changes 2026-11-22 09:24:51 -08:00
Kasra Bigdeli 309b588425 Updated license
Removing the appendix, in the future we'll split the code
2026-11-19 21:34:13 -08:00
85929acd32 Redirect to https when the redirect domain has SSL (#2557)
Fixes #1858

Co-authored-by: Donald Murillo <dev@example.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 18:20:56 -08:00
Kasra Bigdeli 0715c54de6 Merge pull request #2549 from hanming5/fix/one-click-escape-values
Escape one-click variable values before inserting them into the template
2026-11-18 21:10:39 -08:00
hanming5 715a75470a Restore option B for one-click value escaping
As requested in review, keep the existing substitution for values that
are already valid JSON string contents and only escape values that
would fail to parse. Escaping every value broke overrides escaped by
hand, such as {\"text\":\"hello\"} with an empty default, which master
passes as {"text":"hello"}.

Add a regression test for that case, and expect the existing decoding
for the path and regex cases that contain valid JSON escapes.
2026-11-19 13:43:54 +09:00
Kasra Bigdeli 803b54669c Merge pull request #2556 from caprover/fix/docker-api-upgrade-error-guidance
Point Docker API upgrade errors to the upgrade guide
2026-11-18 17:26:20 -08:00
Kasra Bigdeli 5b9c793fda Link Docker API upgrade errors to the upgrade guide 2026-11-18 17:18:52 -08:00
Kasra Bigdeli 047ab68c75 Merge pull request #2554 from caprover/backmerge-v1.16.1
Backmerge v1.16.1 from release into master
2026-11-18 10:43:42 -08:00
Kasra Bigdeli 8faf500965 Merge pull request #2553 from caprover/hotfix/1.16.1-nginx-security
Hotfix v1.16.1
v1.16.1
2026-11-18 10:34:27 -08:00
Kasra Bigdeli 8082dfc6e7 docs(changelog): document NGINX security hotfix v1.16.1 2026-11-18 10:31:50 -08:00
Kasra Bigdeli 1bf30bf9fd chore(release): bump hotfix version to 1.16.1 2026-11-18 10:31:48 -08:00
Kasra Bigdeli d00482cae8 fix(security): pin NGINX to patched 1.31.9 2026-11-18 10:31:46 -08:00
Kasra Bigdeli cd025b9583 Merge pull request #2551 from caprover/docs/security-admin-trust-boundary
Clarify the administrator trust boundary in SECURITY.md
2026-11-18 08:46:46 -08:00
Kasra Bigdeli 62109aa9fe Make the admin credential prerequisite explicit 2026-11-18 08:44:50 -08:00
Kasra Bigdeli e81a7016a7 Clarify which app token reports are in scope 2026-11-18 08:42:12 -08:00
Kasra Bigdeli 5cb9ee04c8 Clarify the administrator trust boundary in the security policy 2026-11-18 08:40:37 -08:00
Kasra Bigdeli fa842a89a4 Merge pull request #2550 from Andrewpk/fix/teal-zen-layout-background
Use a dark-mode layout background for the Teal Zen theme
2026-11-13 17:28:16 -08:00
Andrewpk e81067423b Use a teal-tinted dark layout background for Teal Zen
Keep the original #dadada backdrop in light mode and use #0b1714 in dark mode, slightly darker than the dark panels, instead of white and black.
2026-11-14 00:36:46 +00:00
Andrewpk eff87550db Match Teal Zen layout background to color mode
Teal Zen hard-coded colorBgLayout to #dadada, so the app shell stayed light grey in dark mode. Use white in light mode and black in dark mode.
2026-11-14 00:32:28 +00:00
hanming5 0f1852c890 Only unescape hand-escaped quotes in unchanged template defaults
Unescaping \" in every value turned a backslash-quote pair typed by a
user, such as C:\data\"secret, into a plain quote. Keep every entered
value as is, and only unescape \" when the value is the variable's
unchanged default, which is where templates such as remark42 escape
quotes by hand.
2026-11-12 14:57:48 +09:00
hanming5 991f5c7676 Keep one-click values as entered, except hand-escaped quotes
Values that were already valid inside a JSON string were inserted
as-is, so backslash sequences such as \n in C:\new or \b in a regex
were still decoded. JSON-escape every value instead, and only unescape
\" first, which the remark42 template and the workaround from #1328
rely on. Values are converted to strings first because the deploy
route does not enforce string values.
2026-11-12 14:48:22 +09:00
hanming5 a99735576b Escape one-click variable values that are not valid in a JSON string
One-click values are inserted into the stringified template without
escaping, so a value containing a quote, a newline or a stray
backslash made the template fail to parse. Escape such values before
inserting them. Values that are already valid inside a JSON string,
including values escaped by hand such as \", are inserted unchanged so
existing templates keep working.

Fixes caprover/caprover-frontend#104
2026-11-09 13:45:45 +09:00
Kasra Bigdeli 4115799213 Merge pull request #2548 from agentsaturn/changelog/pr-274-dark-mode-background
Update changelog for frontend PR #274
2026-11-06 21:32:05 -08:00
agentsaturn 3bcf0285ec Updated changelog 2026-11-06 21:02:54 -08:00
Kasra Bigdeli 85e6bfca85 Merge pull request #2544 from caprover/fix/backmerge-missing-ref-lookup
Fix missing backmerge branch lookup
2026-11-03 14:13:06 -08:00
Kasra Bigdeli 9b5bf624c4 Fix missing backmerge branch lookup 2026-11-03 14:09:54 -08:00
Kasra Bigdeli 05002e4a9d Merge pull request #2543 from caprover/backmerge-v1.16.0
Backmerge v1.16.0 from release into master
2026-11-03 13:58:13 -08:00
Kasra Bigdeli 74a61ff239 Merge pull request #2542 from caprover/release-candidate/1.16.0
Release v1.16.0
v1.16.0
2026-11-03 13:47:42 -08:00
Kasra Bigdeli df31b1e591 Prepare v1.16.0 release 2026-11-03 12:13:08 -08:00
Kasra Bigdeli c96bf4fa04 Updated changelog 2026-11-03 11:14:46 -08:00
Kasra Bigdeli 90c8f9dac5 Display installer warnings in yellow on interactive terminals 2026-11-01 21:54:14 -08:00
Kasra Bigdeli 959d35b411 Color installer errors red only in interactive terminals 2026-11-01 21:50:07 -08:00
Kasra Bigdeli ff53fd9453 Default safe installer confirmation to yes; keep explicit consent 2026-11-01 21:40:57 -08:00
Kasra Bigdeli dd6c166e24 Move CapRover installer files to scripts/user/installer 2026-11-01 20:14:57 -08:00