You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docker Socket Proxy has been deprecated since AppAPI 34: occ, the admin settings and the daemon log all announced its removal. HaRP is now the only way to deploy ExApps on Docker, so AppAPI no longer needs its own Docker code. That code created, started and stopped DSP containers itself, and installed CA certificates by starting the container, running commands in it, stopping it and starting it again.
Changes
A docker-install daemon requires HaRP. occ app_api:daemon:register and the admin settings refuse new Docker Socket Proxy daemons and daemons on a Docker socket; re-running the command for an existing daemon still skips it. AIO auto-registration only warns when AIO still runs its Docker Socket Proxy. The --haproxy_password option is ignored.
occ app_api:app:register refuses a daemon_config_name in --json-info that differs from the daemon argument, and uses it when no daemon is given, so a new ExApp cannot be stored on a Docker Socket Proxy daemon.
Existing Docker Socket Proxy daemons stay registered, and Nextcloud keeps reaching their ExApps directly, so nothing stops working on upgrade. AppAPI no longer talks to these daemons:
Install, update, test deploy and logs answer that the daemon is no longer supported.
Enable checks the ExApp's heartbeat once instead of starting its container, and fails at once with the reason when the ExApp does not answer.
Disable leaves the container running.
Uninstall removes the ExApp from AppAPI but keeps its container and data volume.
The daemons can only be removed; editing them or their registry mappings is refused.
A new setup check names the Docker Socket Proxy daemons, and the deploy daemon check reports a Docker Socket Proxy default daemon. Both link to the migration steps in the HaRP README.
To move an ExApp, uninstall it keeping its data and install it on a HaRP daemon on the same Docker host. HaRP uses the same container and volume names, so it replaces the old container and keeps the data.
The admin settings drop the Docker Socket Proxy templates, keep the HTTPS switch for Docker daemons and show the HaRP switch for manual install daemons only.
GET /apps/uninstall/{appId} loses removeContainer, which only the Docker Socket Proxy path read.
The Docker deploy CI jobs run on HaRP. The Docker Socket Proxy jobs are removed, and so are the Docker socket jobs that HaRP jobs already cover. The Makefile with its Docker Socket Proxy targets is removed.
Docker deployments now use HaRP, and direct Docker Engine deployment paths have been removed. Daemon registration and updates reject Docker Socket Proxy configurations. Existing ExApps on those configurations have restricted operations, and uninstall keeps their containers and data volumes. Setup checks and administration screens identify unsupported configurations. Deployment workflows and tests use HaRP. Documentation and the uninstall API description reflect the changed support and options.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title 'feat!: remove Docker Socket Proxy daemons' matches the main change. The changeset removes AppAPI's Docker Socket Proxy management, refuses new DSP daemons, and moves Docker deployments to H…
Description check
The description explains the reason for the change (DSP deprecated since AppAPI 34, HaRP now the only Docker deploy path). It lists the concrete changes: daemon registration refusals, ExApp register r…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title 'feat!: remove Docker Socket Proxy daemons' matches the main change. The changeset removes AppAPI's Docker Socket Proxy management, refuses new DSP daemons, and moves Docker deployments to HaRP. The title is concise, uses a conventional-commit prefix, and names the primary change.
Full details: Description check
Explanation
The description explains the reason for the change (DSP deprecated since AppAPI 34, HaRP now the only Docker deploy path). It lists the concrete changes: daemon registration refusals, ExApp register rules, per-operation DSP behavior, setup checks, admin template removal, the removed uninstall parameter, and CI changes. It matches the changeset closely.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Warning
Some tools did not complete. Review the errors below.
ast-grep (0.51.3)
js/app_api-adminSettings.js
ast-grep timed out on this file
Review coverage is incomplete: 1 file could not be fully reviewed. Findings from completed review steps are included; see review info for details.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 4
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.
⚠️ Outside diff range comments (1)
Minor · Handle error arrays from the Docker registry service methods. · DaemonConfigController.php:404
lib/Controller/DaemonConfigController.php:404 Minor · Stability & Availability · Quick win
Handle error arrays from the Docker registry service methods.
addDockerRegistry and removeDockerRegistry return ['error' => ...] for Docker Socket Proxy daemons. The controller checks only for null. It then calls jsonSerialize() on the array, which raises a PHP Error. The endpoint returns a server error instead of the unsupported-daemon message. Invalid registry input follows the same failure path.
Return the service error array before serialization. The existing 500 status matches the declared array{error: string} response.
Suggested fix
In addDaemonDockerRegistry:
$daemonConfig = $this->daemonConfigService->addDockerRegistry($daemonConfig, $registryMap);
+ if (is_array($daemonConfig)) {+ return new JSONResponse($daemonConfig, Http::STATUS_INTERNAL_SERVER_ERROR);+ }
if ($daemonConfig === null) {
In removeDaemonDockerRegistry:
$daemonConfig = $this->daemonConfigService->removeDockerRegistry($daemonConfig, $registryMap);
+ if (is_array($daemonConfig)) {+ return new JSONResponse($daemonConfig, Http::STATUS_INTERNAL_SERVER_ERROR);+ }
if ($daemonConfig === null) {
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 96fc1aa0-fba1-4113-8ad8-b1dd6178ba58
Commits
Reviewing files that changed from the base of the PR and between 072b6b4 and 0ceffc4.
Files ignored due to path filters: 2
js/app_api-adminSettings.js.map is excluded by !**/*.map
src/constants/__snapshots__/daemonTemplates.spec.js.snap is excluded by !**/*.snap
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 7
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.
⚠️ Outside diff range comments (1)
Minor · Run the DSP and action checks before unregistering an existing ExApp in… · Register.php:120
lib/Command/ExApp/Register.php:120 Minor · Data Integrity & Integration · Quick win
Run the DSP and action checks before unregistering an existing ExApp in test-deploy mode.
In test-deploy mode, execute() unregisters an existing ExApp at line 79. It then reads the daemon config and returns 2 at lines 133-138 when the daemon is a Docker socket proxy. The existing registration is gone, and nothing replaces it. Any failure after line 79 has the same effect, including an invalid getAppInfo result.
Move the unregistration after the daemon and action checks, immediately before registerExApp(). Keep the non-test-deploy rejection for an existing registration at its current early position. Use the requested appid argument for the unregistration, because $appId is reassigned from $appInfo['id']. A supported HaRP test deployment still replaces the registration after validation succeeds.
Use the DSP daemon for the nested disable operation.
setupReachableManualExApp currently returns a default daemon without accepts_deploy_id. When removal calls disableExApp, that daemon fails the DSP check. The Docker ExApp then reaches stopExApp, which this test permits.
Create the DSP daemon once. Pass it to both setupReachableManualExApp and removeExAppsByDaemonConfigName. Add a never() expectation for stopExApp. This will check container retention through both disablement and removal.
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 7dcf3348-e231-487e-8aef-1056b2db9098
Commits
Reviewing files that changed from the base of the PR and between d1f4883 and 393166a.
Files ignored due to path filters: 2
js/app_api-adminSettings.js.map is excluded by !**/*.map
src/constants/__snapshots__/daemonTemplates.spec.js.snap is excluded by !**/*.snap
Files skipped from review as they are similar to previous changes: 1
AGENTS.md
Files not reviewed because the changes were too large to process: 1
js/app_api-adminSettings.js
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.
⚠️ Outside diff range comments (2)
Major · Keep the running ExApp container when the HaRP create request fails. · DockerActions.php:91
lib/DeployActions/DockerActions.php:91 Major · Stability & Availability · Heavy lift
Keep the running ExApp container when the HaRP create request fails.
deployExApp removes the existing nc_app_ container before it sends docker/exapp/create, and it does not check the payload first. HaRP checks bind mounts against its HP_EXAPP_BIND_MOUNTS_* rules and can refuse a mount that the old DSP path accepted. When that happens, the create returns a non-201 status and the method returns an error. The old container is already removed.
The removal is part of the documented migration. The defect is the failure path after it. The data volume is kept, so no data is lost. The ExApp stays stopped until the operator changes the mount policy or the mount and installs the ExApp again.
A refused replacement must not leave a running ExApp without a container. The mechanism is open: it can check the create before removal, or keep the old container until the new one starts. Choose the mechanism that the HaRP API supports.
Minor · Keep ports reserved while retained DSP containers still use them. · ExAppService.php:151
lib/Service/ExAppService.php:151 Minor · Stability & Availability · Heavy lift
Keep ports reserved while retained DSP containers still use them.
After unregistering a host-network DSP ExApp, its container can still listen on port 23000, but getUsedPorts() no longer sees its row. The next ExApp without an explicit port can receive 23000 on a host-network HaRP daemon on the same Docker engine. It then cannot bind that port. Before this change, successful unregister removed the container before releasing the database record. (raw.githubusercontent.com)
Keep a port reservation for the retained container until it stops or is replaced. Allow a same-app migration to claim its own reservation so the replacement can still use the existing port.
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 2e2cbd9a-1e99-4b14-989c-53fcf1dbfd38
Commits
Reviewing files that changed from the base of the PR and between d1f4883 and a4fc718.
Files ignored due to path filters: 2
js/app_api-adminSettings.js.map is excluded by !**/*.map
src/constants/__snapshots__/daemonTemplates.spec.js.snap is excluded by !**/*.snap
Files not reviewed because the changes were too large to process: 1
js/app_api-adminSettings.js
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 7
Minor comments: 1
lib/Service/DaemonConfigService.php: 1
323-323: Minor · Data Integrity & Integration · Poor tradeoff
Registry edits can overwrite a newer HaRP configuration with a stale deploy_config.
addDockerRegistry() and removeDockerRegistry() check the guard and change deploy_config using the daemon object loaded at request start. setDeployConfig() marks deploy_config as changed, and QBMapper::update() writes only changed fields, matching the row by ID. If another request converts the same manual-install daemon to docker-install with HaRP after this request loads it, the registry write stores the old deploy_config without HaRP. The deploy ID is not written, so the row can end up as docker-install without HaRP. Later edits that keep the daemon without HaRP are rejected.
The trigger needs two concurrent admin requests on the same daemon, and the window is short. The impact is limited to that one daemon.
Apply the mapping change to a freshly loaded row, not to the request-start copy. Run the Docker Socket Proxy guard and the duplicate and missing-mapping checks against the reloaded row too. Reloading narrows the window but does not close it. Persist the write only when the stored row still matches the reloaded row (a conditional update), so a stale snapshot never replaces deploy_config.
Test which key reaches the service after successful registration.
Both tests pass --haproxy_password, but both return before the command selects a secret. Add a manual registration case that expects an empty stored secret. Add a HaRP registration case that passes both options and expects only --harp_shared_key in the parameters sent to registerDaemonConfig().
Also applies to: 60-60
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 2e07d6fa-7adf-4d56-8d35-c4d24cf26661
Commits
Reviewing files that changed from the base of the PR and between d1f4883 and 6772f89.
Files ignored due to path filters: 2
js/app_api-adminSettings.js.map is excluded by !**/*.map
src/constants/__snapshots__/daemonTemplates.spec.js.snap is excluded by !**/*.snap
Files not reviewed because the changes were too large to process: 1
js/app_api-adminSettings.js
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.
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
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.
Docker Socket Proxy has been deprecated since AppAPI 34: occ, the admin settings and the daemon log all announced its removal. HaRP is now the only way to deploy ExApps on Docker, so AppAPI no longer needs its own Docker code. That code created, started and stopped DSP containers itself, and installed CA certificates by starting the container, running commands in it, stopping it and starting it again.
Changes
docker-installdaemon requires HaRP.occ app_api:daemon:registerand the admin settings refuse new Docker Socket Proxy daemons and daemons on a Docker socket; re-running the command for an existing daemon still skips it. AIO auto-registration only warns when AIO still runs its Docker Socket Proxy. The--haproxy_passwordoption is ignored.occ app_api:app:registerrefuses adaemon_config_namein--json-infothat differs from the daemon argument, and uses it when no daemon is given, so a new ExApp cannot be stored on a Docker Socket Proxy daemon.GET /apps/uninstall/{appId}losesremoveContainer, which only the Docker Socket Proxy path read.