From fcadfd32778f756ed33580be0c0e3269db0530a3 Mon Sep 17 00:00:00 2001 From: Andre Klapper Date: Sat, 7 Feb 2026 08:59:53 +0100 Subject: [PATCH] Conduit: Deprecate conduit.connect and conduit.getcertificate endpoints Summary: Session-based auth got superseded by token-based authentication long ago. Refs T16487 Test Plan: * Go to http://phorge.localhost/conduit/method/conduit.connect/ and http://phorge.localhost/conduit/method/conduit.getcertificate/ * See a "Stability" entry saying "Deprecated Method" Reviewers: O1 Blessed Committers, avivey Reviewed By: O1 Blessed Committers, avivey Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno Maniphest Tasks: T16487 Differential Revision: https://we.phorge.it/D26728 --- .../conduit/method/ConduitConnectConduitAPIMethod.php | 11 +++++++++++ .../method/ConduitGetCertificateConduitAPIMethod.php | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/src/applications/conduit/method/ConduitConnectConduitAPIMethod.php b/src/applications/conduit/method/ConduitConnectConduitAPIMethod.php index 9b02dca353..d828ea17ca 100644 --- a/src/applications/conduit/method/ConduitConnectConduitAPIMethod.php +++ b/src/applications/conduit/method/ConduitConnectConduitAPIMethod.php @@ -14,6 +14,17 @@ final class ConduitConnectConduitAPIMethod extends ConduitAPIMethod { return true; } + public function getMethodStatus() { + return self::METHOD_STATUS_DEPRECATED; + } + + public function getMethodStatusDescription() { + return pht( + 'This method has been deprecated since %s in favor of token-based '. + 'authentication.', + '02/2026'); + } + public function getMethodDescription() { return pht('Connect a session-based client.'); } diff --git a/src/applications/conduit/method/ConduitGetCertificateConduitAPIMethod.php b/src/applications/conduit/method/ConduitGetCertificateConduitAPIMethod.php index 1325a1cad0..ac3a5175de 100644 --- a/src/applications/conduit/method/ConduitGetCertificateConduitAPIMethod.php +++ b/src/applications/conduit/method/ConduitGetCertificateConduitAPIMethod.php @@ -15,6 +15,17 @@ final class ConduitGetCertificateConduitAPIMethod extends ConduitAPIMethod { return true; } + public function getMethodStatus() { + return self::METHOD_STATUS_DEPRECATED; + } + + public function getMethodStatusDescription() { + return pht( + 'This method has been deprecated since %s in favor of token-based '. + 'authentication.', + '02/2026'); + } + public function getMethodDescription() { return pht('Retrieve certificate information for a user.'); } -- 2.51.2