* 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
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
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
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
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.
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.
* 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
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.
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.
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.
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.
Fixescaprover/caprover-frontend#104