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
$this->addArgument('accepts-deploy-id', InputArgument::REQUIRED, 'The deployment method that the daemon accepts. Can be "manual-install"or "docker-install". "docker-install" is for Docker Socket Proxy and HaRP.');
37
+
$this->addArgument('accepts-deploy-id', InputArgument::REQUIRED, 'The deployment method that the daemon accepts. Can be "manual-install", "docker-install", or "kubernetes-install". "docker-install" is for HaRP (recommended) and the legacy Docker Socket Proxy (deprecated, scheduled for removal in Nextcloud 35).');
38
38
$this->addArgument('protocol', InputArgument::REQUIRED, 'The protocol used to connect to the daemon. Can be "http" or "https".');
39
39
$this->addArgument('host', InputArgument::REQUIRED, 'The hostname (and port) or path at which the Docker socket proxy or HaRP or the manual-install app is/would be available. This does not need to be a public host, just a host accessible by the Nextcloud server. It can also be a path to the Docker socket. (e.g. appapi-harp:8780, /var/run/docker.sock)');
@@ -161,6 +161,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int
161
161
$output->writeln('<comment>Warning: The host contains a port, which will be ignored for manual-install daemons. The ExApp\'s port from --json-info will be used instead.</comment>');
162
162
}
163
163
164
+
if ($acceptsDeployId === 'docker-install' && !$isHarp) {
165
+
$output->writeln('<comment>Warning: Direct Docker access (Docker Socket Proxy) is deprecated and will be removed in Nextcloud 35. Please register a HaRP-based daemon instead (pass --harp).</comment>');
166
+
}
167
+
164
168
if ($this->daemonConfigService->getDaemonConfigByName($name) !== null) {
165
169
$output->writeln(sprintf('Registration skipped, as the daemon config `%s` already exists.', $name));
Copy file name to clipboardExpand all lines: lib/Service/DaemonConfigService.php
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@
12
12
useOCA\AppAPI\Db\DaemonConfig;
13
13
useOCA\AppAPI\Db\DaemonConfigMapper;
14
14
15
+
useOCA\AppAPI\DeployActions\DockerActions;
15
16
useOCA\AppAPI\DeployActions\KubernetesActions;
16
17
useOCA\AppAPI\DeployActions\ManualActions;
17
18
useOCP\AppFramework\Db\DoesNotExistException;
@@ -77,6 +78,12 @@ public function registerDaemonConfig(array $params): ?DaemonConfig {
77
78
$this->logger->error('Failed to register daemon configuration: setting `net=host` in HaRP is not supported when communication with ExApps is done directly without FRP.');
78
79
returnnull;
79
80
}
81
+
if ($params['accepts_deploy_id'] === DockerActions::DEPLOY_ID && empty($params['deploy_config']['harp'])) {
82
+
$this->logger->warning(sprintf(
83
+
'Daemon "%s" uses direct Docker access (Docker Socket Proxy). This deployment method is deprecated and will be removed in Nextcloud 35. Please migrate to a HaRP-based daemon.',
{{ t('app_api', 'Direct Docker access (Docker Socket Proxy) is deprecated and will be removed in Nextcloud 35. Please migrate to a HaRP-based daemon.') }}
{{ t('app_api', 'Direct Docker access (Docker Socket Proxy) is deprecated and will be removed in Nextcloud 35. Please migrate to a HaRP-based daemon.') }}
14
+
</NcNoteCard>
12
15
<divv-if="!isEdit"class="templates">
13
16
<NcSelect
14
17
id="daemon-template"
@@ -332,6 +335,7 @@ import { generateUrl } from '@nextcloud/router'
0 commit comments